more banner info.....

Discussion in 'vBulletin Discussions' started by kneel, Aug 23, 2009.

  1. kneel

    kneel Regular Member

    Joined:
    Jun 25, 2009
    Messages:
    612
    Likes Received:
    16
    can sumone help me install a mod/hack that puts a different banner up everytime you refresh your page?

    I know theres a few different ones on the org..so tell me which one to DL and i'll get it...

    thanks,, (VB 3.7.4)
     
  2. David

    David Regular Member

    Joined:
    May 30, 2003
    Messages:
    1,088
    Likes Received:
    133
    Location:
    Australia
    Create a new plugin at global_start

    Code:
    $random_number = rand(1, 5);
    
    $random_banner[1] = '<a href="link"><img src="img" alt="img alt" border="0" /></a>';
    $random_banner[2] = '<a href="link"><img src="img" alt="img alt" border="0" /></a>';
    $random_banner[3] = '<a href="link"><img src="img" alt="img alt" border="0" /></a>';
    $random_banner[4] = '<a href="link"><img src="img" alt="img alt" border="0" /></a>';
    $random_banner[5] = '<a href="link"><img src="img" alt="img alt" border="0" /></a>';
    
    then put

    Code:
    $random_banner[random_number]
    
    In your template where you want the banner to appear.

    Courtesy Jake from vBulletin.com I beleive. (sorry don't have a link handy to original post)
     
    2 people like this.
  3. torque

    torque Regular Member

    Joined:
    Jun 7, 2009
    Messages:
    735
    Likes Received:
    12
    Location:
    Campbelltown, New South Wales, Australia
    wow thanks for that am installing it now!
     
  4. kneel

    kneel Regular Member

    Joined:
    Jun 25, 2009
    Messages:
    612
    Likes Received:
    16
    so where do i put the banners that i want to show?
     
  5. Tubeget

    Tubeget Novice

    Joined:
    Jul 17, 2009
    Messages:
    27
    Likes Received:
    0
    First Name:
    vamsi4u

Share This Page