WordPress 2.5 and Vanilla Forums

As you can see, I have WordPress and Vanilla integrated on my site. So when you create an account on this blog, you can use the same account to post on the forums (Not like they’re used much…yet). A developer for WordPress wrote up a guide on integrating both here. This was all great but with WordPress 2.5 there are enhanced security measures: salted password hashes with phpass and encrypts cookies.

So naturally this broke the integration. Foreseeing problems such as these, someone developed a plugin which reverts the password hashing method to the old plain MD5 hashing (i.e. sans salting). After installing this, it allowed me to log into the forums with my account, but that’s the problem, I have to login. With the old integration method I would just go to the forums and I would be logged in. So now the problem was adapting to the new cookie system.

So anyways, practically the same day that WordPress 2.5 came out I posted on the Vanilla Official Forum. I had a few people who also wanted this fix so it picked up (I also have a friend, SirNot or Nick E., who is a developer for Vanilla and has written many immensely popular plugins for it). micz was able to modify the People.Class.WordpressAuthenticator.php file which handled the authentication for WordPress, everything works fine now. I did have to go to wp-config.php though and define a SECRET_KEY. For some reason I didn’t have that in there already but wp-config-sample.php had it so I just did it the way it did it, do something like this if you don’t have it:

1
define('SECRET_KEY', 'lolwtf1337hahaomghehethisislong');

Yes, just random stuff. Anyways, after you do that, then go to conf/database.php and define this:

1
$Configuration['WP_SECRET_KEY'] = 'lolwtf1337hahaomghehethisislong';

Notice that the key is the same as in the wp-config.php file. Once you’re done doing this, you’ll have to re-login to WordPress. Once you’re done with that, go to your forum and you should be set.

If you’re doing this for the first time you will want to do everything in the integration guide first, then do what I mention here.

6 Responses to “WordPress 2.5 and Vanilla Forums”


  1. Thanks so much for posting this. It was incredibly helpful! I think I would have given up if I hadn’t come across this post when I did. :)

  2. You’re very welcome elorg :) Glad I could help.

  3. Hey Blaenk,

    I have been integrating WP 2.5 with Vanilla, and have followed the integration guide and included your other 2 lines of code, but I cannot get it to work just yet, so I was wondering if you would understand my current issues.

    In terms of the integration guide, I was only able to login in vanilla if I changed:

    $Configuration['AUTHENTICATION_MODULE'] = ‘People/People.Class.WordpressAuthenticator.php’;

    to the full location, i.e.:

    $Configuration['AUTHENTICATION_MODULE'] = ‘full/path/to/People/People.Class.WordpressAuthenticator.php’;

    Otherwise, when I logged in, it would appear not to log in.

    Furthermore, when I take this approach, and I am logged into vanilla, when I go over to WP, I am not logged in.

    Anyway, if you have any suggestions I would really appreciate it. I have been working on this all day without success.

    Thanks again for you help,

    D.

  4. @Doc Gecko: After upgrading to 2.5.1 I began experiencing problems. There’s been fixes though which I haven’t included in this page, so perhaps it’d be best if you consult the discussion thread at the lussumo forums. There you can also ask other people for help. I believe your problem has to do with cookies, maybe you don’t have the MD5 passwords plugin enabled or you didn’t do the cookie portion correctly.

  5. Thanks for you quick response Blaenk!

    I too was thinking that this is a cookies issue, from what I have read from others about the differences with the new WP 2.5.1. I have enabled the MD5 plugin, but I will have to check about the cookie portion…not sure I did any more than just enable it.

    Anyway, I’ll see what I can find forum and if I found anything, i’ll post something back here.

    Thanks again,

    D.

  6. No problem, let me know if you need any other help but do read and ask in the thread, they can help you out.

Leave a Reply