Search Results for 'wordpress'
-
Search Results
-
Topic: Open links in new tab
WordPress Version 5.7.2
BuddyPress Version 7.3.0I need to open links in BuddyPress posts and comments in a new tab.
I’ve installed Code Snippet and I’m using this function, but it isn’t working.
function altlab_special_links_activity( $body ) { $body = str_replace(' rel="nofollow"',' rel="nofollow" target="_blank"',$body); return $body; } add_filter( 'bp_get_activity_content_body', 'altlab_special_links_activity', 15, 1 );Any help would be gratefully received, thanks.
How to change individual font for text for an individual page in WordPress where the font colour is global for all pages?
I have a BuddyPress social networks in a multi network WordPress install (WordPress multisite), thanks to LH Buddypress Multi Network plugin.
Everything is up to date.
How can I prevent people from accessing to a profile page from another blog?
For example :
teacherSite, teacherUser
studentSite, studentUserI have restricted access to site for non-member.
teacherUser can only connect on teacherSite.
And he can’t see in the directory other users from others blogs.If studentUser knows the teacherUser username or if he finds or tests…
He can go to studentSite.domain.com/members/teacherUser/, and he can see the profile of teacherUser even though teacherUser is not linked to studentSite.
Fortunately, there is no information (because everything else is well segregated) except the name and the gravatar.
But he can still make a connection request or send him a private message!
teacherUser will not see any notification on teacherSite. But he will potentially receive an email which will redirect him to studentSite without being able to connect to it.How to avoid this?
If you know, you are a master!
Hello everyone,
I’ve been trying to figure out how to include the user ID of the profile I’m looking at in the class body tag. The reason is that there’s 1 user that’s special and I need to style their page differently. I want to target the page by their user ID and trying to put it in the body class tag when viewing their profile.
The closest code I found is this:
‘// Add user id CSS class via http://codex.wordpress.org/Function_Reference/body_class
add_filter( ‘body_class’, ‘my_class_names’ );
function my_class_names( $classes ) {
// add ‘class-name’ to the $classes array
global $current_user;
$user_ID = $current_user->ID;
$classes[] = ‘user-id-‘ . $user_ID;
// return the $classes array
return $classes;
}’Close but not quite what I need. This code displays the user ID of the logged-in user (me). Instead, I need to show the user ID of the member’s profile when I’m viewing their profile. Any idea on how to adjust this code to do that?
Hello,
I am trying to create 2 functionalities and i would like to ask for your help please.
1. Trying to get all users with WP_User_Query that have not been active for last 60 days
// Get the contributors and administrators who haven't logged in for 60 days $args = array( 'role__in' => array( 'contributor', 'administrator' ), 'meta_key' => 'last_activity', // this is a meta_key storing the last time the user was logged in by buddypress in 'Y-m-d H:i:s' format 'meta_query' => array( array( 'key' => 'last_activity', 'value' => date('Y-m-d H:i:s', strtotime( "-60 days" )), // what am i doing wrong? 'compare' => '<', 'type' => 'DATE' // Let WordPress know we're working with date ) ) ); $remind_users = new WP_User_Query( $args );-What am i doing wrong on the comparison?
2. Send en email notification to specific users when there is a sidewide notice on our website.
function important_notification() { $notification = '' . bp_get_message_notice_text( $notice->message ) . ''; $args = array( 'meta_key' => '_is_featured' ); $members = get_users( $args ); foreach( $members as $member ) { $user_id = $member->ID; $member_account = bp_core_get_user_domain( $user_id ); $first_name = $member->first_name; $email_subject = 'Important information'; $message = sprintf( 'Hello %1$s,' , $first_name ) . "<br><br>"; $message .= sprintf( 'We have an important information for you:' ) ."<br><br>"; $message .= sprintf( '<i>%1$s</i>' , $notification ) ."<br><br>"; $message .= sprintf( 'Please login <a href="%1$s" target="_blank">to your account</a> to remove the information if you want.' , $member_account ) ."<br><br>"; wp_mail( $member->user_email, $email_subject, $message ); } } add_action( 'xxxxxxxx', 'important_notification');-Will the
$notification = '' . bp_get_message_notice_text( $notice->message ) . '';get the message text of the sidewide notice?
-In which action could i hook this function in order to send an email when admin will publish a sidewide notification?
add_action( ‘xxxxxxxx’, ‘important_notification’);Thank you very much for your time.
Hi.
I get ‘Leave site?’ button keeps appearing when I enable Buddypress plugin (every other plugin is disabled) and partially enter a field, then nivigate away from that page.Is this normal – as it doesn’t happen with plain WordPress (ie no buddypress enabled) form filling and moving away?
hey guys
i need help to post xprofile fields to activity when updated on profile informations like
admin change thier goals to ( learn wordpress )Topic: Cannot create new Group
Cannot create new Group on https://novelnetwork.com
WordPress version: 5.7.1
BuddyPress version 7.3.0
other plugins (all latest versions) on this site include:
BP Custom
BP Profile Search
BP Simple Private
BP xProfile Location
BuddyPress Member Types Pro
BuddyPress Xprofile Custom Field Types
Paid Memberships Pro
Paid Memberships Pro – BuddyPress Add On
WooCommerce Product VendorsIssue:
Been running BuddyPress a few years on this site. Suddenly an issue when trying to create a new BP group – it just goes to the first screen (Details), I enter Group name and description, and when I click “Create group and continue” it just clears the form. This is a membership site, so you would need to be logged in to see the Groups page.Error log shows these errors:
#3 /home/novelnetwork/public_html/wp-content/plugins/buddypress/class-buddypress.php(522): require(‘/home/novelnetw…’)
#4 /home/novelnetwork/public_html/wp-content/plugins/buddypress/class-buddypress.php(125): BuddyPress->includes()
#5 /home/novelnetwork/public_html/wp-content/plugins/buddypress/bp-loader.php(46): BuddyPress::instance()
#6 /home/novelnetwork/public_html/wp-content/plugins/buddypress/bp-loader.php(90): buddypress()
#7 /home/novelnetwork/public_html/wp-settings. in /home/novelnetwork/public_html/wp-content/plugins/buddypress/cli/src/scaffold.php on line 19Any help would be appreciated!
I installed buddy press, followed the manuals and linked the registration and activation pages. When calling the link to the registration page, the page is properly displayed. After filling in the information and clicking on “Complete Sign Up”, the user just gets redirected to the landing page.
There is no new user created in the user in wordpress and also no confirmation email is sent. However, when creating a user in the administration console within wordpress, users can be created and also registration emails are sent to the user.
Any idea how to investigate this problem? All the tricks from other forum entries I have already tried (different themes, activate allow anyone to register etc).
Installation:
Wordpress 5.7.1
Theme: Twenty Seventeen Child Theme, but also ExS
BuddyPress: Version 7.3.0THANK YOU FOR YOUR HELP
Hi,
Wordpress version Version 5.6.3
BuddyPress plugin version: Version 7.3.0I’m getting the error “The Link You Followed Has Expired” page when I try to create a group.
The default url is <my-site-url>/groups/create/step/group-details/
While crating a new group the first step is the Details page where a title and a group description has to be provided. After entering the details and when I select the “Create group and Continue” button, it takes me to the group-setting page page(<my-site-url>/groups/create/step/group-settings/) which is blank and has two buttons, a “Back to previous step” button and a “Next step” button. But when I select the “Next step” button it loads a blank page with a text “The link you followed has expired.”, but it should actually take me to the group photo step/page. Can you please help me to resolve this as issue as it breaks the flow of group creation rpocess.
However when I navigate back to my group listing page, I’m able to find the newly create group.
Please let me know if you need any further informationTopic: Change commenter link
Hello,
On my posts with comments, I noticed that the link for each commenter goes to the Buddypress member profile page. That’s not what I want. Instead, I want the commenter link to go to the WordPress author page. How do I do that?
Thanks,
RobertTopic: error in fresh install
We just installed wordpress and buddypress
Link to site: clubvital.bluemindapps.com
WordPress Version 5.7.1
BuddyPress Version 7.3.0when buddypress is active y got this error in all the pages:
Notice: Trying to access array offset on value of type bool in subdomain.domain/wp-content/plugins/buddypress/bp-core/bp-core-avatars.php on line 1575How we can fix this?