I make WordPress and MyBB plugins on request! Check my Plugin Development page.

WordBB 0.2 Beta Released

Projects,WordBB 29 October 2009 | 65 Comments

A new WordBB version has just been released. You can get it on the official WordPress.org WordBB page. Here’s the changelog:

wordbb

  • Now it’s possible to post a comment on the forums through WP’s form
  • Added “Redirect to MyBB thread when using WP’s comment form” setting
  • Fixed bug in Sync function
  • Fixed bug in get_comment_link() hook
  • Now you can leave “Default Post Forum” empty in order to avoid syncing by default (and maybe enable it only for specific categories in “WordBB Categories” section)
  • Fixed createPost function bug
  • Fixed bug in get_comments_number() hook

The most important feature is that you don’t need to hide your WP form anymore: you can just use it and it will post comments on MyBB directly from your WordPress blog without forcing your users to go on the forums (of course the user must be logged in). Some template tweaking is still required, as you may want to show the username of the currently logged in MyBB user near the comment form.

As usual, you can report bugs and glitches on this blog post. Happy merging!

Tagged in , ,

65 Responses on “WordBB 0.2 Beta Released”

  1. Mathias says:

    Medal of honor goes to….
    valadilene’s blog
    0.2 testing will be fore saturday

  2. Leo says:

    yeah yeah yeah~~
    thanks for your work man.

    I have a few suggestions for the future development :
    1. the plugin is not compatible with NextGen Gallery, will make the Meta cannot show.
    2. is it possible to have an option that create a link in the forum post in order to link back to the original wordpress post. I want this because I am not posting full post in forum and wanna let visitor have a link to look into the original full post.

    sorry for my bad english.
    Happy Halloween.

  3. Leo says:

    sorry, one more comment.

    I found that the post will show the original comment form when using scheduled post feature.

    Have a nice day.

  4. Xitex says:

    These features would be nice:
    1. When visitors register on WordPress, automatically they register on MyBB
    2. When visitors login on WordPress for their accounti, automatically they login MyBB account. Also logout function like this.
    3. When members update their profile on WordPress, automatically their MyBB profiles will be updated. And password changes is included in this feature.
    4. If a member account delete on WordPress, same account wil deleted on MyBB member list.
    5. Last MyBB forum posts can be showed on WordPress.
    6. Last MyBB forum topics can showed on WordPress.
    7. Last MyBB users can listed on WordPress.
    8. You can show total member number.
    9. Some statistics will show on WordPress like Total Members, Total Posts, Total Topics, Total Categories, Total Boards.
    Make a future todo list :)
    got it from: http://www.freakitude.com/2006/11/04/wordpress-smf-bridge/
    thats a SMF – WordPress integration plugin, would be nice to have the same features for MyBB

  5. Hangman says:

    @Xitex: 1 to 4 are pretty useless in my opinion, and I explained why in this blog post (“So, what about the features?” and “The Ideal WordBB Scenario” paragraph): http://valadilene.org/2009/08/04/wordbb-0-1-beta-released/
    Also, some of those are just plain impossible for the password encryption thing (if not impossible, just not worth implementing).

    5 to 6 are already there. When you install WordBB, a new sidebar widget gets added. It allows you to show last threads and posts from your MyBB forum.

    7 to 9 can be done as template functions.

    Thanks for your suggestions!

  6. FL4PJ4CK says:

    Wow thanks for the updates, it now almost works perfectly.
    Those are my current problems so far:

    - When I write a comment using the wordpress comment form the comment appears in the MyBB thread like it should, but the author is “Guest” instead of the user which is logged in in MyBB. When I post the comment directly to the thread it works.

    - I think there should be another function that directly redirects back to the wordpress article instead of the thread, so that the user doesn’t actually notice that the comments are handled with MyBB. It would be perfect if the comment form just works like it does without the plugin (just with the difference that the comment appears with the user’s acount).

    I hope I made my points clear and am excited what think about it.

    But thank you anyway, MyBB is the best and most important plugin for my current project! :)

    Regards,
    Nico

  7. Hangman says:

    @FL4PJ4CK:

    1) Double check your MyBB cookie domain: MyBB cookies must be visible to WordPress so, assuming WP is in your root, the cookie domain should be “/” (not “/forum” or whatever your forum subdirectory is).

    2) It’s already there. WordBB Options -> “Redirect to MyBB thread when using WP’s comment form (will redirect to WP comments if unchecked)”.

  8. FL4PJ4CK says:

    1) Uhm… And what if my site looks like this: blog.domain.tld and forums.domain.tld? My cookie domain is “/” at the moment.

    2) Oh I’m sorry, your right. That works perfectly :)

  9. FL4PJ4CK says:

    Is there a solution for the problem with the subdomains yet?

    thanks, Nico

  10. Lazy says:

    Hi,

    really great work and its working quite good

    i wonder if i can use template tags rather than widgets to show last posts and so on?

    i tried it but following appeared:

    Fatal error: Cannot redeclare get_attachment_icon() (previously declared in /opt/lampp/htdocs/testingarea/html/wp-includes/post-template.php:1026) in /opt/lampp/htdocs/testingarea/html/forum/inc/functions.php on line 2723

    have a nice day

    chris

  11. Lazy says:

    sorry for disturbing you..

    tried the template tags for latest posts but nothing shows up (?)

    sure my fault but i cannot see it, where i make this fault. just entered the template tag for last posts (function) into the sidebar.. wrong (?)

  12. Jake says:

    So I tried using the avatar function, and it didn’t work.. nothing showed up. How do I fix this..?

  13. CMack says:

    The widget works wonderfully, and *almost* completely as expected. However, there is a bug in the code somewhere, where the usernames are not displayed when the widget control’s checkbox is checked. However, in the wordbb.php file, line 351, if you “reverse” the check for the variable, it suddenly works! Change the code to ” if(!$usernames) : ” (add the ‘!’).

    Not sure if this is a general thing, or if it’s specific to my install of WP. I’m running the latest release of WP, but also quite a few other plugins as well. Other than the small fix needed to display user names from MyBB, it works perfectly! :)

  14. Hangman says:

    @Lazy: which one?

    @Jake: probably no one’s logged in, or your MyBB cookie path is not set to the WordPress path.

    @CMack: Weird stuff, I’ll check it later.

  15. Ryan says:

    First of all, great plugin. Thanks for releasing this.

    I am trying to use wordbb_get_userinfo() in a wordpress template, like sidebar.php for example. However, when I save that and try to view my wordpress homepage where the sidebar is, the user info does not show up. I am logged in to mybb so it should show my user info.

    When I try to print_r() the $wordbb object to see what’s in there, I don’t see a “loggeduserinfo” property.
    This is all on a fresh and up to date installation of both mybb and wordpress on my localhost.
    Do you know of a possible reason why this wouldn’t be working?

    I know the plugin itself is working because I can use the “WordBB Latest Threads” widget in my wordpress sidebar and it works as expected.

    Thanks for your help.

  16. Hangman says:

    You should var_dump or print_r the value returned by that function, not the $wordbb object. Try that and let me know if it works for you.

  17. Ryan says:

    When I do as you suggested, nothing shows up. It’s just blank.

    The reason I print_r($wordbb) was to see what was in that object, and I didn’t see anything relating to loggeduserinfo.

    I’m pretty sure I have all my settings and paths set up correctly though.

  18. Hangman says:

    This is probably related to your MyBB cookie path. Where are your blog and forums located?

  19. CroneKorkN says:

    Hello,

    i’ve got a problem with WordBB 0.2.9 DE-Edition. Everything is working fine but the creation of threads in MyBB: if i choose more then one category in WP, there will be created as many threads in mybb, as the number of categories i chose.

    MyBB 1.4.9+WP 2.8.6+WordBB 0.1.8: works fine
    MyBB 1.4.10+WP 2.8.6+WordBB 0.2.9: multiple threads when choosing multiple categories.

  20. Hangman says:

    What’s WordBB DE-Edition?
    Anyway from what I understand, you have published a blog post in two categories, and both of them are connected to a MyBB forum, right? Well, then I guess this should be the normal behaviour, because the plugin has no clue whether it has to create the thread in the first or the second forum…

  21. CroneKorkN says:

    Ok, my fault, i didn’t know i can assign a forum to every category.
    But there is difference between v0.1.8 and v0.2.9: I hevn’t assigned forums to categories in my testinstallation. In the older version there is only one Thread created in MyBB, although i checked three categorys. Doing exactly the same in version 0.2.9 will result in three threads in the same Forum – with the same content of course.

    It would be great to have the possibility to choose, that there will be only one thread always in the same forum, independendly from the amount of categorys i choose in WordPress.

    PS: The description of the Plugin tells that im using the “DE-Edition”:
    “WordBB – WP side -WordPress/MyBB bridge.
    Version 0.2.9 DE-Edition | Von Hangman | Besuch die Plugin-Seite”

    Thank you for your quick help!

    greets

  22. Hangman says:

    Weird, probably someone translated the plugin to German and published a new version (I didn’t know about that).

    Anyway, yeah, actually that was a bug in the old version: in fact it would use only the first category in any case, so if you selected two categories – first one not bridged and second one bridged – no thread was created because it would stop at the first category. Now, the difference with the new version is that it won’t stop at the first one but will loop through each selected category, so of course if you use more than one bridged category you end up with a duplicated thread in each forum. I guess there’s no other way I can’t think of, because the plugin obviously can’t guess which one of the forum you want to post that thread in (first one or second one?).
    That said, as for the option to choose only one category even though more than one is selected, I’ve got to think about it. I honestly can’t imagine how to make it in terms of user interface, but I’ve added it to my todo list.
    As a temporary workaround, you could just create a “fake” category for each forum you want to merge, and select them in your posts besides the actual categories. In that way you can select multiple categories for your blog-post, and use just one “merged” category to create the forum thread. You can then hide and exclude those fake categories from lists using some plugin like Advanced Category Excluder.

  23. Ryan says:

    Hi Hangman,

    On my localhost, I have my blog set up on a virtualhost in ubuntu so my WordPress install is at http://mysite.dev.
    MyBB is located at http://mysite.dev/forums.
    My cookie domain in mybb settings is: .mysite.dev
    My cokkie path is: /forums/

    So I think these are correct, but not sure why I can’t access the logged in user’s information in my wordpress templates.
    Thanks!

  24. Ryan says:

    I figured out why it wasn’t showing the logged in user info. I have my forums at http://mysite.dev/forums and my wordpress at http://mysite.dev. My mybb cookie path was set to “/forums/” and this was restricting the cookie from being called when I was browsing at the root level of my site on my wordpress pages, so the plugin didn’t have any cookie to read from.
    The fix was changing my mybb cookie path in the admin general settings to the root of my domain, ie: “/”

    So that might help anyone who was having the same problem.
    Thanks.

  25. FL4PJ4CK says:

    Hey,
    I’m not able to solve my cookie problem with various subdomains. I tried a bunch of different things now, but it doesn’t show up the username :/

    Nico

  26. Denver says:

    Hey when I try to set catogories to forums and I click save changes it redirects me to http://my.tld/wp-content/plugins/wordbb/actions.php and says page doesnt exist is it my fault?

  27. i have got a problem with word press building, However, when I save that and try to view my wordpress homepage where the sidebar is, the user info does not show up. I am logged in to mybb so it should show my user info.

  28. Hangman says:

    @Denver: try uploading the plugin to your server again.

    @violin strings: have you checked your MyBB cookie path?

  29. Besign says:

    I have the same problem. The wordbb_get_userinfo function returns null. This is a very important function. Please help!

  30. Hangman says:

    Please check your MyBB cookie path. The function itself should work, because I’m using it on a 2000+ users community website.

  31. Besign says:

    My MyBB cookie path is /forum/. I have no subdomains and my blog is in the root folder /.

  32. Besign says:

    Do you think that the cookie path or cookie domain needs to be changed? The cookie domain is .mysite.com and the cookie path is /forum/. Do you think it can be a PHP setting or something in the MyBBIntegrator class?

  33. Hangman says:

    Yes of course. The cookie will not be visible at all if the right cookie path is not set.

  34. Besign says:

    I don’t think I can change the cookie path to anything else. I’ve checked on ways to find the correct cookie information on the MyBB Wiki but it seems that it’s all correct.

  35. Besign says:

    Thank you, I’ve gotten it to work. You must set your cookie path to / or wherever your WP directory is and make sure there is no cookie prefix set.

  36. Besign says:

    I made a function for template.php that gets your forum URL.

    function wordbb_forum_url()
    {
    global $wordbb;
    echo $wordbb->mybb_url;
    }

    You would have to use it outside of an echo, for example:

    echo ”;
    wordbb_forum_url();

    A logout function would be nice or at least someway to retrieve the logout key.

  37. FL4PJ4CK says:

    Hey,
    I already described my problem here: http://bit.ly/6BfNEC

    Could you just tell me if it’s possible or not? I’d like to launch my site soon and WordBB is the only thing that doesn’t work so far.

    Sorry for the multiple posts!

    Nico

  38. Hangman says:

    @FL4PJ4CK: try “.domain.tld” (dot included).
    @Besign: you’ll find it in the next version – I need that myself too.

  39. Edgar J. says:

    Hey I’m confused I downloaded the WP Side where is the MyBB side?

  40. Hangman says:

    There’s no MyBB side at the moment.

  41. Besign says:

    What changed in WordBB 0.2.9.1?

  42. Hangman says:

    @Besign: Just a small bugfix.

  43. FL4PJ4CK says:

    ## “@FL4PJ4CK: try “.domain.tld” (dot included).”

    That’s my current cookie path. This works just fine for my forum, but the connection between MyBB and WordBB doesn’t still work…

    Thanks for your help,

    Nico

  44. FL4PJ4CK says:

    Sorry, I talked about the cookie domain, not the cookie path.

    Current cookie path: “/forum/”.
    Current cookie domain: “.mountainboard-world.de”

    Nico

  45. Dawson02 says:

    Hi.i’m using wordpress 9.1,mybb 1.4.10 and mybb last version but when i click create thread it doesn’t create anything.
    I insert the forum url: /forum
    and the path: /membri/dawson02/forum
    after i check Create MyBB thread on WP post publish
    But it doesn’t work,please help me

  46. Hangman says:

    @FL4PJ4CK: try to set the cookie path to “/”.

    @Dawson02: Do you get any error message regarding WordBB in your WP-admin?

  47. FL4PJ4CK says:

    uhm no, that doesn’t work to.
    Just to make it clear: The admin creates a new post in WordPress. A thread appears in MyBB – this works.
    Then a user who isn’t logged in WordPress, but in MyBB posts a comment using the wordpress comment form for guests.
    The post appears in the thread and in the article itself. But the user of both just is “Guest” and not the logged in user.

    That’s my problem :/

    Sorry for taking your time,

    Nico

  48. Hangman says:

    @FL4PJ4CK: It must be a cookie problem. Try playing with cookie settings until you can see MyBB cookies on WordPress. Of course you should logout/login again after you have modified the settings.

Leave a Reply