I was searching for this code but I found it for vb3
Can I use it in vb4?
Quote:
It would be easy enough to switch the way views are counted with a couple of plugins.
1- Hook Location: vba_links_showlink_goto
PHP Code:
$vbulletin->url = $vba_links->_link['linkurl'];
eval(print_standard_redirect('adv_links_transferring'));
exit;
2- Hook Location: vba_links_showlink_showdetails_start
PHP Code:
$db->query_write("UPDATE LOW_PRIORITY " . TABLE_PREFIX . "adv_links SET views = views+1 WHERE linkid = $linkid");
|