146 posts, 26 voices - Latest reply from coreyhammond

BuddyBar for bbPress RSS feed for this topic

Started 7 months ago by John James Jacoby

  • This topic is not a support question

Avatar Image
Moderator

John James Jacoby

active 16 hours, 8 minutes ago

Download BuddyBar for bbPress

Bleeding edge trunk: Use at your own risk.

Props to r-a-y for the leg-work and reminding me I needed to put this together eventually.

Demonstrations:
http://delsolownersclub.com/discussions/
http://leadpress.com/forums/

Please test thoroughly and report back any bugs to this topic.

If you are receiving errors regarding BP_Roles in your BuddyBar, apply patch #1032 to your WPMU trunk installation.

Posted 7 months ago #
Avatar Image
Member

TheEasyButton

active 6 months, 1 week ago

I must be exhausted. I don't see the link for download.

Posted 7 months ago #
Avatar Image
Moderator

John James Jacoby

active 16 hours, 8 minutes ago

Fixed...

Posted 7 months ago #
Avatar Image
Member

TheEasyButton

active 6 months, 1 week ago

Thank you sir =D Gonna check it out first thing in the morning.

Posted 7 months ago #
Avatar Image
Member

r-a-y

active 7 hours, 19 minutes ago

Hey John,

Thanks for the co-credit!
You might want to add deep integration instructions in the readme.txt.

Other than that, let's see more BuddyPress sites out in the open!

Posted 7 months ago #
Avatar Image
Moderator

John James Jacoby

active 16 hours, 8 minutes ago

You might want to add deep integration instructions in the readme.txt.

It will make its way into the official readme.txt in the repo once it's up. I tend to use a different deep integration method myself, so we'll see how it flies in the wild. :)

Posted 7 months ago #
Avatar Image
Moderator

John James Jacoby

active 16 hours, 8 minutes ago

Quick note: this currently doesn't rehook the javascript, but it will. Just need to sleep now. Haha!

Posted 7 months ago #
Avatar Image
Member

el_terko

active 1 month, 1 week ago

Cool, have U tried it with bbP A6 ?
Thanx to U and r-a-y for this !

Posted 7 months ago #
Avatar Image
Member

SlaFFik

active 17 hours, 24 minutes ago

It also works here:
http://demo.cosydale.com/forum/
It's demo site. I'm using bbPress alpha 6, BuddyPress 1.0.1.

Posted 7 months ago #
Avatar Image
Member

r-a-y

active 7 hours, 19 minutes ago

Quick note: this currently doesn't rehook the javascript, but it will. Just need to sleep now. Haha!

Since JJJ is in dreamland, for those that do want the javascript hook (even though I plan on not adding it for my own usage! Sorry IE6 users! :P ), here's the extra code:

Add this after line 29 of bp-buddybar.php:

add_action( 'bb_head', 'bp_core_add_js' );
add_action( 'bb_admin_head', 'bp_core_add_js');

It should work, but somebody test it with IE6 and report back.

Posted 7 months ago #
Avatar Image
Member

matthijsv

active 4 months, 1 week ago

Thanks for the plugin! Using BudduPress 1.02 and Bbpres 1.01 I'expericiencing some problems:

When I add the lines to my bb-config.php the only thing I get is a blank page, (error reporting seems to be not the issue).

When I activate the plugin in the bbpress admin panel I get the following error:

Fatal error: Call to undefined function get_site_option() in /usr/.../my-plugins/bp-buddybar.php on line 37

Any suggestions?

Posted 7 months ago #
Avatar Image
Member

r-a-y

active 7 hours, 19 minutes ago

Hey matthijsv,

What line are you adding to bb-config.php?

You should only add this to line 2:
require_once($_SERVER['DOCUMENT_ROOT'].'/wp-blog-header.php');

Let us know what happens.

Posted 7 months ago #
Avatar Image
Member

matthijsv

active 4 months, 1 week ago

I was adding these lines (from the readme.txt)

if ( !defined( 'ABSPATH' ) & !defined( 'XMLRPC_REQUEST' )) {
	define( 'WP_USE_THEMES', false );
	//
	//  You will need to get the ABSOLUTE path to this file |
	//                                                     |/
	//include_once( '/usr/home/dragons/domains/dragonsconnect.eu/public_html/preview/wp-blog-header.php' );
	header( "HTTP/1.1 200 OK" );
	header( "Status: 200 All rosy" );
}

When I add the line you suggested I get the same result, no response at all from any bbpress page.

-edit-
Seems that wp-blog-header.php is causing the error, I'm expirimenting with commenting out some lines there atm.

Posted 7 months ago #
Avatar Image
Member

r-a-y

active 7 hours, 19 minutes ago

Hey matthijsv,

What happens when you switch out in bb-config.php:
include_once( '/the/absolute/path/to/your/wp-blog-header.php' );

for
require_once($_SERVER['DOCUMENT_ROOT'].'/wp-blog-header.php');

Posted 7 months ago #
Avatar Image
Member

r-a-y

active 7 hours, 19 minutes ago

Hey matthijsv,

You shouldn't have to mess with wp-blog-header.php.
Unless you made changes to it.

Posted 7 months ago #
Avatar Image
Member

matthijsv

active 4 months, 1 week ago

Hey ray,

