Norm Green

Forum Replies Created

Viewing 4 posts - 1 through 4 (of 4 total)
in reply to: Private Messages Sidebar #154921

Norm Green
Participant

Thanks, it works now.

I have another question.

I was using the the front end pm plugin previously and was able to show links after the message area for each message author.

add_action( ‘fep_display_after_message’, function(){
$authordata = get_userdata( fep_get_message_field( ‘mgs_author’ ) );

if( in_array( ‘business’, $authordata->roles ) ){
echo ‘<div id=”businesslink”>user_nicename . ‘/” target=”_blank”>View</div>’;
}
});

How would it be possible to do the same with your plugin, but add these links in the sidebar in private messages under the about section?

in reply to: Hide element unless user is whitelisted contact #154851

Norm Green
Participant

Hi,

I’m just trying to hide a elementor button on listings.

So if user who is looking at this page/listing and the user is not contacts with the post author, the button is not displayed

I’m only using the Privat Messages Plugin and not any other WPDM plugin.

Here is the button and the display visibility plugin which is showing user meta field _wppmsg_contacts_ : https://ibb.co/pQXXg34

Thanks

  • This reply was modified 3 years, 11 months ago by Norm Green.
in reply to: Private Messages Sidebar #154819

Norm Green
Participant

Hi,
Thanks.
There is just one problem, the user name is linking to the logged in user and not the user showing in the sidebar.
See screenshot here: https://ibb.co/9VkTrpC – the user name is linking to the currently logged in user (which is me – support) and not the user “Sharon”.

Would you be able to fix this or let me know what I need to do?

Thank you.

in reply to: Private Messages Sidebar #154779

Norm Green
Participant

Not too sure what happened to my reply. I can’t see it anymore. Are you are able to see it?

Either way, another temp solution to what I’m trying to achieve would be to add a link to the users name. Here a screenshot of the user sidebar in the messages: https://ibb.co/zPvn6yr
I would like that the users display_name is linked to their profile.

In the template it shows like this:

<div class=”col-md-3″>
<div class=”card profile-card”>
<div class=”list-group list-group-flush”>
<div class=”list-group-item”>
<div class=”text-center”>
<span v-html=”message.profile.avatar”></span>
<h3>
{{ message.profile.display_name }}
</h3>
<small>{{ message.profile.title }}</small>

</div>

How could I link the {{ message.profile.display_name }} to that users profile page?

Thanks

  • This reply was modified 3 years, 11 months ago by Norm Green.
Viewing 4 posts - 1 through 4 (of 4 total)