Search Results for 'wordpress'
-
Search Results
-
WordPress: 4.9.1
BuddyPress: 2.9.2
Site: newenglandfurs.org
Theme(s) tested: Avant (Primary), Twenty SixteenThe problem I’m experiencing is with BuddyPress’ Muiltiline Text Box element. Specifically inside the editor where you would add content. Currently my community and I have noticed that if we try to center text with the element’s alignment functions, the preview shows the alignment in both the visual and text tabs. However, as soon as we save the element, those alignments disappear. This does not happen in our WordPress news posts. You can see an example of this situation here: http://newenglandfurs.org/members/rexormunde/profile/
Where it says “testing this section”, that was set to be centered in the Multiline Text Box element. As you can see, it’s not centered. Inspect the element with Google Chrome, and you’ll see no signs of any alignments on the paragraph.
I’m not sure if this is a bug or if I’m doing something wrong. Any advice would be appreciated.
Topic: Hooks problem.
Hi There,
I am using the buddypress and apppresser plugin in our website. Apppresser plugin is used to convert wordpress web application to mobile application. I want to use buddypress hooks to send push notifications over the friend request and invite to group request trigger but this is not working. I am using the following hooks for the same
groups_send_invites
groups_accept_invite
friends_friendship_accepted
bp_activity_add_user_favorite
friends_friendship_requestedHere is my code which I have written on function.php .
function action_groups_send_invite( $group_id, $invited_users, $user_id ) {
// make action magic happen here…
if ( !is_user_logged_in() )
return false;
$message = ‘Hi there some one send your request!’;$push = new AppPresser_Notifications_Update;
$devices = $push->get_devices_by_user_id($invited_users);
if( $devices ) {
$push->notification_send( ‘now’, $message, 1, $devices );
}
};// add the action
add_action( ‘groups_send_invites’, ‘action_groups_send_invite’, 10, 3 );function action_friends_friendship_requested( $friendship_id, $initiator_id, $friend_id ) {
if ( !is_user_logged_in() )
return false;$recipients = array( $initiator_id );
$message = ‘Hi there some one send you request!’;
$push = new AppPresser_Notifications_Update;
$devices = $push->get_devices_by_user_id( $recipients );if( $devices ) {
$push->notification_send( ‘now’, $message, 1, $devices );
}//apppush_send_notification( ‘friends_friendship_requested’ );
};// add the action
add_action( “friends_friendship_requested”, ‘action_friends_friendship_requested’, 10, 4 );function action_friends_friendship_accepted( $friendship_id, $friendship_initiator_user_id, $friendship_friend_user_id, $friendship ) {
// // make action magic happen here…
if ( !is_user_logged_in() )
return false;$recipients = array( $friendship_initiator_user_id );
$message = ‘Hi there some one accept your request!’;
$push = new AppPresser_Notifications_Update;
$devices = $push->get_devices_by_user_id( $recipients );if( $devices ) {
$push->notification_send( ‘now’, $message, 1, $devices );
}
//apppush_send_notification( ‘friends_friendship_accepted’ );
};// add the action
add_action( ‘friends_friendship_accepted’, ‘action_friends_friendship_accepted’, 10, 4 );function action_add_user_favorite( $activity_id, $user_id ) {
// do something$recipients = array( $user_id );
$message = ‘Hi there some one accept your friend request!’;
$push = new AppPresser_Notifications_Update;
$devices = $push->get_devices_by_user_id( $recipients );if( $devices ) {
$push->notification_send( ‘now’, $message, 1, $devices );
}
}
add_action(‘bp_activity_add_user_favorite’, ‘action_add_user_favorite’, 1, 2 );can we install plugins in free site
Anyone have any insight on replacing email templates from BuddyPress Email Templates (WordPress side) to Mandrill Templates instead?
Is there a plugin that can help facilitate this?
Topic: BuddyPress Moderator
Hi,
I did a serious research to find a best solutions or plugins to report abuse posts, flag BuddyPress content. I found this plugin https://wordpress.org/plugins/bp-moderation/ suggested in various BuddyPress forum but that plugin itself is not updated last 3 years and it doesn’t support my WordPress version 4.9.1 and BuddyPress 2.9.2. I think this feature is very crucial for social network application to moderate post and flag abusive post/comments. I am looking for plugins for my BuddyPress site to flag content and I really appreciate suggestions on it.Hi,
Using PHP 7.2, I notice some messages from the amazing “Query Monitor” WordPress plugin regarding a deprecated function used by BuddyPress:
Message: Function create_function() is deprecated Count: 26 File: wp-content/plugins/buddypress/bp-core/deprecated/1.6.php:268Using this function is higly discouraged by PHP itself as you can check here:
http://php.net/manual/en/function.create-function.phpI wish I could propose a workaround but I don’t speak PHP, I just wanted to warn devs for future updates. Hopefully this post gets seen by the right persons.
Best regards everyone!
In BuddyPress there is a built-in mechanism for synchronizing profile fields from WordPress.
By default, it synchronizes only the “display_name” field, which is not always sufficient.
Here is an example of the code by which you can synchronize any available fields in the WordPress field with the Buddypress fieldsfunction xprofile_sync_bp_profile2( &$errors, $update, &$user ) { // Bail if profile syncing is disabled. if ( bp_disable_profile_sync() || ! $update || $errors->get_error_codes() ) { return; } // Querying data from a table "usermeta", first we get the value of the custom field "address" and substitute this value for the "Address" field of the xprofile BuddyPress $address = get_user_meta( $user->ID, 'address', 'true' ); xprofile_set_field_data( 'Address', $user->ID, $address ); //Similarly with other fields $firstname = get_user_meta( $user->ID, 'first_name', 'true' ); xprofile_set_field_data( 'Name', $user->ID, $firstname ); $lastname = get_user_meta( $user->ID, 'last_name', 'true' ); xprofile_set_field_data( 'Lastname', $user->ID, $lastname ); $description = get_user_meta( $user->ID, 'description', 'true' ); xprofile_set_field_data( 'Bio', $user->ID, $description ); // Querying data from a table "user" xprofile_set_field_data( 'E-mail', $user->ID, $user->user_email ); xprofile_set_field_data( 'Site', $user->ID, $user->user_url ); } add_action( 'user_profile_update_errors', 'xprofile_sync_bp_profile2', 10, 3 );Unfortunately, the fields are synchronized only when the profile is updated. I do not know how to start mass synchronization 🙁
I hope someone will find this information useful.
Topic: Search users
Hi, I am new to WordPress. I want to add search bar to search all the users from their phone number or name or any one keyword of their address.
Is it possible to search buddypress registered users database by anyone?
+ I want to add functionality that users registered users to be divided into two sub parts, sellers and buyers. I want search bar to search only sellers details.
Please help.
+ I want to add search functionality, so that same search bar can also search all the keywords from databases created by any registered user and show to person who is searching for that keyword.
Thanks.
Hi, I am new to WordPress.
I want some particular pages to be shown only after login.
Please let me know to to remove visibility of such page tabs before login and show them only after login.
Thanks
Hi,
I have made a copy of my site to copy.example.com (where the main site is still on http://www.example.com) to use as a development copy.
Everything is working correctly except for the BP profile pages (e.g. /members/user/ ), which go into a 301 redirect loop (/members/user/ -> /members/user/ -> /members/user/ etc)
This works fine on my main site, just not on the subdomain copy. My host has confirmed it’s nothing on their side driving the re-direct, and my .htacess just has the standard wordpress code.
Any help appreciated.
Topic: Some pages not working.
When i try to visit my own profile.
Not Found
The requested URL /wordpress/members/myusername/ was not found on this server.Apache/2.2.22 (Debian) Server at xxx.com Port 80
When i try to visit memebers pages, no members are shown.
What do you think the problem is? How to fix it?
I’m wanting to integrate buddypress into my existing navbar on my site. At the moment the buddypress profile (notifications count, howdy user and menu) are in the top right of the WordPress admin toolbar. What options do I have to move this / add it to an existing navbar (basically the way this website utilises its own navbar and not the WP adminbar.
Thanks in advanced.
BrentTopic: Group. Custom page
I have latest Buddypress, latest WordPress, latest Kleo-template.
How can i make custom page to my group. I want to put a chat on the page. Only for group members.