Quote:
Originally Posted by Powlo
If you want to prevent a usergroup or groups from having to reply to a thread before downloading attachment you need to do this..
Replace this code ...
PHP Code:
if ( !$vbulletin->db->query_first ( "SELECT postid FROM " . TABLE_PREFIX . "post WHERE userid='".$vbulletin->userinfo[userid]."' AND threadid=$threadinfo[threadid]" ) ) :
with this this..
PHP Code:
if (!is_member_of($vbulletin->userinfo, x, y, z)) { if ( !$vbulletin->db->query_first ( "SELECT postid FROM " . TABLE_PREFIX . "post WHERE userid='".$vbulletin->userinfo[userid]."' AND threadid=$threadinfo[threadid]" ) ) : }
Changing x, y, z for your groups that dont need to reply.
Hope that helps.
Thanks to Lynne for her help.
|
Thanks for the advise but now I get this error when the attachment is clicked.
Code:
Parse error: syntax error, unexpected '}' in /home/test/domains/test-forum.com/public_html/forum/attachment.php on line 193
Quote:
Install :
Import The Product From Your Admincp
Open Read Me file In attachments For File Changes
|