Log in

View Full Version : User CP dropdown...is this correct?


multiplex
12-21-2009, 12:53 AM
hello i installed this mod https://vborg.vbsupport.ru/showthread.php?t=194834 but looks like the support has dropped so i'm hoping to get help through this avenue

my question is actually more of a general question anyways related to the navbar

i am trying to add 2 new options in the User CP drop down menu

My Posts
My Threads

here is what i added in the navbar_usercp_menu template

<tr><td class="vbmenu_option" align="left"><a href="search.php?$session[sessionurl]do=finduser&amp;u=$userinfo[userid]" >My Posts</a></td></tr>


<tr><td class="vbmenu_option" align="left"><a href="search.php?$session[sessionurl]do=finduser&amp;u=$userinfo[userid]&amp;starteronly=1">My Threads</a></td></tr>


both show up and work BUT only when you are currently on your profile page. if you try to execute the new options while say on the home page, it wont work. this error shows up:

Invalid User specified. If you followed a valid link, please notify the administrator

can anyone kindly provide any guidance on how to get this to work regardless of what page you are trying to access these options from

thanks in advanced

kh99
12-21-2009, 01:32 AM
Try using $vbulletin->userinfo[userid] in place of $userinfo[userid]

multiplex
12-21-2009, 01:48 AM
Try using $vbulletin->userinfo[userid] in place of $userinfo[userid]

thanks for the suggestion but it didnt work. anyone else?

Lynne
12-21-2009, 03:38 AM
$userinfo[userid] is the person who's profile you are on which is why it would work if you were on your *own* profile. If you want it in the navbar for *you*, then you should use $bbuserinfo[userid]

multiplex
12-21-2009, 04:56 AM
$userinfo[userid] is the person who's profile you are on which is why it would work if you were on your *own* profile. If you want it in the navbar for *you*, then you should use $bbuserinfo[userid]

perfect! worked like a charm. many thanks!