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.

Vanilla + Wordpress + Janine

We've been configuring the vanilla+wordpress+janine setup. We had a test copy working using older versions of wordpress and vanilla. After that, we deleted everything and re-did the setup with the latest versions of all three programs. Suddenly the setup failed. The wordpress and vanilla integration is working great, but janine doesn't seem to be functioning. Here's what I have: A fresh install of Wordpress 2.1.2 A fresh install of Vanilla 1.1.2 A fresh install of Janine 1.0.3 What happens: Janine enables in Vanilla's extensions tab, but no discussions are created in vanilla to correspond with blog posts. I get this error when using the PostBackAction debug: "Notice: Undefined variable: PostBackAction in /Library/WebServer/Documents/blog.mormonmomma.com/wordpress/vanilla/extensions/Janine/default.php on line 93" My configuration settings in vanilla's conf/settings.php look like this: " $Configuration['JanineAllowPostBack'] = '1'; $Configuration['JanineControlType'] = 'WordPress21'; $Configuration['JanineDiscUserID'] = '1'; $Configuration['JanineDiscCategoryID'] = '1'; $Configuration['JanineDiscName'] = '%BlogPostTitle%'; $Configuration['JanineDiscBody'] = 'This discussion is for comments about the blog article %BlogPostTitle%. Thank you for participating.'; $Configuration['JanineDiscFormat'] = 'Text'; $Configuration['JanineBlogDiscLabel'] = 'VanillaDiscussion'; $Configuration['JanineVersion'] = '1.0.3'; " Any suggestions would be appreciated (squirrel, any thoughts?). I did double-check the ping address in Wordpress's Options>Writing--it is set correctly.

Comments

  • squirrel or anyone have thoughts on this? We're at a standstill. :)
  • Oh, for the love of...

    It's a bug. My bad. Janine 1.0.4 will be up within 24 hours.
  • Okay, the postback debug is broken because of a bug that I overlooked. Yay, not. But the rest of Janine does work, I swear. Here's a list of things to check for:
    • In the WordPress admin, under "Options" >> "Writing" below the "Update Services" header, make sure you have an entry for http://yoursite.com/path/to/vanilla/extension.php
    • In your WP post, make sure you have the "Allow Comments" box checked. Janine will look for and respect this setting.
    • If you still see no discussion for the post, edit the post and look for a custom field named "VanillaDiscussion". If it exists, delete it. You should see the field immediately re-created and a new discussion posted in your forum.
    I really hope one of these suggestions works because I'm honestly running out of ideas.
  • #1 Update services entry: http://blog.mormonmomma.com/wordpress/vanilla/extension.php #2 Allow Comments: I had UNchecked this, because I thought it would allow comments in WORDPRESS and I only want comments in Vanilla. Did I misunderstand? I notice that the link you sent to your site does allow comments, but the comments got to a WP comment form, and there is no discussion in Vanilla. OK, I checked that box, and now the post has a WP comment box below it to add comments. I don't want comments there, only in Vanilla. Still, no discussion created in Vanilla. #3: There are no custom fields for the discussion. Should this field have been created when I created a new post? Should I have created it manually?
  • edited March 2007
    #2 Allow Comments: I had UNchecked this, because I thought it would allow comments in WORDPRESS and I only want comments in Vanilla. Did I misunderstand?

    Well... yes. Janine looks for the "Allow Comments" checkbox and honors it. If it is not checked in your post then Janine will do nothing. Checking it will also enable comments in WordPress but I was assuming that users would edit their themes to remove all links to the WP comments module.

    Is that a bad assumption? Is this method too confusing? Or do I just need to fix my documentation?

    There are no custom fields for the discussion. Should this field have been created when I created a new post? Should I have created it manually?

    The field should have been created automatically by Janine. You yourself should NOT create the field.

    Janine starts up when extension.php receives an XML-RPC ping from WordPress. Unfortunately the ping has pretty much no useful information in it, so Janine must look in the WP database and make an educated guess about what it should do. First Janine grabs the most recently edited post, because 99.9% of the time that post's edit/creation was the source of the ping. Second, Janine looks in the wp_postmeta table to see if that post has a "VanillaDiscussion" field. If the field already exists, Janine assumes that it already created a discussion for this field and does nothing. Only if the post does not have a "VanillaDiscussion" field will Janine create the discussion. After the discussion is created, Janine takes the link to the discussion and creates an entry in the wp_postmeta table with the label "VanillaDiscussion" and the ID of the post. Now you can set up your WP theme to automatically look for the "VanillaDiscussion" custom field and use it as a link below the post body.

    It really bothers me that this is not happening. I'm double-checking my fixes to the postback debug method right now and I'll add a slew of more descriptive error messages. I'll have Janine 1.0.4 released in a few hours, hopefully.
  • Is that a bad assumption? Is this method too confusing?

    No, that works, squirrel. I can (and intend to) edit the theme I'm using to remove the comment links, so that's not a problem.

    Now you can set up your WP theme to automatically look for the "VanillaDiscussion" custom field and use it as a link below the post body.

    OK, I'll have to figure out how to do that. It used to happen by itself, as I guess you know. :)
This discussion has been closed.