Quote:
Originally Posted by alik4277
If you can not see option to enable Anti-Leech:
Go to AdminCP -> Plugin & Products -> Plugin Manager -> anti-leech Plugin
Replace all plugin code with
PHP Code:
$ref = str_replace('http://www.','',$_SERVER['SERVER_NAME']);
if(!strstr($_SERVER['HTTP_REFERER'],$ref)) {
$id = $vbulletin->db->fetch_array($vbulletin->db->query_read("SELECT postid FROM ".TABLE_PREFIX."attachment WHERE attachmentid = ".mysql_escape_string($_REQUEST['attachmentid'])));
eval('$navbar = "' . fetch_template('navbar') . '";');
eval('print_output("' . fetch_template('antileech') . '");');
exit;
}
Save
|
I still cannot see this in my VBulletin Options on 3.8.0 even after i have changed the code as you mentioned above. I also noticed that "if ($vbulletin->options['al_disable'])" is missing from the code you quoted above.
Thanks