The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
i'm trying to use usergroup condition to show only to staff usergroup the 'collapse' image for a tab , but every kind of sentence i use vbulletin give me error or don't show the template ...
Code:
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="tcat">
<tr>
<td width="54" height="28" align="left" valign="top"><img src="$stylevar[imgdir_misc]/cat_top_ls.gif" width="54" height="28" alt=" " border="0" /></td>
<td width="33" height="28" align="left" valign="top"><img src="$stylevar[imgdir_misc]/text_ls.gif" width="27" height="28" alt=" " border="0" /></td>
<td width="65%" class="tcat" style="background-image:url($stylevar[imgdir_misc]/cat_top_text_bk.gif)" align="left"><div class="orangefont"><strong> ..:: Sponsor ::.. </strong></div></td>
<td width="19" height="28" align="left" valign="top"><img src="$stylevar[imgdir_misc]/cat_top_text_end.gif" width="19" height="28" alt=" " border="0" /></td>
<td width="35%" height="28" align="left" valign="top"><img src="$stylevar[imgdir_misc]/cat_back.gif" width="50%" height="28" alt=" " border="0" /></td>
<td width="10" height="27" align="left" valign="middle"><a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('sponsor_table')"><img id="collapseimg_sponsor_table" src="$stylevar[imgdir_button]/collapse_tcat{$collapseimg_sponsor_table}.gif" alt="" border="0" /></a></td> <td width="27" height="28" align="right" valign="top"><img src="$stylevar[imgdir_misc]/cat_top_rs.gif" width="27" height="28" alt=" " border="0" /></td>
</tr>
</table>
|
|
#2
|
|||
|
|||
|
I think I'd try something like:
Code:
<td width="10" height="27" align="left" valign="middle">
<if condition="is_member_of($bbuserinfo, 6, 7)">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('sponsor_table')"><img id="collapseimg_sponsor_table" src="$stylevar[imgdir_button]/collapse_tcat{$collapseimg_sponsor_table}.gif" alt="" border="0" /></a>
<else /> </if>
</td>
|
|
#3
|
|||
|
|||
|
thanks it works , gave me error cause i put it before <td> ... thanks for help
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|