I'm using
require_once($_SERVER['DOCUMENT_ROOT'].'/wp-blog-header.php'); right now but no different result.

I find it strange that there is no output at all, no error messages...

Ok, no changes to wp-blog-header.

Posted 7 months ago #
Avatar Image
Member

r-a-y

active 7 hours, 19 minutes ago

Sorry you should use the official bb-config.php instructions that JJJ left, except replace:
include_once( '/the/absolute/path/to/your/wp-blog-header.php' );

for
include_once($_SERVER['DOCUMENT_ROOT'].'/wp-blog-header.php');

---

One question though, where do you have WPMU installed? in the root?

Posted 7 months ago #
Avatar Image
Member

matthijsv

active 4 months, 1 week ago

It's hosted on a subdomain, but when I echo the output of $_SERVER['DOCUMENT_ROOT'], this seems to be matching with the correct path.

Posted 7 months ago #
Avatar Image
Member

r-a-y

active 7 hours, 19 minutes ago

So what happens when you go to your bbPress forums?
The last thing you got to do is reactivate the BuddyBar plugin in bbPress!

Did you do that?

Posted 7 months ago #
Avatar Image
Member

matthijsv

active 4 months, 1 week ago

Nothing happens, the server just sents a total blank page to the browser. So there's no activating the plugin unfortunately.

Posted 7 months ago #
Avatar Image
Member

r-a-y

active 7 hours, 19 minutes ago

So you never had the chance to activate the plugin?

I would recommend removing the deep integration code and seeing if you can access your forums first.

Make sure your bbPress forums are in working order, then add the deep integration code, then activate the plugin.

Posted 7 months ago #
Avatar Image
Member

matthijsv

active 4 months, 1 week ago

No, I can only activate the plugin without adding the deep integration code.

Conclusion: problem is with the including wp-blog-header.php in bb-config, not specifically in the plugin.

Without the deep integration code the forum is working perfectly.

Posted 7 months ago #
Avatar Image
Member

r-a-y

active 7 hours, 19 minutes ago

Hmm... some other people use wp-load.php to achieve deep integration, but that drives down performance quite a bit.

If you're having trouble including wp-blog-header.php, then I don't know what to tell you!
Something's definitely up! Are you sure you have no errors in your server log or PHP log?

Posted 7 months ago #
Avatar Image
Member

matthijsv

active 4 months, 1 week ago

wp-load.php got the same result.

Started off with a clean install (was planning on doing this later on) the Buddybar plug-in is working great!

Now enabling/installing plug-in's one by one to might figure out what caused the problem.

Posted 7 months ago #
Avatar Image
Member

r-a-y

active 7 hours, 19 minutes ago

Cool! Glad to see you're up and running!

Posted 7 months ago #
Avatar Image
Member

matthijsv

active 4 months, 1 week ago

Thanks for your support!

Figured it out: Transposh Translation Filter was causing the blank page. http://transposh.org/

Posted 7 months ago #
Avatar Image
Member

r-a-y

active 7 hours, 19 minutes ago

Thanks for debugging, matthijsv.

John, Transposh should be added to the readme.txt for known incompatible WP plugins with the BuddyBar plugin.

Posted 7 months ago #
Avatar Image
Moderator

John James Jacoby

active 16 hours, 8 minutes ago

Awesome great work guys. I'll add it to the incompatibilities list tonight.

Keep testing my deep integration code and stay in touch here if you have issues with it. It's meant to dodge some 404's that certain browsers spit out as WP tries to rewrite a URL that bbPress eventually takes over.

r-a-y I'll add your JavaScript hooks in tonight also.

Posted 7 months ago #
Avatar Image
Member

r-a-y

active 7 hours, 19 minutes ago

One other bug I encountered when using the BuddyBar was the second-level menus weren't popping out in bbPress.

I found out that the problem is due to some CSS rules overriding one another.

In /plugins/buddypress/bp-core/css/admin-bar.css, move line 177 under

#wp-admin-bar ul li:hover ul ul, #wp-admin-bar li.sfhover ul li ul {
	left: -999em !important;
}

So your admin-bar CSS from line 171 should look like:

/* third-and-above-level lists */

#wp-admin-bar ul li ul ul {
	margin: -28px 0 0 183px !important;
}

#wp-admin-bar ul li:hover ul, #wp-admin-bar ul li li:hover ul, #wp-admin-bar ul li.sfhover ul, #wp-admin-bar ul li ul li.sfhover ul { /* lists nested under hovered list items */
	left: auto !important;
}

#wp-admin-bar ul li.align-right:hover ul {
	right: 0 !important;
}

#wp-admin-bar ul li:hover ul ul, #wp-admin-bar li.sfhover ul li ul {
	left: -999em !important;
}

#wp-admin-bar ul li:hover ul, #wp-admin-bar ul li li:hover ul, #wp-admin-bar ul li.sfhover ul, #wp-admin-bar ul li ul li.sfhover ul { /* lists nested under hovered list items */
	left: auto !important;
}

... and the rest of it here

That was the case for me anyway! If you're using a custom admin-bar CSS, make sure you make the change as well.

Posted 7 months ago #
Avatar Image
Moderator

John James Jacoby

active 16 hours, 8 minutes ago

I actually just brought that up to Sam on IRC about 24 hours ago, as the same thing is happening here at buddypress.org also. Good catch. :)

Posted 7 months ago #