![]() |
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 |
Use this in the template:
HTML Code:
<if condition="is_member_of($bbuserinfo,x)"> |
Quote:
|
Quote:
|
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. |
<if condition="is_member_of($bbuserinfo,149)">
$timespentonline </if> It doesnt work 149 is secondary admins btw :P |
<if condition="in_array($bbuserinfo[usergroupid], array(6,5))">
|
So how do i include $timespentonline in?
|
<if condition="in_array($bbuserinfo[usergroupid], array(6,5))">
$timespentonline </if> |
It still doesn't work that code still displays the code to everyone.
|
Then your doing something wrong on your end, both those codes work correctly.
Lynne's version is actually the new functionality in vb, versus mine, its from the 3.6.x tree of vb. |
Why don't you print out the template code you are using.... give us about five lines above to five lines below your added code. And tell us the template name. I really can't think of why that code would show it to everyone (unless everyone is also a member of usergroupid 149). a link to the page (with test account info, if needed) would also help.
|
Code:
<if condition="$show['infraction']"><div>$vbphrase[infractions]: $post[warnings]/$post[infractions] ($post[ipoints])</div></if> |
Try using this line instead:
<if condition="is_member_of($bbuserinfo,5,6)"> Also, verify what you usergroupid 5 and 6 are used for (only admins and supermods?). And what template did you add the code to? If you added it to the postbit, then that is incorrect since you are using postbit_legacy. |
Yeh its for postbit.
|
I'm adding to postbit_legacy and I'll try that code now. I'll edit this when ive done it.
Added the code and it still doesn't work. |
All times are GMT. The time now is 03:16 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|