The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
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 Code:
<tr><td class="vbmenu_option" align="left"><a href="search.php?$session[sessionurl]do=finduser&u=$userinfo[userid]" >My Posts</a></td></tr> Code:
<tr><td class="vbmenu_option" align="left"><a href="search.php?$session[sessionurl]do=finduser&u=$userinfo[userid]&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 |
#2
|
|||
|
|||
![]()
Try using $vbulletin->userinfo[userid] in place of $userinfo[userid]
|
#3
|
|||
|
|||
![]()
thanks for the suggestion but it didnt work. anyone else?
|
#4
|
||||
|
||||
![]()
$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]
|
#5
|
|||
|
|||
![]()
perfect! worked like a charm. many thanks!
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|