Express Hosting
"We are the official hosting company of UBB.threads. Ask us about our free migration services to migrate your UBB.threads installation."
/* PHP CODE HERE */
$Ads = array (
'http://www.germanshepherdhome.net/testadbanner1.jpg',
'http://www.germanshepherdhome.net/testadbanner2.jpg',
'http://www.germanshepherdhome.net/testadbanner3.jpg'
);
/* BODY HERE */
$body = <<<EOF
$Ads[mt_rand(0, count($Ads)-1)]
EOF;
might work
Remember array index starts from 0 there
Also, i'd recommend (if i were you) to put your banners in something like /forums/images/banners directory. That way you don't clutter up your site's root dir.. if you do, you'd need to modify the URLs above, but you get the drift
Custom island syntax has been a bugaboo, because it's not obvious what is php and what is not..
In actuality, the ENTIRE code block is, since the custom island code that UBB.threads uses to save it simply puts <?php and ?> around it.
The only thing you MUST have in your code is the last 3 lines.. where 1 of them assigns to the body a value. the EOF; is key too, since the save code keys upon it.
Linky Poo to a tutorial in progress about how it works.. that one is for a different application of custom island, but the concept remains the same
Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting ']' in /home/content/t/i/g/tiger2/html/germanshepherdhome/forum/cache_builders/custom/portal_box_1.php on line 13