Search Results for 'buddypress'
-
Search Results
-
Hey,
I am seriously stuck with this one, so any help will be severely appreciated!
I have a BuddyPress install, which I have created several times on different machines with the same results…
Main site: http://gdnm.org – WPMS Installation – Subdomain setup
BuddyPress site: http://network.gdnm.org – blog id #2
I have setup my BuddyPress subdomain using BP_ROOT_BLOG correctly, and my WordPress install uses DOMAIN_CURRENT_SITE to set the root site, however both BuddyPress and WordPress seem to use siteurl() to get the current site which means that all registrations are relative to the BP_ROOT_BLOG not the DOMAIN_CURRENT_SITE url.
This has the result that through wp-signup.php you get http://subdomain.gdnm.org and via BuddyPress you get http://subdomain.network.gdnm.org which is not what I want.
Please help, I have literally tried everything even filtering the wpmu/bp_validate_blog_signup and it still doesn’t work, so desperate to fix this as on Monday 300-600 people signup and I don’t want to have to edit them all manually.
Thanks
Tom
WP-CONFIG:
define( ‘BP_ROOT_BLOG’, 2 );
define( ‘BP_DISABLE_ADMIN_BAR’, true );
define( ‘BP_MEMBERS_SLUG’, ‘directory’ );
define( ‘BP_BLOGS_SLUG’, ‘sites’ );
define( ‘BP_GROUPS_SLUG’, ‘groups’ );
define( ‘BP_ENABLE_ROOT_PROFILES’, true );
define( ‘BP_SILENCE_THEME_NOTICE’, true );
define( ‘WP_ALLOW_MULTISITE’, true );
define( ‘MULTISITE’, true );
define( ‘SUBDOMAIN_INSTALL’, true );
$base = ‘/’;
define( ‘DOMAIN_CURRENT_SITE’, ‘gdnm.org’ );
define( ‘PATH_CURRENT_SITE’, ‘/’ );
define( ‘SITE_ID_CURRENT_SITE’, 1 );
define( ‘BLOG_ID_CURRENT_SITE’, 1 );Hey all, I’m trying to find the proper way of referencing BP tables using the $wpdb class. using $wpdb->$table reference http://codex.wordpress.org/Class_Reference/wpdb#Tables allows a smart way of reference WP table in case someone changes the table prefix.
Hoping to follow suite when referencing the BP tables, for example $wpdb->$xprofile (or something like that). Can’t find these BP table references anywhere… my goal is to add a record to wp_bp_xprofile_data correctly following the new BP 1.5 etiquette.
Any suggestions on how to keep this bulletproof would be greatly appreciated. THANKS!
Does anyone know how to filter all member lists in Buddypress to only show users with the role of author or higher.
I do not want subscriber level users to show up in the member lists or the count
I have looked at the bp_has_members function and can not find a way to do it. I have also looked all over various filters available and I am stumped.
I have written the following code:
`
add_filter( ‘bp_core_get_paged_users_sql’, ‘bp_filter_only_members’ , 1, 9 );
add_filter( ‘bp_core_get_total_users_sql’, ‘bp_filter_only_members’ , 1, 9 );function bp_filter_only_members($sql, $object) {
$sql = str_replace(‘FROM’ , “,(SELECT meta_value FROM wp_usermeta WHERE meta_key = ‘wp_user_level’ AND user_id = u.ID) AS user_level FROM” , $sql ) ;
$sql = str_replace(‘ORDER BY’ , “HAVING user_level > 1 ORDER BY” , $sql) ;
return $sql;
}
`
The issue I am having is that the count is coming back wrong.Can anyone think of a better way than going directly to the SQL. I have thought about meta values and some other hacky ways of doing this,
can anyone help me out on this,
thanks,
Andrew
Hi guys,
I’m rather new to buddypress and am getting a little bit confused. My setup is quite unusual in that I don’t need several of the buddypress components such as ‘activity’ or ‘friends’.
Instead I need the template to display several custom built web applications that Ihave coded myself.
Therefore to make life easy I edited the php templates in my themes /members/single/ directory. the files activity.php and friends.php respectively, to show my web apps.
I then created a bp-custom.php file and redifined the SLUGS to match the names of my web apps. i.e.
define( ‘BP_FRIENDS_SLUG’, ‘photos’ );
define( ‘BP_ACTIVITY_SLUG’, ‘songs’ );
define( ‘BP_GROUPS_SLUG’, ‘songsearch’ );This worked great, when I clicked on the photos link, I was taken to my web app for photos etc… when i click songs it loads the activity template which contains my songs web app etc… etc….
However, now I need to add in more of my custom coded apps but have run out of these subcomponents to ‘butcher’ so my question is…. How do I add a new one?
I have created the file songprofile.php in the /members/single/ folder.
what I want is when the URL is http://www.mysite.com/members/user/songprofile/ for this songprofile.php template to be rendered within the members component in exactly the same way as my modified activity/friends templates are.
But i genuinely haven’t got a clue as to how I go about adding templates to the members component.
Obviously I still want the members-header.php to be loaded etc… everything the same, but just this new custom template to be rendered if that makes sense
Can anyone help?