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