Support only during business hours : Monday to friday, from 8:30 am – 5:30 pm CEST

Due to the decrease in our staff due to vacations, our response time may be longer.

Be sure we're doing our best to manage your topic as soon as possible.

Add toolbar tip to Send Private Message icon on Profile pages

This topic is resolved
Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • Des Somebody
    Participant
    • 15 Topics
    • 41 Posts
    @elsades

    The Members’ page has a toolbar tip (“Send a private message to this user.”) at the “Send Private Message” icon at the bottom of each profile photo. For consistency, the same toolbar tip should be shown at the “Send Private Message” icon at the bottom of the photo on the Profile page. Is there a simple way to achieve this?

    Cheers.

    Des Somebody
    Participant
    • 15 Topics
    • 41 Posts
    @elsades

    PS I should have said “tooltip” instead of “toolbar tip”.

    Themosaurus
    Keymaster
    Themosaurus Support
    • 1 Topics
    • 1675 Posts
    @themosaurus

    Hi @elsades,

    To change this, simply add the following code snippet to your website:

    if ( ! function_exists( 'gwangi_buddypress_member_send_private_message_button' ) ) :
    	/**
    	 * Print the HTML for the BP button for the private messaging form.
    	 *
    	 * @since 1.0.0
    	 */
    	function gwangi_buddypress_member_send_private_message_button() {
    		if ( is_user_logged_in() ) :
    			$user_id = bp_get_member_user_id();
    
    			if ( false !== $user_id && bp_loggedin_user_id() !== $user_id ) :
    
    				$link_href = apply_filters( 'gwangi_buddypress_member_send_private_message_button_url', wp_nonce_url( bp_loggedin_user_domain() . bp_get_messages_slug() . '/compose/?r=' . bp_core_get_username( $user_id ) ), $user_id );
    
    				bp_button( array(
    					'id'                => "private_message-{$user_id}",
    					'component'         => 'messages',
    					'must_be_logged_in' => true,
    					'block_self'        => true,
    					'wrapper_id'        => "send-private-message-{$user_id}",
    					'wrapper_class'     => 'send-private-message',
    					'link_href'         => $link_href,
    					'link_title'        => esc_html__( 'Send Private Message', 'gwangi' ),
    					'link_text'         => esc_html__( 'Private Message', 'gwangi' ),
    					'link_class'        => 'send-message',
    				) );
    
    			endif;
    		endif;
    	}
    endif;

    To add this code snippet to your site, we recommend that you use a the Code Snippets plugin (https://wordpress.org/plugins/code-snippets/). If you have never activated this plugin, please read the following post:

    Adding Custom PHP Without Changing Your Child Theme

    We hope this will solve your issue. ?

    Best,

    Des Somebody
    Participant
    • 15 Topics
    • 41 Posts
    @elsades

    I tried your suggestion but still no tool tip is appearing when hovering over the “Send Private Message” icon on the Profile page.

    Cheers

    Des Somebody
    Participant
    • 15 Topics
    • 41 Posts
    @elsades

    But the tooltip text on the Members page now reads “Send Private Message” instead of “Send a private message to this user.”.

    Themosaurus
    Keymaster
    Themosaurus Support
    • 1 Topics
    • 1675 Posts
    @themosaurus

    Hi @elsades,

    Could you be more specific please? It the tooltip text is now correct, this issue should be solve… Or maybe you’re trying to achieve another thing that we might have missed.

    Thank you for clarifying.

    Cheers,

    Des Somebody
    Participant
    • 15 Topics
    • 41 Posts
    @elsades

    Apparently I wasn’t clear in my original query. I will try to clarify what I am wanting to achieve.

    I am referring to two different pages – “Members’ Directory” (MD) page and “Member’s Profile” (MP) page.
    The tooltip appears on the MD page but not on the MP page. I would like it to appear on both pages.

    Thanks.

    Themosaurus
    Keymaster
    Themosaurus Support
    • 1 Topics
    • 1675 Posts
    @themosaurus

    Hi @elsades,

    Thank you for your clarification.
    This issue will be fixed in our theme with the next update.

    Best,

    Des Somebody
    Participant
    • 15 Topics
    • 41 Posts
    @elsades

    Thank you.

    Cheers

    Jason
    Keymaster
    Themosaurus Support
    • 1 Topics
    • 426 Posts
    @themoceratops

    Hi,

    We have just release a new version of Gwangi (v1.2) and a new version of our Grimlock plugin (v1.0.8). Updating your theme and all the required plugins to the latest version should fix your issues.

    To update your theme, you can download and install the Envato Market plugin (https://envato.com/market-plugin/) on your WordPress site.

    Once the plugin is installed and activated, go to “Envato Market” in your admin menu and follow the instructions under “Activate Envato API Connection”.

    When this is done, you will see your purchased themes under the “Themes” tab and you should be able to update your Gwangi theme from there by clicking the “Update available” button.

    Best regards,

    DEMENTE
    Participant
    • 51 Topics
    • 178 Posts
    @chilepower

    I can not generate the token to update my site, is there another way to do it?

    Themosaurusrex
    Keymaster
    Themosaurus Support
    • 0 Topics
    • 2048 Posts
    @themosaurusrex

    Hi @chilepower,

    Following the link displayed (build.envato.com) on the plugin installation guide should be enough and you will open a page with suggested permissions already checked (please see attached).

    As this issue is related with the Envato Market plugin, it’s best if you try to reach the plugin authors. They will be more informed and better suited to help you.

    To go further, we invite you to post your request on their support forums:
    https://help.market.envato.com/hc/en-us

    We remain available for all support requests related with the use of your theme.

    Best,

    Themosaurusrex
    Keymaster
    Themosaurus Support
    • 0 Topics
    • 2048 Posts
    @themosaurusrex

    @chilepower,

    Please also make sure you’re logged in with the right account. It seems from your comment history that you’ve multiple ThemeForest accounts.

    Best,

Roboraptor 🦖
Themosaurus Topic Closer

Hi there,

This topic has been inactive for a while now so we will be closing it to keep the forum tidy. Don't hesitate to create a new topic if you still need help and we'll be glad to help you!

Best regards,
The Themosaurus team.

Viewing 13 posts - 1 through 13 (of 13 total)

The topic ‘Add toolbar tip to Send Private Message icon on Profile pages’ is closed to new replies.

Troubleshooting Demo Imports

You're trying to setup your theme but you're experiencing errors when importing the demo content? Or you've just followed the setup guide but your website doesn't look exactly like our demo? These are common issues for which you can find easy and quick fixes.

Happy With our Support So Far?

Feel free to review our theme on Themeforest! It helps us making our products more known to new potential customers, which allow us more time to improve the quality and develop new features. #SharingIsCaring ❤️

Discover MatchPress

Skip • Like • Super-Like

Add powerful matching features like Member likes, skips, super likes, conditional private messaging and much more.

Setup Your Cera or Gwangi powered Community Website and Turn it into an iOS and Android App

15% discount for Cera users

To unleash the full power of your Cera or Gwangi theme, we have partnered with the Zipline team. Your community website can now be fully setup and turned into your very own custom app for iOS and Android.

Whether you've newly acquired the theme or already got your site up and running, Zipline got you covered. And we got you an incredible discount.

Holiday, Weather & Festive effects
to pimp your WordPress Site