Search Results for 'buddypress'
-
Search Results
-
Topic: Group Remove Member funtion
I want to remove member from a group when new user registered.
I have received group_id and user_id from database. then I want to remove all member from that group without group admin.
I used function ‘groups_remove_member’ in my own plugin .
I am new in wordpress and buddypress coding.
My code is
if (!function_exists(‘auto_join’)) {
function update_auto_join_status($user_id) {
global $wpdb, $bp;// get list of groups to auto-join.
$group_list = $wpdb->get_results(“SELECT * FROM {$bp->groups->table_name} WHERE auto_join = 1”);foreach ($group_list as $group_auto_join) {
$members_count = groups_get_groupmeta( $group_auto_join->id, ‘total_member_count’ );
if($members_count < 5)
{
groups_accept_invite( $user_id, $group_auto_join->id );
}
else
{
group_auto_join_hidden_group($user_id, $group_auto_join->id);
}
}
$wpdb->query(“UPDATE {$wpdb->users} SET auto_join_complete = 1 WHERE ID = {$user_id}”);
}add_action( ‘user_register’, ‘auto_join’);
}function group_auto_join_hidden_group($user_id, $group_id)
{global $wpdb, $bp;
$utn = $wpdb->users; // Create a shortcut variable for wordpress users table.
$gmtn = $bp->groups->table_name . “_members”; // Create a shortcut variable for buddypress groups_members table.$mysql = “SELECT user_id FROM $gmtn WHERE group_id=$group_id”;
$results = $wpdb->get_results( $mysql);
foreach ( $results as $user) {
groups_remove_member($user->user_id, $group_id);}
}
my auto join working well but I am not able to remove member
Please help me what is wrong?Hi all,
I looked for this topic here and on google but I didn’t find an answer. As the subject states, in my buddypress-based (version 1.7) community, topics/replies of hidden groups are visible to all the users in the “recent replies” (and “recent topics”) widget. Is it a known issue?
Thanks a lot!
Marco
Hello,
I am using the latest versions of WordPress and Buddypress with the default theme and the mobile plugin does not seem to work. None of my content is on there and if I deactivate it my site works but my banner repeats itself any ideas what I can do to get my site formatted for mobile? Thanks in advance.
Hi there
I get this Warning on the top of my siteWarning: strstr() [function.strstr]: Empty delimiter in /home/mz2h/public_html/lezionidichitarramoderna.com/membri/wp-content/plugins/buddypress/bp-core/bp-core-template.php on line 864
does anyone know how to fix that?
Hello all,
I am building a multisite, with subdomains for the regional variations.
I would like to display a page, which in addition to the text and images the page will have, it also calls and prints a users details on that page.
This is a fairly new site, so it would be easy for me to make sure that the author for each page is the same user that I want to have the buddypress profile printed for.
I really hope this is an easy one – what do I type in the page to pull up a specific users details? I have read alot! I really have and cannot find any bit of copy / pastable code that does this.
The result i am trying to achieve is that I have a page which I have designed, which displays this fields as well, on the right. A registered user can update their variable details often, and this will update part of the page.
Thank you very much ,
I’m in the planning stages for a business forum/social network.
Obviously I’ve already googled what I’m about to ask about, but couldn’t really find the kind of information I need.
1) As I understand it, Buddypress comes with a basic form of bbPress installed? so with BuddyPress you get a social network plus a basic forum? ok so first question is, what’s the main difference between that basic forum and the forum you get with bbPress?
2) Can you just upgrade the basic forum you get with BuddyPress to the more advanced bbPress one?
3) BuddyPress has group forums? and bbPress has site wide forums? but essentially what does that boil down to in practical terms?
4) What can you not do in bbPress that you can in BuddyPress?
I’m not really seeing the need for bbPress, as BuddyPress seems to do everything bbPress does but more.
Thanks for any help.
Topic: SignUp Error
I’m new to using buddypress and wordpress. I’m currently working on a website everything works but the SignUp. Every time I try to sign up it gives this error. I have been looking for awhile everywhere for this. I could have just missed the topic by reading to fast but it’s been and hour I’m looking to figure out what is this error.
The buddypress/worddpress is straight out from the box no modifications have been made
ERROR: This site prevents robots from registering and you don’t appear to be human. If you’re a real person, please contact the administrator of this site.
Hi!
I’ve ran into a minor problem on a clean buddypress install.This is how my Editing Profile Groups Fields looks like:

How can i solve this?
Topic: Display Issues
Hey guys,
I just downloaded BuddyPress a few days ago and I’ve been having a pretty hard time trying to configure everything. Right now all of my pages are showing double: like this https://zoxstraps.com/discussion/.
I’ve installed bbPress but I’ve also been having issues with that where the links on my toolbar are not being created so I have no way to edit anything.
I’m currently on WordPress 3.5 and BuddyPress 1.7.2.
Any help that you could give would be greatly appreciated!
Thanks,
BrandonTopic: BuddyPress Scalability
How can we find out the scalability of BuddyPress? We have a single WP/BP site that has currently over 300000 BP groups and sub-groups (BP Group Hierarchy) and it is expected to grow to possibly 4 times this number. It is already showing signs of strain (it’s very slow) and I fear we might have taken the wrong approach. Any insight on this matter would be greatly appreciated.
Hey,
I have managed to get my custom user fields / xprofile fields to show but only when im on the profile page. I tried the groups page but they don’t seem to be showing.What im trying to do is pull the xprofile fields into the header so that they show site wide.
Is this possible?The code im using is:
bp-custom.php<?php function custom_xprofile( $field ) { echo bp_custom_get_member_list_xprofile_data( $field ); } function bp_custom_get_member_list_xprofile_data( $field ) { global $site_members_template; return xprofile_get_field_data( $field, $site_members_template->member->id ); } ?>Template
<?php custom_xprofile('First Name') ?>I found the above code on this forum, but dont remember what post i found it in.
Any help would be appreciated.