Has anyone successfully managed to use addlogger in a vbulletin site to block ips. I have found when puting php code into vbulletin template, it changes. After looking around i found that vbulletin doesnt seem to support php within templates so for the adlogger wrapper code: <?php if (!isset($ad_check)) { $ad_check = file_get_contents("http://www.example.com/adlogger/ ad_check.php?visitor_ip=$_SERVER[REMOTE_ADDR]&durelog=$_COOKIE[durelog]"); } if ($ad_check == 'y') { ?> [Enter your AdSense Code Here] <?php } ?> PHP: I need to use something like this: <if condition="!isset($ad_check)"> - not sure how to put the rest of the php in an "then statement" <if condition="$ad_check == 'y' "> [Enter your AdSense Code Here] </if> </if> PHP: But im not sure how to exactly do it? Has anyone had any sucsess with adlogger in vbulleting, not for tracking, but for banning ips. Or anyone have a suggestion what I should do in the above code?
You need to put the php code in a hook. The hook you want is global start. Then the php code will run for every page view of your vBulletin forum. Can you point me to this app please?
sorry for the stupidity, but how do you call the hook back up, and where do you implement the hook Any links to this would be appreciated, but will have a look a vbulletin forums ah I see you are an expert in vbull installations (from your sig)
I have added to my global start (vai plugin manager) how do i now call the ad check function to my Vbulletin template, I have tried: but i dont think it worked
Let us know if you ever get it working.. i dont use Vbulletin, but the Adlogger blocking has never worked right (or at all) for me.. I love Adlogger for the other stuff it does, but i would love it more if the blocking was fully reliable.. Let us know how it works out..