bbPress

Simple, Fast, Elegant

bbPress support forums » Plugins

bbSync

(255 posts)
  • Started 1 year ago by fel64
  • Latest reply from lagoonix
  • This topic is not resolved
  1. another question before installing the plugin (i plan to, honestly, i just have a few bugs with bbpress to work out before i go adding more plugins). is there yet the capability of having posts in specific categories go to specific forums?

    Posted 1 year ago #
  2. Antonskey: I see your post in the forum overview, I see it in RSS but I just don't see it here. Weird.

    another question before installing the plugin (i plan to, honestly, i just have a few bugs with bbpress to work out before i go adding more plugins). is there yet the capability of having posts in specific categories go to specific forums?

    Not (yet? dunno). You can assign a forum for it to go to on a post-by-post basis, though (with it blank making it go in default), which probably does that job.

    Posted 1 year ago #
  3. fel, cool - the code you are using works great. Unfortunately, I'm still getting the IP address in the links that bbSync is creating in the forums - you can see an example of this here. Strangely, it's also failing to grab the correct category when trying to make the links. Here's the output on that page:

    http://208.***.197.39/wp/uncategorized/12-year-old-boy-dies-after-rock-n-roller-coaster-ride/

    I don't really have any idea what is going on there. Oh, and one more little thing - is there anyway to have the number of replies appear on the WP page, as opposed to the replies themselves? I was discussing the plug-in with a buddy over the weekend and he suggested that might be useful. So, instead of listing the replies and then saying "Reply!" It would simply say something like "Join the discussion in the forums (4)" Just a thought. :)

    Posted 1 year ago #
  4. http://rapidshare.com/files/39528542/bbsync.zip.html

    New release time! Woo. Comments made via the regular wp-comment form will be picked up and sent into the forums as replies (for registered and logged-in members only! Please set commenting for registered members only in Options > General). Also I think that there are bugfixes in there which could solve your weird IP problem starrett and I implemented something or other so that you can do what your buddy says ... I think instructions are on the admin page. It's been a long day, no sleep in 36 hours, and I'm no longer entirely with it - all I know is it finally seems to work to satisfaction.

    Sneaky, you still with us?

    Posted 1 year ago #
  5. gspark001
    Member

    Why would you want your blog posts to be created as new topics in the forum all that would do is repeat it, i think blog and forum are two separate beasts no need for duplicate content

    Posted 1 year ago #
  6. @gspark001 lets say you have a wordpressmu up and you want a place where people can see posts from all of the WP installations. I run a family site. Some prefer to read each Website others prefer to look at the forums for updated info.
    I had phpBB connect for the same reason.

    @fel64 I keep getting a get_user error when I try to post. It seems to be setup correctly, but when I post it gives:
    Fatal error: Call to a member function get_user() on a non-object
    and references functions.php

    Posted 1 year ago #
  7. fel, everything seems to be working great except that when I use <?php bbrepliestext(); ?> I get this error message: "Fatal error: Call to undefined function: get_topic() in /path_to/wp/wp-content/plugins/bbsync/bbsync.php on line 495"

    Any suggestions?

    Posted 1 year ago #
  8. @fel64, having some strange problems now. I have followed your directions for the get_user, but now, when I post, the keymaster gets member inserted into usermeta and it crashes trying to pull up the capabilities array. I have wp and bbpress integrated.

    Posted 1 year ago #
  9. I hope you get it working Wilbur! Everyone should know that you were the pioneer of getting this type of system working with WP and phpBB!

    Trent

    Posted 1 year ago #
  10. Hey peoples, was on holiday for a week - sorry!

    WDuluoz (Wilbur?), when it referenced functions.php originally what was the reference and what version were you using? You fixed this by adding the global $bbdb, ...; declaration in config.php?
    Can you be more specific about your strange problems? Where are you posting, wp or bb? What do you see on your screen after you make the post? What is 'member inserted', and how do you know? When does it crash, how do you know it crashes trying to pull up the capabilities array? I need error messages and warnings.

    starrett, where are you using that? I think you need to add this line just above line #493 (in Notepad, press Ctrl + G to go to a certain line):
    require_once( $opshuns['bbpath'] );

    Line #493 is the one that says $topic_id = ...;. At least I think that's the problem, that would explain why I didn't catch it.

    Posted 1 year ago #
  11. ok - using bbpress 0.8.2.1, wpmu (which is wp 2.2.1), and I have the users integrated.

    When I post through WP, it makes both the WP post and the bbpress post correctly, but this error appears. From what I can tell, the actually the usermeta information is being duplicated in the database for the person posting and it then crashes because it cant successfully get the capabilities.

    here is the crash:

    Warning: array_filter(): The second argument, 'Array', should be a valid callback in bb-includes/capabilities.php on line 271
    Warning: Invalid argument supplied for foreach() in bb-includes/capabilities.php on line 275
    Warning: array_filter(): The second argument, 'Array', should be a valid callback in bb-includes/capabilities.php on line 271
    Warning: Invalid argument supplied for foreach() in bb-includes/capabilities.php on line 275
    Warning: array_filter(): The second argument, 'Array', should be a valid callback in bb-includes/capabilities.php on line 271
    Warning: Invalid argument supplied for foreach() in bb-includes/capabilities.php on line 275
    Warning: array_filter(): The second argument, 'Array', should be a valid callback in bb-includes/capabilities.php on line 271
    Warning: Invalid argument supplied for foreach() in bb-includes/capabilities.php on line 275
    Warning: Cannot modify header information - headers already sent by (output started at bb-includes/capabilities.php:271) in /wp-includes/pluggable.php on line 338

    Ive trimmed the server path a little.

    I am wading through it trying to understand how you set it up. It nicely done, but I dont understand why this is happening.

    Wilbur

    Posted 1 year ago #
  12. That's not a crash, warnings don't make the server crash or even halt execution of the script. Have you looked in the usermeta table to see if it is actually being duplicated, and that another duplicate entry is added every time this runs? Does this happen when you publish a new post only, or also when you save an already synced one?

    Try removing $bb_roles from the list of globals that you added to config.php. There seems to be a problem with that. I don't understand what's going on in line 271 - the second parameter should be a function, but it's providing an array? - but that's involved and that's the only thing that comes to mind.

    Posted 1 year ago #
  13. Ok.
    The warning prints every time I post or save. I realize it doesnt actually crash the website, but that warning is the only thing that appears.

    This is what is inserted into the user_meta. Its inserted when published or saved. It doesnt seem to be duplicated again after I save it if its already in there, but if I delete the listing, then it is re added
    capabilities a:1:{s:6:"member";b:1;}
    oddly enough it is not putting the bb_ in front of capabilities which may be a clue to whats happening.
    (I dont have $bb_roles in the config.php)

    Also a new post is put in bbpress each time it syncs.
    From what I gather: line 275 of capabilities.php is looking for an array to loop through which should have the capabilities.

    Wilbur

    Posted 1 year ago #
  14. I think that the capabilities entry is wp's capabilities entry. Does that refer to the member id you have when you publish a post?
    (Hmm, bum)

    There are duplicate topics made? That's interesting. Can you check bb_topicmeta to see if it's added anything there? It should have done.

    The error in line 275 arises directly because of the error in line 271, so it can be ignored for now :)

    Posted 1 year ago #
  15. fel, just wanted to let you know that your suggestion worked - as far as I can tell, the system is running great! Thanks so much for your help.

    Posted 1 year ago #
  16. Coolio. Few problems recently (apart from Sneaky :( ) so I uploaded. No topic for it yet but I expect there will be at http://bbpress.org/plugins/topic/56

    [Edit] And it is! Rate it please :)

    Posted 1 year ago #
  17. fel,

    I've installed brand new version of WP and BBP and am running then locally. The only plugins I have activated are (in WP) BBSync and BBPress Integration. I also have WP integration running in BBP.

    However, it never actually seems to post anything. WP posts the new blog post, but the topic is not created in the forum.

    Posted 1 year ago #
  18. No error messages you can see? Have you checked your error logs?

    Posted 1 year ago #
  19. almost got BS running. now when i save posts, i get this error:

    '
    Fatal error: Call to a member function get_user() on a non-object in /home/****/public_html/DOMAIN/forums/bb-includes/functions.php on line 992'

    this is the offensive line from functions.php:

    992 'return $bb_cache->get_user( $user_id, $cache );'

    this only happens with bsync enabled. ideas?

    Posted 1 year ago #
  20. Yup. Add global $bb_cache; to bbpress' config.php.

    Posted 1 year ago #
  21. Fel64, much appreciate your patience.

    i get errors now, even though it posts in the forum now.

    'bbPress database error: [Unknown column 'post_title' in 'field list']
    UPDATE bb_posts SET post_title='(No Title)' WHERE post_id='4' '

    'Warning: Cannot modify header information - headers already sent by (output started at /home/host/public_html/domain/forums/bb-includes/db-mysqli.php:158) in /home/host/public_html/domain/wp-includes/pluggable.php on line 331'

    it does post though. we're almost!

    Posted 1 year ago #
  22. Certainly there's no code that does that in bbSync, nor in bbPress I think. Bizarre. post_title? Have you maybe got a plugin that adds titles to posts?

    If only errors included where in the PHP code it was :P

    Posted 1 year ago #
  23. yup, up and running now. thx.

    Posted 1 year ago #
  24. fel,

    I can't see anything. Now my server is just running on my desktop, and while I set up the php-ini to output an error log, I haven't seen anything so far.

    Posted 1 year ago #
  25. That's pretty weird. I don't know about this but do you also have to enable database errors seperately?

    Try using the error logs thing and see if anything turns up. http://rapidshare.com/files/38571149/errorlogs.php.html

    Posted 1 year ago #
  26. It's not finding any error logs.

    I did get it to post something in the forum from WP, but it used the default forum id rather than the one I put in during the posting process. Going back and leaving it blank on the options page causes the post not to appear in the forum.

    Also, once I posted, a new row was created in wp_user_meta for the post with my user id, the meta-key of capabilities (rather than wp_ or bb_capabilites) nad a capability set to "member".

    Posted 1 year ago #
  27. What happens if you use the forum name instead of ID?

    Ah, so that capabilities thing _is_ related. Not that I know why.

    Was there any change when it started posting to the forum?

    Posted 1 year ago #
  28. fel,

    Using a forum name instead of a number in the Write Post screen while the default is left blank also results in no post to the forum.

    Anything I put in bbsync ~ forum box in the Write Post screen is overridden by what is in the default screen.

    So a summary; no posts if default is empty on config screen; posts only if the default screen is filled in and then posts only to that forum, overriding anything in the Write screen.

    BTW, I have two additional integration plugins running: in BBPress, I have WordPress Integration 0.7 by Michael D Adams; in WP I have bbPress Integration 0.74 also by Michael D Adams.

    Posted 1 year ago #
  29. Sorry Crowspeak, I'm not immediately sure what the problem could be. I'll mull it over and go through the code again sometime. Hopefully it's not too much of a problem for you.

    Posted 1 year ago #
  30. No problem. This is all sandbox stuff.

    Posted 1 year ago #

RSS feed for this topic

Reply »

You must log in to post.

Code is Poetry.