View Full Version : Add link to user notes on user options popup
Elixar
05-02-2017, 12:45 AM
When I click on a user name and the options popup appears, how can I add a link to their user notes?
MarkFL
05-02-2017, 01:13 AM
Create a plugin hooked at "memberaction_dropdown" with the following code:
if (is_member_of($vbulletin->userinfo, array(6,7)))
{
$template_hook['memberaction_dropdown_items'] .= '<li class="left">
<a href="usernote.php?u=' . $memberinfo['userid'] . '" class="siteicon_profile">
User Notes
</a>
</li>';
}
You can adjust the usergroups who will see this link in the first line of the code. :)
Elixar
05-02-2017, 02:03 AM
Create a plugin hooked at "memberaction_dropdown" with the following code:
if (is_member_of($vbulletin->userinfo, array(6,7)))
{
$template_hook['memberaction_dropdown_items'] .= '<li class="left">
<a href="usernote.php?u=' . $memberinfo['userid'] . '" class="siteicon_profile">
User Notes
</a>
</li>';
}
You can adjust the usergroups who will see this link in the first line of the code. :)
Thanks Mark, I can't like your post till I like more haha. Now to try to figure out my other question. :P
MarkFL
05-02-2017, 02:09 AM
Thanks Mark, I can't like your post till I like more haha. Now to try to figure out my other question. :P
Adding the quick reply feature to usernotes is one of those things I look at and think the work involved would far outweigh the benefit. :eek::)
Elixar
05-02-2017, 03:35 AM
Adding the quick reply feature to usernotes is one of those things I look at and think the work involved would far outweigh the benefit. :eek::)
I suppose, I would think it's just the same with the quick reply for posts. :P
Stratis
05-04-2017, 03:35 PM
Very useful Mark, Thank you.
Thanks to Elixar to, for making the question. :)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.