blocking ips with adlogger in vbulletin?

Discussion in 'Guidelines / Compliance' started by mpea, Oct 17, 2006.

  1. #1
    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?
     
    mpea, Oct 17, 2006 IP
  2. noppid

    noppid gunnin' for the quota

    Messages:
    4,246
    Likes Received:
    232
    Best Answers:
    0
    Trophy Points:
    135
    #2
    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?
     
    noppid, Oct 17, 2006 IP
  3. mpea

    mpea Guest

    Messages:
    272
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #3
    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)
     
    mpea, Oct 18, 2006 IP
  4. mpea

    mpea Guest

    Messages:
    272
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #4
    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
     
    mpea, Oct 18, 2006 IP
  5. Tearabite

    Tearabite Prominent Member

    Messages:
    4,628
    Likes Received:
    429
    Best Answers:
    0
    Trophy Points:
    300
    #5
    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..
     
    Tearabite, Oct 18, 2006 IP