Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
WordPress/Vanilla (plus Janine)
On my new site, I'm integrating a WP blog with my Vanilla board, also using Janine to create a new discussion for each new blog article.
I don't want ENTIRE articles to show up on the home page, I just want an excerpt with a link to the whole article. I figured out how to do that with the tag, BUT when I do that, there is NO link to the Vanilla discussion/comments from the article. There is also no link to the discussion in the archived articles. The ONLY link to the discussion appears on the home page. How do I get the link to the Vanilla discussion to show up on the entire article page and also on the archive index pages?
Also, any way to have the default text
This discussion is for comments about the blog article ArticleName. Thank you for participating.
to read like this automatically:
This discussion is for comments about the blog article ArticleName. Thank you for participating.
In other words, link it back to the article? I could do it manually, of course, but any time I can save is a boon!
I don't want ENTIRE articles to show up on the home page, I just want an excerpt with a link to the whole article. I figured out how to do that with the tag, BUT when I do that, there is NO link to the Vanilla discussion/comments from the article. There is also no link to the discussion in the archived articles. The ONLY link to the discussion appears on the home page. How do I get the link to the Vanilla discussion to show up on the entire article page and also on the archive index pages?
Also, any way to have the default text
This discussion is for comments about the blog article ArticleName. Thank you for participating.
to read like this automatically:
This discussion is for comments about the blog article ArticleName. Thank you for participating.
In other words, link it back to the article? I could do it manually, of course, but any time I can save is a boon!
0
This discussion has been closed.
Comments
<?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?>
Zap that sucker. By editing the "Single Post" and "Archive" templates in your WP theme. Remove all of the WP comment-related code and copy in the same code that you used to get discussion links in "index.php". You can, if you have a string formatter installed that allows you to post a link. If you use Html Formatter, try these settings:
$Configuration['JanineDiscBody'] = 'This discussion is for comments about the blog article <a href="%BlogPostLink%">%BlogPostTitle%</a>. Thank you for participating.'; $Configuration['JanineDiscFormat'] = 'Html';
If instead you use Markdown, try these:
$Configuration['JanineDiscBody'] = 'This discussion is for comments about the blog article [%BlogPostTitle%](%BlogPostLink%). Thank you for participating.'; $Configuration['JanineDiscFormat'] = 'Markdown';
Sorry for the inconvenience. It's not a trivial task to get Janine integrated smoothly but this is about as good as I can get it without modifying any WP code.
- In Vanilla, disable Janine in the extensions menu.
- In WordPress, check all of your recent posts and look in the "Custom Fields" section for a field named "VanillaDiscussion". Delete this field wherever you find it.
This should get you back to where you started from, more or less. Now, to install Janine:- In Vanilla, enable Janine in the extensions menu. Janine should automatically create its own config settings but refresh the page once just to make sure.
- Open your Vanilla conf/settings.php file and look for the settings named 'JanineDiscBody' and 'JanineDiscFormat'. Replace these settings with the following settings:
$Configuration['JanineDiscBody'] = 'This discussion is for comments about the blog article <a href="%BlogPostLink%">%BlogPostTitle%</a>. Thank you for participating.';- In your WordPress administration menu, go to the Theme Editor. You will need to edit the "Main Index Template", the "Archives", and the "Single Post" to add the Vanilla discussion link. In the "WordPress Default 1.6" theme you would do this like so:
- Open the "Main Index Template" and look for the following PHP block:
<?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?>
- Replace it with this:
<?php if ($vanilla_link = get_post_meta($post->ID, 'VanillaDiscussion', true)) { echo ("<a href=\"{$vanilla_link}\">Discussion »</a>\n"); } ?>
- Do the same thing in "Archives" and "Single Post"
- Finally, in WordPress administration go to "Options" >> "Writing". At the bottom under "Update Services", add the link to your forum's extension.php file, like so:
http://www.mormonmomma.com/board/extension.php
Now say the Hail Mary a few times and edit one of your WordPress posts. You don't have to change anything, just click the Save button. You should now see a new discussion in your forum, courtesy of Janine. Let me know if this doesn't work and I'll pray harder.$Configuration['JanineDiscFormat'] = 'Html';
It may be that your Janine is trying to post using a user account that does not have post permission. Could you open your conf/settings.php file and whisper to me the Janine-related settings?
You must be logged in as a user to trigger the JanineUpdate post back action. A non-logged-in guest can't do it. It's because of how extension.php works.
Sorry about that.
But regardless, I thought the JanineUpdate post-back was just letting me know what my error -- are you saying I need to run it for Janine to work?
Sorry for the questions, just trying to get it to work!
i just uploaded it and activated it. i published a test post which didn't show up so i tried the extension.php?PostBackAction=JanineUpdate which gave me a different error message, which i think you referred to earlier: so then i signed out of Vanilla and did PostBackAction=JanineUpdate again and it told me Janine had posted an article into Vanilla. signing back into the forum, i confirmed that the discussion and comment had been added.
i then published another WP post which didn't show up until after i ran PostBackAction=JanineUpdate as a logged out user -- basically repeated the previous attempt.
so now i'm not sure what's preventing the automatic posting, me or the code? i'll whisper my current settings to you
Logging out and logging back in don't work.