It would be helpful. I use UltimateMembers to manage users, it’s a very good plugin. I would like to change the appearance of the user’s page if he has a certain rank. For example, to prevent blocking a moderator, etc.
Idea for implementation: It would work on the principle of redirection.
This has many uses, in my case I could change the tiles displayed by default depending on who the user is. For example, the moderator’s account cannot be deleted, blocked, etc. Hiding the function of changing permissions and data on a deactivated account.
I would also like to know if the plugin is available on Github?
]]>https://www.mydomain.com/user/username
I just need to display the URL and it need not necessarily be clickable.
Regards.
]]>I want to change the user profile url base:
/profile/userX and remove the /profile to have example.com/userX
I tried to rewrite using NGINX, and although I do get /userX, I end up with a 404.
Hope you can help.
]]>1. Auto-populate the user’s display name in the username field
2. Auto-populate the user’s profile url in the URL field
3. Widen the chat box to 100% and put the message field on the bottom
4. Hide the name and url inputs
5. Hide the “Message” label and add a placeholder saying “Type your message here”
6. Change the Submit button text to “Send Message”
Add to your functions.php file and use [sac_populated]
as your shortcode instead:
/**
* Autopopulate chat room details using a new shortcode
* Usage: [sac_populated]
*/
add_shortcode( 'sac_populated', 'sac_populated_function' );
function sac_populated_function() {
$user_info = get_userdata( get_current_user_id());
$display_name = $user_info->display_name;
$combined_name = str_replace(' ', '-', $display_name);
if (function_exists('simple_ajax_chat')) simple_ajax_chat();
$results = '<style>fieldset#sac-user-info, fieldset#sac-user-url, #sac-user-chat label {display: none;} div#sac-output, input#sac_chat {width: 100% !important; margin-top: 10px !important;} div#sac-panel {float: left !important; width: 100% !important;} </style>';
$results .= '<div id="display-name-div" class="'.$combined_name.'"></div><div id="profile-url-div" class="'.um_user_profile_url().'"></div>';
$results .= '<script type="text/javascript">';
$results .= 'var combinedName = document.getElementById("display-name-div").className;';
$results .= 'var displayName = combinedName.replace(/-/g, " ");';
$results .= 'var nameInput = document.getElementById("sac_name");';
$results .= 'nameInput.value = displayName;';
$results .= 'var profileURL = document.getElementById("profile-url-div").className;';
$results .= 'var urlInput = document.getElementById("sac_url");';
$results .= 'urlInput.value = profileURL;';
$results .= 'var chatInput = document.getElementById("sac_chat");';
$results .= 'chatInput.placeholder = "Type your message here";';
$results .= 'var submitButton = document.getElementById("submitchat");';
$results .= 'submitButton.value = "Send Message";';
$results .= '</script>';
return $results;
}
]]>I’m coming back to this after about a year.
I had an issue with how Profile Grid composed the username slugs and this was the reason I changed to another user profile plugin.
Even with your username add-on, the Profile Grid slugs would show up as:
example.com/profile/?uid=username
Has this now been fixed and is it possible to have a user friendly profile slugs, such as:
example.com/profile/username ??
Without the /?uid= parameter inside the slug?
]]>Eg: mydomain.com/profile-name rather than mydomain.com/profiles/profile-name
Thanks in advance
]]>How to change “profile” link to go to a custom page. For example “/account” or “/profile” By default it is leading to “/wp-admin/profile”
]]>I believe this change needs to be made in:
/wp-content/themes/origin/library/functions/shortcodes.php
/**
* Displays an individual post's author with a link to his or her archive.
*
* @since 0.7.0
* @access public
* @param array $attr
* @return string
*/
function hybrid_entry_author_shortcode( $attr ) {
$post_type = get_post_type();
if ( post_type_supports( $post_type, 'author' ) ) {
$attr = shortcode_atts(
array(
'before' => '',
'after' => ''
),
$attr,
'entry-author'
);
$author = '<span class="author vcard"><a class="url fn n" rel="author" href="' . esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ) . '" title="' . esc_attr( get_the_author_meta( 'display_name' ) ) . '">' . get_the_author_meta( 'display_name' ) . '</a></span>';
return $attr['before'] . $author . $attr['after'];
}
return '';
}
I have tried replacing get_author_posts_url
with get_the_author_link
(link) but it’s not working for me.
Any advice is appreciated!
]]>https://massagemeisje.nl/gallery/masseuses/
if i click on @valerie profile link in the picture it should go to https://massagemeisje.nl/bp-members/valerie/
like before, but now it goes to https://massagemeisje.nl/salon6/ and for the other pictures with @user it also links to a post instead of the buddy press user profile. altho this on https://massagemeisje.nl/bp-members/massagemeisje/ still works. could you help me out?
For security reasons, your profile URL must be one of your claimed OpenIDs:
I can’t figure out how to fix this.
]]>