SomeName
07-23-2005, 01:47 PM
vba cmps 1.0.1 vb 3.0.7
I added an array to the phpinclude_start, then, in the same template had the variable $factoid assigned the value of a random value from that array which is then displayed in the header near the logo.
It works on every style except one (Zach's vBulletin Classic) and on that one style (my particular favorite), it works on the forum but not on the home page...
$factoids = array(
'blah',
'blah blah',
'blah blah blah',
);
$factoid = $factoids[rand(0,3)];
the code is like the above (I just shortened it). After that, I use $factoid to display the random value whereever I want (except in this particular style obviously..)
I would have sworn that it was working on the home page with this style before I went on vacation, but then checked in while I was gone and noticed that it wasn't working on that particular style...
Anyone got any suggestions?
You can see how it works at www.ptkisok.org
I'm at a loss!
I added an array to the phpinclude_start, then, in the same template had the variable $factoid assigned the value of a random value from that array which is then displayed in the header near the logo.
It works on every style except one (Zach's vBulletin Classic) and on that one style (my particular favorite), it works on the forum but not on the home page...
$factoids = array(
'blah',
'blah blah',
'blah blah blah',
);
$factoid = $factoids[rand(0,3)];
the code is like the above (I just shortened it). After that, I use $factoid to display the random value whereever I want (except in this particular style obviously..)
I would have sworn that it was working on the home page with this style before I went on vacation, but then checked in while I was gone and noticed that it wasn't working on that particular style...
Anyone got any suggestions?
You can see how it works at www.ptkisok.org
I'm at a loss!