1
I have 2 questions.
I created my own block, and called it advertisers. I then inserted the phpadsnew code. And i got a few problems. Here are my questions. I will post there code under them so you can see just what i did.
First one:
When I use the php insertion code it shows in the preview, but it wont work when i submit it to XOOPS. It wont even show the button. but the block title shows.
<table cellspacing="0">
<tr>
<td align=center id="mainmenu">
<!-- start module menu loop -->
<?php
if (@include(getenv('DOCUMENT_ROOT').'/banman/phpadsnew.inc.php')) {
if (!isset($phpAds_context)) $phpAds_context = array();
$phpAds_raw = view_raw ('zone:2', 0, '', '', '0', $phpAds_context);
echo $phpAds_raw['html'];
}
?>
<!-- end module menu loop -->
</td>
</tr>
</table>
Second Question:
I then tried the java script insertion code. It worked, but i cant center the button on the block. here is my code.
<table cellspacing="0">
<tr>
<td align=center id="mainmenu">
<!-- start module menu loop -->
<script language='JavaScript' type='text/javascript'>
<!--
if (!document.phpAds_used) document.phpAds_used = ',';
phpAds_random = new String (Math.random()); phpAds_random = phpAds_random.substring(2,11);
document.write ("<" + "script language='JavaScript' type='text/javascript' src='");
document.write ("http://www.hercules-it.com/banman/adjs.php?n=" + phpAds_random);
document.write ("&what=zone:2&block=1");
document.write ("&exclude=" + document.phpAds_used);
if (document.referer)
document.write ("&referer=" + escape(document.referer));
document.write ("'><" + "/script>");
//-->
</script><noscript><a href='http://www.hercules-it.com/banman/adclick.php?n=a733b878' target='_blank'><img src='http://www.hercules-it.com/banman/adview.php?what=zone:2&n=a733b878' border='0' alt=''></a></noscript>
<!-- end module menu loop -->
</td>
</tr>
</table>
If you can help me out at all that would be great.
Thanks.