Quote:
Originally Posted by mixylplik3
This is a great hack, however, I want to limit its use to certain usergroups. Using the following, I have been unable to do so:
<if condition="$post[usergroupid]==6">
<tr>
<td class="vbmenu_option"><img class="inlineimg" src="$stylevar[imgdir_button]/sortasc.gif" alt="$vbphrase[DownloadThisThread]" /> <a href="dt.php?$session[sessionurl]t=$threadid">$vbphrase[DownloadThisThread]</a></td>
</tr> </if>
Anyone else doing something similar? If so, what did you do?
|
What you do only makes its link visible or unvisible to the thread reader. For this use:
<if condition="$bbuserinfo[usergroupid]==6">
</if>
But if you like to restrict it more strongly, edit dt.php you uploaded find this line:
PHP Code:
//$unallowed_downloaders = array(1);
after that (as a new line!),add this
PHP Code:
if ($vbulletin->userinfo['usergroupid']!=6)
{
print_no_permission();
}