Log in

View Full Version : Random Banner


Reece^B
04-08-2014, 04:51 PM
Hi

Im already running a random banner system in the product manager.

$random_number = rand(1, 3);

$random_banner[1] = 'text';

$random_banner[2] = 'text';

$random_banner[3] = text';

It's called with $random banner, however I need to run another in another module, but these will conflict.

Ideas?

blind-eddie
04-14-2014, 02:26 AM
I created a second plugin on your test site and added random banner to the navbar, move it where you will.
You will see new plugin in plugin manager, and see how you can use the same code over and over without conflicting with is original...with very little editing.