bbPress

Simple, Fast, Elegant

bbPress plugin browser »

bbSync (0.94)

Download

Version: 0.94

Other Versions

Last Updated: 2008-1-6

Requires bbPress Version: 0.8.3 or higher

Compatible up to: latest

Author Homepage »

Average Rating

5 stars
4 stars
3 stars
2 stars
1 star
(12)

Your Rating

Author: fel64

When you make a new blog post, this post will be turned into a new topic in your forums. Replies can be made to the topic. Comments made through the wp comments form will also be shown as replies to the corresponding thread. All comments/replies will show up automagically in wordpress, too.

This plugin will disable bbPress Post. It can clean up bbPress Post, use the data itself and get rid of the old tables. This plugin does not add tables.

There are a variety of options, like links back and so on. It's pretty rad!

Since it does not increment wordpress' comment count, you can add something like this to your template:

<?php if($topic_id = felwptobb( $id ) ) { echo '<a href="' . bbreplylink( $topic_id ) . '">Reply!</a>'; } else { comments_popup_link('&nbsp;comments', '1 comment', '% comments','',''); } ?>

  1. neoen

    Inactive

    Hello, great idea but:
    1) When I tried to migrate, there is following error:
    WordPress database error: [Table test.wp_bbpress_post_posts' doesn't exist]
    SELECT * FROM wp_bbpress_post_posts
    WordPress database error: [Table 'test.wp_bbpress_post_posts' doesn't exist]
    SELECT * FROM wp_bbpress_post_posts

    2) And when I tried to edit post (and fill forum id and excerpt length), there is following error:
    Fatal error: Call to a member function get_user() on a non-object in /var/www/web5/separatista.net/adventury.separatista.net/wp-content/plugins/bbpress/bb-includes/functions.php on line 998.

    Thank you for your help...

    Posted: 11 months ago #
  2. fel,

    The last comment I made in the original thread is begin swallowed up. It shows that there are 90 replies, but unless you manually change the page number to 4, the last two replies don't show up. It looks like we need more than 3 pages for a thread in the forum...

    Since your reply is the last in the thread, I'll quote it.

    Yeah, I agree and you're probably right. I think it's an issue with bb being all confused when it's loaded after wp, and not finding capabilities it assigns the defaults but with the wrong meta_key ... or sumthin'?

    Is the entry created every time you post? Is it only created if it doesn't yet exist (or has been deleted)? Repeatability is where the problem is, since everyone seems to get different problems and I haven't had that one.

    To answer your question, if the row with meta_key set to capabilities doesn't exist, it is created. If I manually delete it and then post (with a value in the default forum field in the bbsync options screen) the row is recreated. If I post (without a value in the default forum field in the bbsync options screen), no post to the forums is made AND the row is not recreated.

    One curious side effect is that, once the row is added, it changes my user status, and until I delete the row, I can't get into the forums as an admin.

    Posted: 11 months ago #
  3. Hi fel,

    Great plugin. I got it to work but once I did, my bbpress users capabilities turned to Member rather than Keymaster/admin. Any idea how that happened or how to undo it? Will it happen every time I post a blog entry?

    Is this a problem you know about? Any suggestions on how I can reset the admin capabilities?

    Posted: 11 months ago #
  4. Hmm..I think I fixed it. Saw a fix in one of your threads. Partly anyway...I can't seem to set a particular user (id 2) to anything without it reverting back to Member.

    Posted: 11 months ago #
  5. And posting another blog entry reverted the admin's keymaster role again. And I can't seem to set it back. I had a backup Keymaster just in case and he can't seem to promote userid 1 and 2. But can promote others.

    In the database, both userid 1 and 2 have a:1:{s:9:"keymaster";b:1;} .

    Any suggestions for how to fix this? For now, I've turned off bbsync.

    Posted: 11 months ago #
  6. Log into your wordpress and or bbpress database.
    Look for an extra capabilities entry within wp_usermeta or bb_usermeta that has the same user_id as your admin.
    It will probably say member.
    Delete it.
    (Its a good thing to know what your during with a database before you do the above.)
    This should allow your admin to go to the admin page.
    Wilbur

    Posted: 11 months ago #
  7. neoen

    Inactive

    Hello, I tried new version and there are following errors:

    1) When I tried to update plugin:
    Warning: Invalid argument supplied for foreach() in /var/www/web5/separatista.net/adventury.separatista.net/wp-content/plugins/bbsync/bbsync.php on line 157

    2) When I tried to set forum 1 and excerpt 100 during editing WP post. When I tried to save post then, following error appears:
    Fatal error: Call to a member function get_user() on a non-object in /var/www/web5/separatista.net/adventury.separatista.net/wp-content/plugins/bbpress/bb-includes/functions.php on line 998
    But when I add global $bbdb, $bb_cache, $bb_roles; to config.php, then it works well.
    Another problem appears - I was admin and could go to admin area of bbpress. Now I cannot (I am also using plugin My name 0.7.2). And when I tried go to bb-admin, I am redirected back to forum.
    I tried to change it in MySQL and it is OK, but this problem can appear whenever?

    3) I tried to add <?php bbrepliestext(); ?> to my template (index and single) but following error appears:
    Warning: Division by zero in /var/www/web5/separatista.net/adventury.separatista.net/wp-content/plugins/bbpress/bb-includes/functions.php on line 1465
    Also <?php felbbreplies(); ?> does not work and nothing is displayed...

    But this plugin is great idea! Thank you for your help...

    Posted: 11 months ago #
  8. fel,

    Wish I had better news. The new version still fails to create a post if default is left blank; still creates a row with capabilities set to member.

    Crowspeaker

    Posted: 11 months ago #
  9. Woah. Sorry for not replying! I thought I subscribed to this in my RSS reader but I hadn't.

    Crowspeaker, thanks for all your testing. Can you tell me if forum ID 1 exists?

    kheldon, not sure how to fix that right now, sorry. But that's the most important thing about this plugin now.

    Cheers Wilbur for helping him. :)

    neoen: 1) yeah, I guess I should validate that better. But if it didn't work before then it doesn't matter. All I did was add some data to wp_postmeta, which means that it is being stored twice but it also reduces the amount of db calls by the number of posts on the page (which is quite a significant gain).
    2) Coolio, glad to know that fixed it.
    3) You can't currently use bbreplytext() outside of bbreplies.php (the optional template file). I guess it makes more sense to make it available the entire time, I'll look at revising that. What version of bb are you using? I looked at .8.2.1's line 1465 and couldn't find what the matter could be.
    _Nothing_ is displayed for felbbreplies() ? Unless it produces an error it should either output a list of replies or simply <h3>Reply!</h3>. If you added bbreply.php to your theme folder, is it empty?

    Posted: 11 months ago #
  10. neoen

    Inactive

    Hello,
    ad 2) I think it is the same problem like Crowspeake had.
    ad 3) I tried to use following code in my template (theme):
    felbbreplies() - nothing shown on website.
    bbreplytext() - now also nothing shown (without error on line 1465 - but it is possible that is due to my MySQL repairs of point 2 - user levels?).
    No chance to display topics (or Reply button) from bbpress in my WP template (default Kubrick), even if I added bbreply.php to my theme folder.
    Version of bbpress is latest SVN trunk.
    Thank you for your help...

    Posted: 11 months ago #
  11. Hello,

    Any updates?

    Thanks!

    Posted: 9 months ago #
  12. Hey,
    I've done some work on it a few weeks ago and have figured out some specific problems, but not how to fix them or why they occur. It'll be a while before this is fully sorted out - but I will be adding to it, at the very least tag support.

    Posted: 8 months ago #
  13. petitpoulain

    5 stars
    4 stars
    3 stars
    2 stars
    1 star

    Inactive

    Can i choose only some post to go to the forum?

    Like a checkbox on "Write Post" when i can mark a "post to bbpress" or not

    Posted: 8 months ago #
  14. RandyWalker was having some problems, and (at least part of it) was do to http://plugins-dev.bbpress.org/ticket/12

    Posted: 8 months ago #
  15. jazbek

    Inactive

    going to be trying this out with wpmu shortly.. will post back with my results!

    Posted: 8 months ago #
  16. vitovarducci

    Inactive

    I'm not sure what I'm doing wrong.
    I filled out all of the proper synchronization options and everything registered correctly.
    But when I go to migrate from bbpress post, I receive this error:

    WordPress database error: [Table 'db218346346.wp_bbpress_post_posts' doesn't exist]
    SELECT * FROM wp_bbpress_post_posts
    
    WordPress database error: [Table 'db218346346.wp_bbpress_post_posts' doesn't exist]
    SELECT * FROM wp_bbpress_post_posts

    How do I fix this?

    Thank you for your help!

    Posted: 8 months ago #
  17. mdawaffe, looks good. I'm updating now. Cheers.

    Posted: 8 months ago #
  18. zenonx

    Inactive

    It doesn't work. After posting new wp article & comments to it my bb account will be no longer admin account. There is solution above (deleting new row in bb db table bb_usermeta), but after posting next article the same error happens. So this plugin is unusable :(

    Posted: 8 months ago #
  19. It gives me these errors every time I comment on a post in my blog:

    Warning: mysql_affected_rows(): A link to the server could not be established in [my blog address]/forums/bb-includes/db.php on line 248
    
    Warning: mysql_affected_rows(): A link to the server could not be established in [my blog address]/forums/bb-includes/db.php on line 248
    
    Warning: mysql_affected_rows(): A link to the server could not be established in [my blog address]/forums/bb-includes/db.php on line 248
    
    Warning: Cannot modify header information - headers already sent by (output started at [my blog address]/forums/bb-includes/db.php:248) in [my blog address]/wp-includes/pluggable.php on line 391

    It gives a different set of errors for posting a new post.

    Posted: 8 months ago #

RSS feed for this topic

Add a Comment »

You must log in to post.

Code is Poetry.