vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Add link to user notes on user options popup (https://vborg.vbsupport.ru/showthread.php?t=325011)

Elixar 05-02-2017 12:45 AM

Add link to user notes on user options popup
 
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:

PHP 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

Quote:

Originally Posted by MarkFL (Post 2586111)
Create a plugin hooked at "memberaction_dropdown" with the following code:

PHP 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

Quote:

Originally Posted by Elixar (Post 2586113)
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

Quote:

Originally Posted by MarkFL (Post 2586114)
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. :)


All times are GMT. The time now is 08:00 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02865 seconds
  • Memory Usage 1,735KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete