Quote:
Originally Posted by MARCO1
NEW UPDATE
YES lasto !
in your attachment.php
search for
PHP Code:
if ( !$vbulletin->db->query_first ( "SELECT postid FROM " . TABLE_PREFIX . "post WHERE userid='".$vbulletin->userinfo[userid]."' AND threadid=$threadinfo[threadid]" ) ) :
and in ( post WHERE userid='" )
write your usergroup this will be have permission to see attachments without reply the thread
example :
PHP Code:
post WHERE userid='2,3,4,5,6"
|
This didnt work for me, i got an error..
Code:
Database error in vBulletin 3.8.0:
Invalid SQL:
SELECT postid FROM post WHERE userid=61' AND threadid=6836;
MySQL Error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' AND threadid=6836' at line 1
Error Number : 1064
Request Date : Sunday, March 15th 2009 @ 11:18:54 AM
Error Date : Sunday, March 15th 2009 @ 11:18:55 AM
Script : http://www.******.com/forum/attachment.php?attachmentid=5100&d=1237062483
Referrer : http://www.*******.com/forum/showthread.php?t=6836
IP Address : **.**.**.**
Username : ******
Classname : vB_Database
MySQL Version : 5.0.45
This is what i changed..
PHP Code:
if ( !$vbulletin->db->query_first ( "SELECT postid FROM " . TABLE_PREFIX . "post WHERE userid=6".$vbulletin->userinfo[userid]."' AND threadid=$threadinfo[threadid]" ) ) :
eval('print_output("' . fetch_template('MARCO1 Cant See Attach') . '");');
endif ;
any ideas?