MyBB Community Forums

Full Version: Make Send a Private Message ONLY appear on non user profiles?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello there, I have created a template for sending a private message and am trying to call it, but only when the user is not on THEIR profile. I know the logic I would use obviously, I am just unsure where to put it.

I'm assuming it would look something like this

if ($memprofile["uid"] !== $mybb->user["uid"]) {
echo $pmtemplate;
}

I'll try throwing this in global.php and member.php and see what happens, but would love to hear from someone

xoxo

Hello the above code is not neccessay; simply use the add_remove_buddy template in the member section templates.