PDA

View Full Version : Views


luck11
12-06-2008, 09:37 AM
Hello,

I have noticed thet "Views" in show link details is updated only when users are pressing the URL of outer link.

1. Is it possible that the "Views" will be updated according to the number of people entering the "link details" page?

2. Or, how do I hide the "Views" from public?

Thanks!

Brian
12-06-2008, 12:35 PM
It would be easy enough to switch the way views are counted with a couple of plugins.

Hook Location: vba_links_showlink_goto
Code:
$vbulletin->url = $vba_links->_link['linkurl'];
eval(print_standard_redirect('adv_links_transferring'));
exit;

Hook Location: vba_links_showlink_showdetails_start
Code:
$db->query_write("UPDATE LOW_PRIORITY " . TABLE_PREFIX . "adv_links SET views = views+1 WHERE linkid = $linkid");