On my site, i have a specific thread i want to require people to reply to before they can download an attachment, i've found a mod which does this on a global scale across all forums, but i want to limit it to a single thread. This is the code which is added to attachment.php
Could anyone tell me how i can edit this so i can define the thread it apples to?
Thanks 🙂
Code:
if ( !$vbulletin->db->query_first ( "SELECT postid FROM " . TABLE_PREFIX . "post WHERE userid='".$vbulletin->userinfo[userid]."' AND threadid=$threadinfo[threadid]" ) ) :
eval('print_output("' . fetch_template('MARCO1 Cant See Attach') . '");');
endif ;
Could anyone tell me how i can edit this so i can define the thread it apples to?
Thanks 🙂







