The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
IS there a way to make this so Only Admins and super admins can see this?
Thanks |
#2
|
|||
|
|||
![]()
Show Thread Templates > SHOWTHREAD
Find HTML Code:
<if condition="$show['activeusers']"> <!-- currently active users --> <br /> <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"> <tr> <td class="tcat" colspan="2"> <phrase 1="$totalonline" 2="$numberregistered" 3="$numberguest">$vbphrase[users_viewing_this_thread_x_y_z]</phrase> </td> </tr> <tr> <td class="alt1" colspan="2"> <span class="smallfont">$activeusers</span> </td> </tr> </table> <!-- end currently active users --> </if> HTML Code:
<if condition="is_member_of($bbuserinfo[usergroupid], 6)"> <if condition="$show['activeusers']"> <!-- currently active users --> <br /> <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"> <tr> <td class="tcat" colspan="2"> <phrase 1="$totalonline" 2="$numberregistered" 3="$numberguest">$vbphrase[users_viewing_this_thread_x_y_z]</phrase> </td> </tr> <tr> <td class="alt1" colspan="2"> <span class="smallfont">$activeusers</span> </td> </tr> </table> <!-- end currently active users --> </if> </if> |
#3
|
||||
|
||||
![]()
It's better to just combine the two (fractionally less processing). Also, you just specify the variable which holds the usergroup ID.
![]() HTML Code:
<if condition="is_member_of($bbuserinfo, 6) AND $show['activeusers']"> <!-- currently active users --> <br /> <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"> <tr> <td class="tcat" colspan="2"> <phrase 1="$totalonline" 2="$numberregistered" 3="$numberguest">$vbphrase[users_viewing_this_thread_x_y_z]</phrase> </td> </tr> <tr> <td class="alt1" colspan="2"> <span class="smallfont">$activeusers</span> </td> </tr> </table> <!-- end currently active users --> </if> |
#4
|
|||
|
|||
![]() Quote:
|
#5
|
|||
|
|||
![]()
The section of the template, not the whole thing.
|
#6
|
|||
|
|||
![]()
Figured it out thanks for the help
![]() |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|