hi, i need to create some kind of IF for the postbit_attachment so that way only vip group can download attachments.
this is the code on the postbit_attachmentsf
PHP Code:
<tr>
<td><img class="inlineimg" src="$stylevar[imgdir_attach]/$attachment[attachmentextension].gif" alt="<phrase 1="$attachment[attachmentextension]">$vbphrase[file_type_x]</phrase>" width="16" height="16" border="0" style="vertical-align:baseline" /></td>
<td><a href="attachment.php?$session[sessionurl]attachmentid=$attachment[attachmentid]&d=$attachment[dateline]"<if condition="$show['newwindow']"> target="_blank"</if>>$attachment[filename]</a> ($attachment[filesize]<if condition="$show['views']">, <phrase 1="$attachment[counter]">$vbphrase[x_views]</phrase></if>)</td>
</tr>
so i need to make this code workable for a specific groupid, how can i do this?
--------------- Added [DATE]1198187733[/DATE] at [TIME]1198187733[/TIME] ---------------
i found this
Quote:
<if condition="$bbuserinfo[usergroupid] == 6">
|
works perfect but is there a way to make it multi usergroup? i hav tried put 6 7 10 or 6, 7, 10 and doesnt work