Like I mentioned above, you need to convert the array into variables if posting into a template as opposed to echoing in a PHP script
So in your case it would look like this (I also gave a commented example in both sections for how to display 2 images instead of one in order to scale it up if needed)...
<!-- <? //UBBTREMARK --> <br />// File Version 6.5 <br />[:"green"] <br />$image_html = array(); <br /> <br />// Insert the HTML code below for each image or banner in the pool (don't forget the \ before the ") <br />// You can also add individual ALT and TITLE tags if you wish <br /> <br />$image_html[0] = "<a href=\"http://www.bajema.com\"><img src=\"/ubbthreads/images/banners/bajbnr.jpg\" border=\"0\"></a>"; <br />$image_html[1] = "<a href=\"http://melancholic.net\"><img src=\"/ubbthreads/images/banners/melancholicban.jpg\" border=\"0\"></a>"; <br />$image_html[2] = "<a href=\"http://www.decayingmadness.com\"><img src=\"/ubbthreads/images/banners/decayingmadness.gif\" border=\"0\"></a>"; <br />$image_html[3] = "<a href=\"http://www.vixenshop.com\"><img src=\"/ubbthreads/images/banners/vixshop.gif\" border=\"0\"></a>"; <br />$image_html[4] = "<a href=\"http://www.giger.com/mainflash.htm\"><img src=\"/ubbthreads/images/banners/giger.jpg\" border=\"0\"></a>"; <br />$image_html[5] = "<a href=\"http://www.pitchfork.de/page_en.php?\"><img src=\"/ubbthreads/images/banners/projectpitchfork.jpg\" border=\"0\"></a>"; <br />$image_html[6] = "<a href=\"http://emeraldforestseattle.com\"><img src=\"/ubbthreads/images/happyhalloween.gif\" border=\"0\"></a>"; <br /> <br />// Configure the number of unique images or banners to be displayed on the page <br />// It can be any number from 0-6 in the example given <br /> <br />$number_of_images = 1; // <-- Configure <br /> <br />$random = array_rand($image_html, $number_of_images); <br /> <br />// Convert the array into variables for posting in a template <br />// The number of lines below is the *same number* specified by $number_of_images, in this case 1 <br />$image1 = $image_html[$random[0]]; <br />// $image2 = $image_html[$random[1]]; <-- This is how it would look if using 2 images in $number_of_images, and so on <br />[/] <br /><!-- echo <<<UBBTPRINT --> <br /><!-- START OF header.tmpl TEMPLATE --> <br /><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <br /><html dir="{$ubbt_lang['READ_DIRECTION']}"> <br /><head> <br />$headerinsert <br />$refresh <br /><meta http-equiv="Content-Type" content="text/html; charset={$ubbt_lang['CHARSET']}" /> <br /><link rel="stylesheet" href="$stylesheet" type="text/css" /> <br /><link rel="shortcut icon" href="{$config['images']}/favicon.ico" /> <br />$javascript <br /><title>{$config['title']}: $inputTitle</title> <br /></head> <br /><body> <br /><!-- END OF header.tmpl TEMPLATE --> <br /><!-- UBBTPRINT --> <br /><!-- /* UBBTREMARK */ ?> --> <br /> And here is my generic header
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <br /> <br /><title>Emerald Forest Seattle </title> <br /> <br /> <br /> <br /><body bgcolor="#7b9b74"> <br /> <br /> <br /><center><p> <br /><table border="0" cellspacing="0" cellpadding="0" width="100%"><tr> <br /><td width="80%" align="center" valign="middle"> <br /><img src="/efsbanner.gif"> <br /> <br /> <br /><br> <br /><br> <br /></td> <br /></tr> <br /></table> <br /> <br /><table border="0" cellspacing="1" cellpadding="2" width="95%"bgcolor="#000000"><tr bgcolor="#7C8F79"><td align="center" width="20%" background="/attachments/64861-grad-02.gif"> <br /> <br /><b><a href="/faq.html" target="_new">Rules</a></b></td> <br /> <br /><td align="center" width="20%" background="/attachments/64861-grad-02.gif"><b><a href="http://efs.stats.nuclearfallout.net"target="_new">Statistics</a></b></td> <br /> <br /><td align="center" width="20%" background="/attachments/64861-grad-02.gif"><b><a href="http://216.254.1.196/~chaos/live1.6.html" target="_new">LiveStatus</a></b></td> <br /> <br /><td align="center" width="20%" background="/attachments/64861-grad-02.gif"><b><a href="/efclan/staff.html" target="_new">Staff</a></b></td> <br /> <br /><td align="center" width="20%" background="http://emeraldforestseattle.nuclearfallout.net/attachments/64861-grad-02.gif"><b><a href="/Links.html" target="_new">Links</a></b></td></tr> <br /></table> <br /> <br /><br /> <br /> <br /><!--THIS PART GOES INTO THE GENERIC HEADER--><div align="center"><table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td align="center" valign="top"> <br /> <br /> <br /> <table border="0" cellspacing="1" cellpadding="2" width="95%" bgcolor="#000000"> <br /> <tr> <br /> <td width="20%" class="welcome"> <br /> <form action="https://www.paypal.com/cgi-bin/webscr" method="post"> <br /> <input type="hidden" name="cmd" value="_xclick"> <br /> <input type="hidden" name="business" value="[email protected]"> <br /> <input type="image" src="http://emeraldforestseattle.nuclearfallout.net/ubbthreads/images/x-click-but04.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!"> <br /> </form> <br /> <b>Send Money!</b> <br /> </td> <br /> <br /> <td width="60%" td bgcolor="#92A88E"> <br /><br></ br> <br /><center>Welcome To The Forest</center> <br /><center> <br />[:"green"] <br /></center><center> <br />$image1 <br /><!-- $image2 --> <br /><!-- the 2nd image variable would go above if we were including 2 images --> <br /></center> <br />[/] <br /> </td> <br /><td width="20%" align="right" class="welcome"> <br /> <form action="https://www.paypal.com/cgi-bin/webscr" method="post"> <br /><input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but20.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!"> <br /><input type="hidden" name="cmd" value="_xclick-subscriptions"> <br /><input type="hidden" name="business" value="[email protected]"> <br /><input type="hidden" name="item_name" value="Emerald Forest Seattle"> <br /><input type="hidden" name="item_number" value="EFS Subscription"> <br /><input type="hidden" name="no_note" value="1"> <br /><input type="hidden" name="currency_code" value="USD"> <br /><input type="hidden" name="a3" value="5.00"> <br /><input type="hidden" name="p3" value="1"> <br /><input type="hidden" name="t3" value="M"> <br /><input type="hidden" name="src" value="1"> <br /><input type="hidden" name="sra" value="1"> <br /> </form> <br /> <b>Hurry!</b> <br /> <br /> <br /> </tr> <br /></td> <br /> </table> <br /><br> <br /></ br> <br /> <br />
[/]