Search Results for 'buddypress'
-
Search Results
-
Topic: Buddypress Plugin page
Hi,
I read a lot plugin for Buddypress before.
However it is only the plugin forum for Buddypress only, I cannot access the list.
What can I do?
Thanks
gabHi,
My buddypress website only displays usernames publicly. However in the member search function by standerd you can find members by both username and full name.
I was wondering is there is a way to make it find users only by username?
Any help is appreciated!
Topic: Email tokens & Situations:
Is there a way to add a “situation” (https://codex.buddypress.org/emails/) and “email tokens” (https://codex.buddypress.org/emails/email-tokens/) to send an email as soon as the user role changes?
Would be great to tell my users, if their role changes from “subscriber” to “member”. Because than they are able to use more features.
this has already been asked before but i can not figure it out…
i make a new page for registration and one for activation but when i log out and then go to the register page it shows just a blank page with the title “Registration” on it and nothing else…
is there a code i have to put into the page?
i am using the latest version of wordpress and buddypress on my site and wordpress is installed in the root directory.
i tried added the profile fields and registration is open to everyone.
i am using the default theme and it just does not work at all…
what am i doing wrong?
Thanks for the help in advance.
EDIT
never mind i fixed it im not sure what i did but it just showed up lolThis is actually in reply to https://buddypress.org/support/topic/bulk-assign-a-user-to-administer-all-groups-except-4/. The topics closed though and the guy didn’t seem to get it answered. I had the same problem as him and came up with what is probably a terrible solution, but I thought I’d post it anyways in case someone else had the same problem.
I needed to add and promote a member to admin in 350 groups. So I wrote this script to do it for me. I created a “runonce” wp page and a template for it. Popped the below code into the template file and visited the page to execute.
Before anyone hassles me, I know this is a terrible way of doing things, but I’m not super familiar with buddypress or using hooks, actions, etc. Like I said I know this is not how things are done, it’s just something I came up with on the fly and it’s how I’m familiar with writing database scripts.
function add_and_promote() { //Database connection vars $servername = "localhost"; $username = "username "; $password = "password "; $dbname = "dbname"; // Create connection $conn = new mysqli($servername, $username, $password, $dbname); // Check connection if ($conn->connect_error) { die("Connection failed: " . $conn->connect_error); } // Get group ids $sql = "SELECT id FROM wp_bp_groups"; $result = mysqli_query($conn, $sql); //Set member ID here $user_id = 1; //Add member to groups and promote to group admin while($row = mysqli_fetch_assoc($result)) { //Perform operation and set some vars to output $memberJoin = groups_join_group( $row["id"], $user_id ); $memberStatus = groups_promote_member( $user_id, $row["id"], 'admin'); //Output the vars on the runonce page. Not necessary, but gives you something to look at. if($memberJoin == true){ echo "user $user_id is in group " . $row["id"]; } elseif($memberJoin == false){ echo "user $user_id is not in group " . $row["id"]; } else{ echo 'Error: $memberJoin is not boolean'; } echo "<br>"; if($memberStatus == true){ echo "user $user_id is now an admin in group ". $row["id"]; } elseif($memberStatus == false){ echo "user $user_id is not an admin in group ". $row["id"]; } else{ echo 'Error: $memberStatus is not boolean'; } echo "<br><br>Operation Complete"; } mysqli_close($conn); } add_and_promote();If you guys can tell us all the correct way of doing things that would be awesome. I’m sure some one else will need to do this some where down the line and my fix is far from elegant.
Oh yeah, this takes forever to run on my server, so if it’s a white screen for minute just be patient.
Hello
I want to make an social networking website for my community like Twitter or Instagram.
In BuddyPress I am getting option in every profile as “Add Friend”.
Instead of Add Friend i want follow button like image URL attached bellow.
Thanks In advance.
Topic: Column sender_only
Hi there
I’m writing code to migrate a custom messaging system to BuddyPress.
Can someone in here possibly shed some light on the purpose of column “sender_only” in the recipients table (wp_bp_messages_recipients)?
Thanks in advance!
Hey.
I struggle with the removal action
sitewide_notices.
I want to replace it with my own function,my_own_sitewide_notice, which works correctly. I get two notice at one time 🙂But i can’t remove default
add_action( 'wp_footer', array( $this, 'sitewide_notices' ), 9999 );
link to file with this action: https://github.com/buddypress/BuddyPress/blob/d5232812a8fbb70801351d27c7e5b7cf29dbdc30/src/bp-templates/bp-legacy/buddypress-functions.phpWhat I tried:
All withglobal $BP_Legacy$aaaaa = BP_Legacy_::setup_actions(); remove_action( 'wp_footer', array( $aaaaa, 'sitewide_notices' ), 9999 );$aaaaa = BP_Legacy; remove_action( 'wp_footer', array( $aaaaa, 'sitewide_notices' ), 9999 );Thanks for every suggestion.
Hello,
First off, thanks for your work on buddypress! Can’t ask for support without giving props! 🙂
I just updated to the latest WP version…and when I went to update buddypress next, I get this error:
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 451496 bytes) in /home/wp-admin/includes/admin.php on line 50
What is the amount of memory needed to run buddypress?