PDA


View Full Version : It works on cmps homepage with every style except 1...


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!

Brian
07-23-2005, 02:15 PM
Admin CP => vBa CMPS => Default Settings => Portal Output Global Variables

Try adding 'factoid' there and see if that takes care of the problem.

SomeName
07-23-2005, 02:19 PM
tried... No luck :confused:

SomeName
07-23-2005, 02:46 PM
tried it FOLLOWING THE INSTRUCTIONS :rolleyes: LOL following each variable name with a carriage return instead of a , and a carriage return and that did it.

DOH! Thanks Brian!

Brian
07-24-2005, 11:24 PM
LOL! It does usually help to read the instructions. :)