delay
Tue 25th Jul '00, 3:31pm
I am trying to get some php code to execute in the header. I am new to php so I am probably doing something dumb. How do you make php execute in the headers or templates in vbulletin. For my banner program I have to generate a random number in my banner code for each banner display. I was going to use this code to generate the random number.
<?php $rndnumber=(mt_rand() % 100000-1) + 1;
echo "$rndnumber";
?>
It works fine on a regular php page but not within the vbulletin header. Is this because $header is called as a variable from within another template? Is there any way to have this code execute in vbulletin?
Thanks for any info...
-Delay
<?php $rndnumber=(mt_rand() % 100000-1) + 1;
echo "$rndnumber";
?>
It works fine on a regular php page but not within the vbulletin header. Is this because $header is called as a variable from within another template? Is there any way to have this code execute in vbulletin?
Thanks for any info...
-Delay