Search Results for 'wordpress'
-
Search Results
-
There seems to be no German translation for the “notification-description”.
“You have 1 new reply to [topic] from [user]”
And I can´t find a way to add a translation with the plugins “Loco Translate” (https://de.wordpress.org/plugins/loco-translate/) or “Say What?” (https://de.wordpress.org/plugins/say-what/), too. That works perfectly in other cases, but not in this one.
—
Wordpress 5.6
BuddyPress 7.1.0
bbPress 2.6.6
Loco Translate 2.5.0
Say What? 1.9.6Hello,
I was wanting to create a button link in elementor to the BuddyPress user view profile page. I’m struggling to find the correct info.
There’s basically a link field in elementor available just like this https://pasteboard.co/JI8WdfI.png
The closest I found was the following:
https://buddypress.org/support/topic/logged-in-user-profile-link-url/
https://wordpress.stackexchange.com/questions/35163/add-buddypress-profile-and-messages-link-to-wordpress-menuUsing Ocean WP theme, Buddypress 7.1.0 (v latest at time of post)
Kind regards
Hello ,
I have a wordpress site like mysite.com and the other I created a subfolder to install mysite.com/pro
So if a user registers on the main site, he will be automatically registered on the pro subfolders! (until then everything is working fine !
i use this code :
<?php /** * @package Kinsta_Share_Users * @version 1.0 */ /* Plugin Name: Kinsta_Share_Users Plugin URI: https://wordpress.org/extend/plugins/# Description: This is an plugin for Kinsta_Share_Users blog readers Author: Carlo Daniele Version: 1.0 Author URI: http://carlodaniele.it/en/ */ /** * Duplicate {$pref}_capabilities and {$pref}_user_level rows in {$pref}_usermeta table * * @param int $user_id The user ID. * @param string $role The new role. * @param array $old_roles An array of the user's previous roles. * * @link https://developer.wordpress.org/reference/hooks/set_user_role/ * @link https://codex.wordpress.org/Plugin_API/Action_Reference/set_user_role * */ function ksu_save_role( $user_id, $role ) { mysite.com/ // Change value if needed $prefix_1 = 'first_'; mysite.com/pro/ // Change value if needed $prefix_2 = 'second_'; $caps = get_user_meta( $user_id, $prefix_1 . 'capabilities', true ); $level = get_user_meta( $user_id, $prefix_1 . 'user_level', true ); if ( $caps ){ update_user_meta( $user_id, $prefix_2 . 'capabilities', $caps ); } if ( $level ){ update_user_meta( $user_id, $prefix_2 . 'user_level', $level ); } } add_action( 'set_user_role', 'ksu_save_role', 10, 2 );Now I would like if the user adds a profile or cover photo on the main site it adds on the pro site too!
In good term if the user updates his pphoto on a site the other site automatically updates and so on.
Hello,
on any template (eg Customify, Travel Agency …) I have created links in the menu to Groups. After clicking on the group, the group name and text in the menu will disappear. It is displayed correctly only for one link (see picture).
The first image (link web) is OK, the others are no longer displayed,
Please info where the error is.
https://www.abudesfit.cz/error/ok.png (is ok)
https://www.abudesfit.cz/error/ok-no1.png (error)
https://www.abudesfit.cz/error/ok-no2.png (error)thank you very much
—
Wordpress 5.7.2
BuddyPress 7.3.0Topic: Buddypress api
Hello,
Does the Buddypress plugin use the wordpress api? (WordPress Reset Api) Or did it create itself? (BP Reset API)
Self-hosted pages are loading and displaying slowly. This is because the browser won’t display them until all assets are loaded and there is a problem with one stylesheet that is included (from wordpress using theme integration):
<link rel=’stylesheet’ id=’bp–css’ href=’https://rockclass101.com/wp-content/plugins/buddypress/bp-core/css/.min.css?ver=7.3.0′ type=’text/css’ media=’all’ />
Please see screenshot:

Why does the head part for the example above contain broken links?
—
If I deactivate the BP plugin, the pages load fast. Any ideas on how to solve this issue?
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 )