every 10 pages an ad page?

Discussion in 'Programming' started by tyros8000, Mar 25, 2007.

  1. #1
    Hello,

    I am running a proxy at the moment - www.proogle.net using the script phproxy.

    I was wondering, is there a way to have an ad page display every 10/20/30 pages or something?

    thanks

    dave.
     
    tyros8000, Mar 25, 2007 IP
  2. krakjoe

    krakjoe Well-Known Member

    Messages:
    1,795
    Likes Received:
    141
    Best Answers:
    0
    Trophy Points:
    135
    #2
    well, you just just attach a for look on index.php and use a session var to count the pages, then every x amount reset the loop and echo out the javascript or html for the ad.
     
    krakjoe, Mar 25, 2007 IP