PDA

View Full Version : Random "Odd" and "Even" Banners


Mary303
09-09-2009, 01:21 PM
I want to have two "random" banners on each page. The code in the [default?? I am new to this, so I am unsure] template says:

$random_banner[$random_number]
$random_banner[$random_number]

Of course, this produces two instances of the same ad. Easiest way to adapt this would seem to be to have one area set to display ads with odd numbers and another area to display ads with even numbers. Is there a built-in vB function for this or do I need a mod? And if I need a mod, is there a relatively simple one that will rotate banners only on page load or page refresh? I don't need want them to rotate at any other time, don't need hit counts or banners targeted to specific forums. Thanks in advance for any help. :)

Lynne
09-09-2009, 02:10 PM
Questions regarding specific modifications need to be asked in the modification thread. I would guess that all you need to do is change the second instance to use $random_number_2 and just define that in the plugins you are using.

Mary303
09-09-2009, 03:02 PM
I would guess that all you need to do is change the second instance to use $random_number_2 and just define that in the plugins you are using.

Thank you - I will fiddle with it!