The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
in 3.0.x i used the code below (in postbit and postbit_legacy) to display a link to a members user notes in the drop down menu that appears after clicking on a users name in posts. this link was only visible to those who had permissions to see it.
Code:
<if condition="($post['userid'] == $bbuserinfo['userid'] AND $permissions['genericpermissions'] & CANVIEWOWNUSERNOTES) OR ($post[userid] != $bbuserinfo['userid'] AND $permissions['genericpermissions'] & CANVIEWOTHERSUSERNOTES)"> <tr><td class="vbmenu_option"> <a href="usernote.php?$session[sessionurl]u=$userinfo[userid]"><phrase 1="$post[username]">$vbphrase[user_notes_for_x]</phrase></a> </td></tr> </if> TIA |
#2
|
|||
|
|||
![]()
Try
HTML Code:
<if condition="$show['usernotes']"> <div class="fieldset"> <div style="padding:$stylevar[formspacer]px"> $vbphrase[user_notes]: <if condition="$show['usernoteview']"> <strong>$usernote[total]</strong> [<a href="usernote.php?$session[sessionurl]u=$userinfo[userid]">$vbphrase[view]</a>] </if> I haven't tested it. |
#3
|
|||
|
|||
![]()
thanks for the suggestion. i tried parts of that previously without luck. i ended up using this:
Code:
<if condition="in_array($bbuserinfo['usergroupid'], array(5,6,7))"> <tr><td class="vbmenu_option"><a href="usernote.php?$session[sessionurl]u=$post[userid]"><phrase 1="$post[username]">$vbphrase[user_notes_for_x]</phrase></a></td></tr> </if> |
![]() |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|