p@nDa
01-02-2011, 12:13 PM
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 ...
<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>
i want only usergroup 6 and 7 can view the collapse button ...
<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>
i want only usergroup 6 and 7 can view the collapse button ...