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. fel,

    I did (I think) verify that the capabilities entry is being posted to wp_usermeta as a result of bbsync. If I disable the bbsync plug-in and post, a row with capabilities (without the bb_ prefix) is not added to wp_usermeta.

    Posted 1 year ago #
  2. I did (I think) verify that the capabilities entry is being posted to wp_usermeta as a result of bbsync. If I disable the bbsync plug-in and post, a row with capabilities (without the bb_ prefix) is not added to wp_usermeta.

    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.

    Posted 1 year ago #
  3. Updated to version ω (the labelling is entirely arbitrary). (Does this fix it Crowspeaker?) Once you upgrade, you needa press that 'upgrade' button or your previous bbsync'ed posts will no longer work.

    Posted 1 year ago #
  4. fel,

    I posted this on the plugin in page as well:

    The upgrade did not fix my problem. Trying to post with default forum left blank failed to create a post in BBpress. Posting with a default forum would post only to that forum (no override on the writing page). User_meta with the key capabilities still being created.

    Sorry.

    Posted 1 year ago #
  5. Guess these forums are seperate from the plugins after all - subscribed here but not there :/.

    Thanks for looking at that more closely, that's helpful. :)

    Posted 1 year ago #
  6. Crowspeaker, would you mind editing a core file? If you can edit line 257 of bb-includes/capabilities.php to this:

    $this->cap_key = 'foo_capabilities';

    Then save/publish a post as you always do and see if the entry foo_capabilities is created?

    That would bizarrely mean that the BB_User has an ID but no capabilities.

    Posted 1 year ago #
  7. fel,

    It did in fact create a f00_capabilities entry.

    Also, when posting, it seems to post only the title, not any of the post at all (even if full post is the default).

    Posted 1 year ago #
  8. Interesting. Can you comment out line 262? Actions and filters are a nice system but a nightmare to debug. Invisible gotos.

    I would really, really like to be able to tinker more with a setup that has problems. Can you give me the full details of what you're running? What OS, what thing to run PHP, what version of PHP and the like?

    Posted 1 year ago #
  9. I'm getting a file not found error when clicking on the download link.

    Posted 1 year ago #
  10. Did you try downloading from the plugin browser? http://bbpress.org/plugins/topic/56

    Trent if you see this could you take out the rapidshare link from the first post and replace it please? :)

    Posted 1 year ago #
  11. Thanks fel74, that got me to it.

    Posted 1 year ago #
  12. fel,

    With that line commented out, it does NOT create the new row in wp_user_meta. (I also reverted the f00_capabilites line).

    It still will not post where I tell it to go, and it is ignoring the length I give, only creating a topic but no post.

    Aargh!

    Here's a link to an html file with setup. Running on a Mac, OS X 10.4.10.

    http://rapidshare.com/files/46575069/setup.html

    Posted 1 year ago #
  13. Alright. That makes it somewhat more difficult because I cannot tell what functions are called with that hook, but maybe it is possible to find out.

    No post, you say? The mystery deepens.

    Thanks for the phpinfo. Unfortunately OS X is somewhat difficult for me ... perhaps I'll be able to do this at a friend's house. We shall see.

    Cheers. :)

    Posted 1 year ago #
  14. What is that? Spam?

    Posted 1 year ago #
  15. Yeah. Someone's already tagged it modlook but it seems that Trent, mdawaffe and matt are all away or not checking it.

    Posted 1 year ago #
  16. just got to it! thx everyone!

    Trent

    Posted 1 year ago #
  17. fel,

    Just a quick question about the plugin before I install it. From the readme it sounds like the bbpress topic is the only place where wp comments and bbpress replies will be shown in the correct order (ie. by post times). The wp post will show all the wp comments first and then the bbpress replies secondly via the felbbreplies() function. Is this correct?

    Posted 1 year ago #
  18. No, the felbbreplies() function will show all comments/replies made anywhere by a registered member. Or should.

    Posted 1 year ago #
  19. great thanks!

    Posted 1 year ago #
  20. I think that wp 2.3 will break this as there's (currently) a function name conflict - both use get_tag(). Will have to see about that. I'm sure bb's function name will eventually shift but not sure when.

    Posted 1 year ago #
  21. Would very much love to use this plug-in, but even after moving heaven and earth to find my absolute path on a Godaddy hosting account :-) I am still getting errors.

    When I try to publish a new article I get this:
    Fatal error: Call to a member function on a non-object in /home/content/a/d/m/adminsportzzz/html/forum/bb-includes/functions.php on line 997

    When I try to submit a comment I get this:
    Warning: Missing argument 2 for felsynccomment() in /home/content/a/d/m/adminsportzzz/html/wp-content/plugins/bbsync/bbsync.php on line 105

    Fatal error: Call to a member function on a non-object in /home/content/a/d/m/adminsportzzz/html/forum/bb-includes/functions.php on line 1216

    This is a completely fresh install of both WP (2.3) and BB, btw. Any help would be greatly appreciated.

    Posted 1 year ago #
  22. Hey Joe,
    try adding $bb_cache and $bbdb to the list of globals in your config.php file (as outlined earlier in this topic, or ask if you're unsure). That seems to cause the error publishing articles. That said, right now I also get an error publishing but it seems to work fine - I'll look at that when I've got my dev machine again.
    The error for comments I don't understand. Line 105 seems to be a function declaration: http://plugins-dev.bbpress.org/browser/bbsync/trunk/bbsync.php#L105, so how it could be missing an argument I don't know. Are you using the latest version of bbsync, too?

    Posted 1 year ago #
  23. Felix,
    Thanks for the tip. Alas, still not working.

    - I am running the most recent version of bbPress.

    - I added those two lines to my "config.php" file. (I assume it doesn't matter where they are added within the file?) Now, when I attempt to save a post, I get this:

    Warning: array_filter(): The second argument, 'Array', should be a valid callback in /home/content/a/d/m/adminsportzzz/html/forum/bb-includes/capabilities.php on line 271
    
    Warning: Invalid argument supplied for foreach() in /home/content/a/d/m/adminsportzzz/html/forum/bb-includes/capabilities.php on line 275
    
    Warning: array_filter(): The second argument, 'Array', should be a valid callback in /home/content/a/d/m/adminsportzzz/html/forum/bb-includes/capabilities.php on line 271
    
    Warning: Invalid argument supplied for foreach() in /home/content/a/d/m/adminsportzzz/html/forum/bb-includes/capabilities.php on line 275
    
    Warning: array_filter(): The second argument, 'Array', should be a valid callback in /home/content/a/d/m/adminsportzzz/html/forum/bb-includes/capabilities.php on line 271
    
    Warning: Invalid argument supplied for foreach() in /home/content/a/d/m/adminsportzzz/html/forum/bb-includes/capabilities.php on line 275
    
    Warning: array_filter(): The second argument, 'Array', should be a valid callback in /home/content/a/d/m/adminsportzzz/html/forum/bb-includes/capabilities.php on line 271
    
    Warning: Invalid argument supplied for foreach() in /home/content/a/d/m/adminsportzzz/html/forum/bb-includes/capabilities.php on line 275
    bbPress database error: [You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'http://www.eloiproteka.com/2007/10/08/chapter-1-school/'>Chapter 1: School <' at line 4]
    INSERT INTO bb_posts (forum_id, topic_id, poster_id, post_text, post_time, poster_ip, post_status, post_position) VALUES ('1', '2', '1', '
    
    A long time ago—before trucks and trains and airplanes—everything moved along rivers. The town of Apollo had sprouted from the banks of one of those rivers, and grew up the hill until it reached the top where everyone must have decided that was quite far enough. Henry Kropp lives in Apollo. Henry’s family is much the same as every other in town, just as their home is much the same as every other 3-bedroom cottage on the hill. Much the same, but not quite.
    
    Chapter 1: School
    
    ','2007-10-09 22:59:09', '69.180.212.106', '0', 1)
    
    Warning: array_filter(): The second argument, 'Array', should be a valid callback in /home/content/a/d/m/adminsportzzz/html/forum/bb-includes/capabilities.php on line 271
    
    Warning: Invalid argument supplied for foreach() in /home/content/a/d/m/adminsportzzz/html/forum/bb-includes/capabilities.php on line 275
    
    Warning: array_filter(): The second argument, 'Array', should be a valid callback in /home/content/a/d/m/adminsportzzz/html/forum/bb-includes/capabilities.php on line 271
    
    Warning: Invalid argument supplied for foreach() in /home/content/a/d/m/adminsportzzz/html/forum/bb-includes/capabilities.php on line 275
    
    Warning: array_filter(): The second argument, 'Array', should be a valid callback in /home/content/a/d/m/adminsportzzz/html/forum/bb-includes/capabilities.php on line 271
    
    Warning: Invalid argument supplied for foreach() in /home/content/a/d/m/adminsportzzz/html/forum/bb-includes/capabilities.php on line 275
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/content/a/d/m/adminsportzzz/html/forum/bb-includes/capabilities.php:271) in /home/content/a/d/m/adminsportzzz/html/wp-includes/pluggable.php on line 390

    When I try to post a comment, I get this:

    Warning: Missing argument 2 for felsynccomment() in /home/content/a/d/m/adminsportzzz/html/wp-content/plugins/bbsync/bbsync.php on line 105
    
    Warning: array_filter(): The second argument, 'Array', should be a valid callback in /home/content/a/d/m/adminsportzzz/html/forum/bb-includes/capabilities.php on line 271
    
    Warning: Invalid argument supplied for foreach() in /home/content/a/d/m/adminsportzzz/html/forum/bb-includes/capabilities.php on line 275
    
    Warning: array_filter(): The second argument, 'Array', should be a valid callback in /home/content/a/d/m/adminsportzzz/html/forum/bb-includes/capabilities.php on line 271
    
    Warning: Invalid argument supplied for foreach() in /home/content/a/d/m/adminsportzzz/html/forum/bb-includes/capabilities.php on line 275
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/content/a/d/m/adminsportzzz/html/wp-content/plugins/bbsync/bbsync.php:105) in /home/content/a/d/m/adminsportzzz/html/wp-includes/pluggable.php on line 390
    Posted 1 year ago #
  24. SlexAxton
    Member

    I love the plugin fel. It takes a while to get used to what file is doing what, but to anyone who is using it along with the integration scripts you might realize that the posts on the forum show up as comments and visa versa, but the comment count on the main page only counts the comments made via wordpress, and doesnt take into account the comments that show up, but were originally made in the forum.

    I added a function in the plugin that just recieved the number of posts (since this data is correct).

    function bbreplycount() {
    	global $id, $opshuns;
            $posties = 0;
    	if( !$opshuns )
    		$opshuns = get_option('bbsync');
    	require_once( $opshuns['bbpath'] );
    	$topic_id = felwptobb( $id );
    	if( $topic_id ) {
    		$topic = get_topic( $topic_id );
    		$posties = $topic->topic_posts;
    	}
    
        return $posties - 1;
    }

    Using this I was able to modify the comments_popup_link(...) to accept another variable (the number of posts returned by the new function). Then instead of getting the number of actual comments via the wordpress method, I simply replaced my new variable with that function call. Viola, works like a charm.

    Its nothing serious, but could be helpful to some. cheers. Thanks again fel.

    Posted 1 year ago #
  25. Yo. Glad you like it! That is cool.
    Hwo did you modify comments_popup_link()? Because that could be a potentially very neat way to avoid all those template changes necessary. Especially if you made your changes using a hook or filter it would be great if I could put that into bbSync. But even if you just modified the bit in the template where it calls c_p_l() that would still be interesting.

    Posted 1 year ago #
  26. Felix,
    Any ideas for me? I REALLY want this to work. Any help would be much appreciated.

    Posted 1 year ago #
  27. Yeah, sorry for the delay. I think I fixed stuff last night - at least my error messages are gone - so I'll upload a new version.

    Here we go, use the download link at the very bottom to get it (or use the normal plugin page, once it's updated).

    Posted 1 year ago #
  28. Thanks, Felix. I'll give it a shot.

    Posted 1 year ago #
  29. Got this when saving a post after replacing my "bbsync.php" file:

    Warning: array_filter(): The second argument, 'Array', should be a valid callback in /home/content/a/d/m/adminsportzzz/html/forum/bb-includes/capabilities.php on line 271

    Warning: Invalid argument supplied for foreach() in /home/content/a/d/m/adminsportzzz/html/forum/bb-includes/capabilities.php on line 275

    Warning: Cannot modify header information - headers already sent by (output started at /home/content/a/d/m/adminsportzzz/html/forum/bb-includes/capabilities.php:271) in /home/content/a/d/m/adminsportzzz/html/wp-includes/pluggable.php on line 390

    Posted 1 year ago #
  30. And this when trying to leave a comment via WordPress:

    Warning: array_filter(): The second argument, 'Array', should be a valid callback in /home/content/a/d/m/adminsportzzz/html/forum/bb-includes/capabilities.php on line 271

    Warning: Invalid argument supplied for foreach() in /home/content/a/d/m/adminsportzzz/html/forum/bb-includes/capabilities.php on line 275

    Warning: array_filter(): The second argument, 'Array', should be a valid callback in /home/content/a/d/m/adminsportzzz/html/forum/bb-includes/capabilities.php on line 271

    Warning: Invalid argument supplied for foreach() in /home/content/a/d/m/adminsportzzz/html/forum/bb-includes/capabilities.php on line 275

    Warning: Cannot modify header information - headers already sent by (output started at /home/content/a/d/m/adminsportzzz/html/forum/bb-includes/capabilities.php:271) in /home/content/a/d/m/adminsportzzz/html/wp-includes/pluggable.php on line 390

    Posted 1 year ago #

RSS feed for this topic

Reply »

You must log in to post.

Code is Poetry.