OK, tried both methods M suggested, and they get me this far:
1) I can create posts and forums in the bbPress admin panel
2) They don’t show up in BuddyPress/forums
I posted the patch to your ticket here: https://trac.buddypress.org/ticket/1628
Using M’s dual bbPress install procedure, there was one open question which is
— edit the bb-config.php file so that the $bb->uri variable points to the right location for your hidden bbPress installation.
(which bb-config.php file, the one in WPMU root, or the one in the hidden bbPress directory?)
I tried just the one in WPMU root and I got the error above.
Now I have the location of the hidden bbPress install in both bb-config-php files, and while the error is either gone or not appearing, the Main Themes I created in the bbPress admin panel do not appear in BuddyPress (though the Group I created in BuddyPress does appear in bbPress).
How should I proceed?
You can search here for answers :
https://trac.buddypress.org/report
Followed the dual install method and I get this:
Warning: Division by zero in /home/dainis/community.urine-therapy.org/wp-content/plugins/buddypress/bp-forums/bbpress/bb-includes/functions.bb-statistics.php on line 214
Warning: Division by zero in /home/dainis/community.urine-therapy.org/wp-content/plugins/buddypress/bp-forums/bbpress/bb-includes/functions.bb-statistics.php on line 194
Warning: Division by zero in /home/dainis/community.urine-therapy.org/wp-content/plugins/buddypress/bp-forums/bbpress/bb-includes/functions.bb-statistics.php on line 174
Warning: Division by zero in /home/dainis/community.urine-therapy.org/wp-content/plugins/buddypress/bp-forums/bbpress/bb-includes/functions.bb-statistics.php on line 244
…still gonna see if it works…
Hi, I think you should apply filters to the queries done by function get_users() :
eg. with my plugin bp-real-names :
when you search a user by “word”, the core query looks like :
SELECT COUNT(DISTINCT u.ID) FROM wp_users u LEFT JOIN wp_usermeta um ON um.user_id = u.ID LEFT JOIN wp_bp_xprofile_data pd ON u.ID = pd.user_id WHERE u.spam = 0 AND u.deleted = 0 AND u.user_status = 0 AND pd.field_id = 1 AND pd.value LIKE ‘%%admin%%’ ORDER BY pd.value ASC
but I need to be able to change this to
SELECT COUNT(DISTINCT u.ID) FROM wp_users u LEFT JOIN wp_usermeta um ON um.user_id = u.ID LEFT JOIN wp_bp_xprofile_data pd ON u.ID = pd.user_id WHERE u.spam = 0 AND u.deleted = 0 AND u.user_status = 0 AND pd.field_id = 4 AND pd.value LIKE ‘%%Smith%%’ ORDER BY pd.value ASC
This is not possible actually as I see…
ticket : http://trac.buddypress.org/ticket/1699
Which route should I take if I’m just wanting to add some “forums” “forum categories,” or “Main themes” as buddypress did here: https://buddypress.org/forums
Asked that question specifically here:
https://buddypress.org/forums/topic/how-to-create-a-main-theme-in-buddypressbbpress-forums#post-34773
PS: M, this solution (https://buddypress.org/forums/topic/bp-12-and-bbpress-adminplugins#post-34148 ) sounds pretty spiffy, but does this mean that everything will “disappear” in the next upgrade? Is your solution “safe?” Is there a way to know if it will work over the long haul? Also, it does not look like your solution includes installing bbPress, is that right?
How do I create “Main Themes” for forum discussions the way Buddypress did it here:
http://buddypress.org/forums
Elsewhere, I’ve asked how to administer bbPress, but if a few “Main Themes” is all I want, then maybe there’s an easier way…
The Main Themes I see are:
Installing BuddyPress
How-To and Troubleshooting
Creating & Extending
Requests & Feedback
Third Party Components & Plugins
Gallery
Miscellaneous
Related Topics:
http://buddypress.org/forums/topic/how-to-create-forums-in-bbpress-within-buddypress
http://bbpress.org/forums/topic/administration-of-bbpress-in-buddypress?replies=4#post-63743
http://buddypress.org/forums/topic/bp-12-and-bbpress-adminplugins
How is it supposed to work out the box? I mean, it looks like the only thing that works is to create a group, which thereby creates a forum discussion. There doesn’t seem to be any way at all to administer the forums.
What I’m looking to do is create forum categories or “boards” the way buddypress did here:
https://buddypress.org/forums/
It looks like buddypress calls this a “Main Theme,” so my question could likely be better phrased: How do I create a “Main Theme” in Forums?
https://buddypress.org/forums/topic/how-to-create-forums-in-bbpress-within-buddypress?replies=4#post-34712
PJParticipant
In the earlier version, I could have regular WP themes (that I payed quite a bit for) be the primary front of my site, and as users wished, jump into the buddypress theme/section by clicking a link in the BP menubar. This new version seems to eliminate the option of having a wordpress theme and a buddypress theme.
In 1.2, the options seem to be:
1. Continue with the old version so I can use the premium themes the company has spent a lot on so users could have a rich media experience and access the buddypress (with an independent theme) as they wished, or
2. Use this new version where the bp theme and WP theme are seemingly merged. I’m not sure if it’s wpmu or the BP redesign, but it severely limits the amount of flexibility my site has.
Is there a way to have my premium wordpress theme be the theme and have the buddypress plugin have its own component and part of the site? Thank you.
@pjnu – “to have the social network be secondary to their wordpress blog, what options are available”
You would need to create a child theme for 1.2 bp default theme. Copy the header.php from 1.2 bp-default theme into your child theme. Tweak navigation accordingly or create primary and secondary navigation to taste.
“I feel like this new version is somewhat limiting in terms of customization. “
My opinion is that it can be challenging but the sky’s the limit
A question from someone who doesn’t know a lot about what he’s doing with code. I want to create two different Avatar sizes – one for the profile and one for when there’s a listing via Buddypress Links that needs a different ratio (book covers).
I’ve defined this in bp-core-avatars.php
if ( !defined( ‘BP_AVATAR_BOOK_WIDTH’ ) )
define( ‘BP_AVATAR_BOOK_WIDTH’, 150 );
if ( !defined( ‘BP_AVATAR_BOOK_HEIGHT’ ) )
define( ‘BP_AVATAR_BOOK_HEIGHT’, 190 );
But I’m not sure what else I need to configure – if it’s simple or requires many different tweaks. Is it here?
if ( $width )
$html_width = ” width='{$width}'”;
else
$html_width = ( ‘thumb’ == $type ) ? ‘ width=”‘ . BP_AVATAR_THUMB_WIDTH . ‘”‘ : ‘ width=”‘ . BP_AVATAR_FULL_WIDTH . ‘”‘;
if ( $height )
$html_height = ” height='{$height}'”;
else
$html_height = ( ‘thumb’ == $type ) ? ‘ height=”‘ . BP_AVATAR_THUMB_HEIGHT . ‘”‘ : ‘ height=”‘ . BP_AVATAR_FULL_HEIGHT . ‘”‘;
Thanks.
@dlittle800
sorry, I was confused earlier. Thanks for clarifying.
Yes, It seems to be a bug, but it has to deal with the buddypress theme only. I checked with older theme and the same issue as you mentioned were there too.
Please put a trac ticket as Andy mentioned.
There was a new blunt solution here. Apparently having a couple of required custom profile fields also cuts down spam.
I’ve installed buddy press 1.1.3 and wpmu 2.8.6. I tried everything to stop spammers but all in vain. Is there any remedy to stop spammer. I tried wp-recaptcha code but it doesn’t appear on sign up page. I changed .htaccess file per this blog post http://wpmututorials.com/how-to/spam-blogs-and-buddypress/ but it didn’t work. I made changes per this blog post http://www.bp-tricks.com/tips_and_tricks/stopping-the-sploggers/ but all in vain. Could anyone please help.
I hope someone here already have a solution to this:
I am running wordpress MU with buddypress on top.
I have added the bp-events plugin.
Currently the search bar will only search members and groups and I would like for it to search through events too.
When I choose members in the dropdown list with the string x I see the following URL being called: http://mydomain.com/wpmu/members/?s=x
When I choose groups in the dropdown list with the string y I see the following URL being called: http://mydomain.com/wpmu/groups/?s=y
I have edited the file that builds the dropdown list and now it also contains the Events option but when I choose that option for some reason the URL being caled when I search for event z is: http://mydomain.com/wpmu/members/?s=z
I am not sure what I am doing wrong but it seems after my debugging that a parameter called _wp_http_referer is not getting the right value when the Events option is selected. instead of being wpmu/events/?s=z it is changing to wpmu/members/?s=z and this is what causing the URL to be wrong.
It would be great if someone can point me to a solution or to what I am doing wrong.
Thanks,
Shai
To be honest you aren’t going to get much/any support based on bugs in previous versions of BuddyPress as we may have fixed them in the more recent versions.
Hi there,
I’m still running Buddypress 1.0 since I couldn’t get Buddypress to upgrade without breaking too much. Anyway, I noticed a bug which causes profile fields not to be saved during registration. Editing a profile afterwards does work.
There are more topic on the forum, but no answers (eg. http://buddypress.org/forums/topic/additional-profile-field-data-not-saved-during-signup). Maybe it has something to do with localization (I use the Dutch version) since it doesn’t seem to happen to other people around here.
I dug into the Buddypress code and noticed this particular line in bp-xprofile-signup.php:
add_action( ‘wpmu_activate_user’, ‘xprofile_on_activate_user’, 1, 3 );
The xprofile_on_activate_user function is called on activating an account. This function saves the profile fields which are read from the wpmu user meta table (why aren’t they saved right away on registration?). The wpmu_activate_user action is executed in wpmu-functions.php (do_action(‘wpmu_activate_user’, $user_id, $password, $meta)
. When I add ‘xprofile_on_activate_user($user_id, $password, $meta)’ manually in that file (just for testing purposes) I get an error this function is undefined. I guess that might cause the troubles?
How can I best fix this or what is causing this?
I’m sorry.. Correction I didn’t have #2451on PHP 4.. So they both are working fine for under several server conditions. I’ve closed the ticket.
please confirm if anyone else is still seeing errors past revision 2454.
I use this as temporary solution:
function js_restrict_access(){
global $bp, $bp_unfiltered_uri;
if (!is_user_logged_in() &&
(BP_MEMBERS_SLUG == $bp_unfiltered_uri[0] ||
BP_GROUPS_SLUG == $bp->current_component ||
BP_BLOGS_SLUG == $bp->current_component)){
bp_core_redirect( get_option('home') . "/register" );
}
}
add_action( 'wp', 'js_restrict_access', 3 );
It closes the members, groups and blogs sections for non-registered users. You have to put it in bp-custom.php.
Privacy is planned for a later version, maybe, or maybe not.
PHP 5 is fine, but I’m still able to duplicate the error in PHP 4 ~ ticket #1641
I’m in the same boat as @do77 here.
I’m looking to add a login for all content at my buddypress instance.
I, however, am running WordPress 2.9.1 (single) and the Buddypress trunk (I update once a week)
I have the “Force User Login” plugin for WordPress currently running, but you can still navigate around it if you try via direct URL requests and the like.
Any solid solutions?
GENIUS!
This worked perfectly for me.
To be honest, so far the nightly trunk is running better than anything for me.
Buddypress has a super-bright future with all these smart people working on it.