The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Admins only can see?
Say if i wanted something like so admins could only see it in the post bit, what code would i put ontop, Like how its done so admins can only see infractions?
Please help asap. Ross |
#2
|
||||
|
||||
Use this in the template:
HTML Code:
<if condition="is_member_of($bbuserinfo,x)"> Stuff for members of usergroup x </if> |
#3
|
||||
|
||||
Defauly Admin id is 6 not 5.
|
#4
|
||||
|
||||
I couldn't remember and can't get to my site right now since the host is doing some network upgrades, so thanks for correcting that!
|
#5
|
||||
|
||||
There are alot of upgrades happening to servers lately. On one of the sites that I admin, The host just completely switched servers.
Anyway, yeah its 6 and you are welcome. |
#6
|
|||
|
|||
<if condition="is_member_of($bbuserinfo,149)">
$timespentonline </if> It doesnt work 149 is secondary admins btw :P |
#7
|
|||
|
|||
<if condition="in_array($bbuserinfo[usergroupid], array(6,5))">
|
#8
|
|||
|
|||
So how do i include $timespentonline in?
|
#9
|
|||
|
|||
<if condition="in_array($bbuserinfo[usergroupid], array(6,5))">
$timespentonline </if> |
#10
|
|||
|
|||
It still doesn't work that code still displays the code to everyone.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|