sante140 Posted February 23, 2006 Share Posted February 23, 2006 this the html file :<?header( 'Content-type: text/html; charset=\"$CHARSET\"' );?><!DOCTYPEE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/tr/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"<?#// Set document direction (set in includes/messages.XX.inc.php) Can be right-to-left (rtl) or left-to-roght (ltr)if($DOCDIR != 'rtl') { print " dir=ltr>";} else Build the page width string$PAGEWIDTH = $SETTINGS['pagewidth'];if($SETTINGS['pagewidthtype'] == .= "%"if ($HTTPS == || $HTTPS == $SITEURL = $Https['httpsurl'];?><head><title><? print $SETTINGS['sitename']." ".$page_title;?></title><? include $include_path."styles.inc.php";?><? if ($editOn) { echo "<script type='text/javascript'>\n"; echo "// <![CDATA[\n"; echo "var thepage = '$thepage'\n"; echo "var thestyle = '$thestyle'\n"; echo "// ]]>\n"; echo "</script>\n"; echo "<script src='js/utils.js' type='text/javascript'></script>\n"; echo "<script src='js/appl.js' type='text/javascript'></script>\n"; }?><link rel='stylesheet' type='text/css' href='<?=phpa_include("style.css")?>' /><script type="text/javascript" language="Javascript">function window_open(pagina,titulo,ancho,largo,x,y){ var Ventana= 'toolbar=0,location=0,directories=0,scrollbars=1,screenX='+x+',screenY='+y+',status=0,menubar=0,resizable=0,width='+ancho+',height='+largo; open(pagina,titulo,Ventana);}</script><?if(basename($_SERVER['PHP_SELF']) == 'sell.php' || basename($_SERVER['PHP_SELF']) == 'selltemplate.php' || basename($_SERVER['PHP_SELF']) == 'wanteditem.php') { ?><script language="Javascript" type="text/javascript" src="includes/calendar.js"></script><script type="text/javascript" src="./fck/fckeditor.js"></script><? } #// Handle Meta Tagsif($SETTINGS['descriptiontag'] != '') { print " <META name=\"description\" content=\"".stripslashes($SETTINGS['descriptiontag'])."\">";}if($SETTINGS['keywordstag'] != '') { print " <META name=\"keywords\" content=\"".stripslashes($SETTINGS['keywordstag'])."\">";}?></head><body> <table width=<?=$PAGEWIDTH?> cellpadding="0" cellspacing="0" border="0" align="<?=$SETTINGS['alignment']?>" class="container"> <tr> <td> <table width="100%" border="0" cellpadding="8" cellspacing="0" class="logo"> <tbody> <tr> <td width=339 background="<?=$SETTINGS['siteurl']."themes/".$SETTINGS['theme']?>/img/back_logo.gif"> <? if($SETTINGS['logo']) { ?> <div align="center"><a href="<?=$SITEURL?>index.php?"><img src="<?=$SITEURL.phpa_uploaded(false).$SETTINGS['logo'];?>" border="0" alt="<?=$SETTINGS['sitename']?>"/></a> <? } else { print " "; } ?> </div></td> <td background="<?=$SETTINGS['siteurl']."themes/".$SETTINGS['theme']?>/img/back_header.gif"> <div align="right"> <? if($SETTINGS['banners'] == 1) { view(); } else { print " "; } ?> </div></td> </tr></tbody></table> <table width="100%" height="30" border="0" cellpadding="0" cellspacing="0" class="navbar"> <tr> <td><table align="right" cellpadding="0" cellspacing="0" class="table-bar"> <tbody><tr> <td><a href="<?=$SETTINGS['siteurl']?>index.php?" ><? print $MSG_501; ?></a></td><td><div id="imgSep"><img src="<?=$SETTINGS['siteurl']?>images/transparent.gif" width="30" height="30"></div></td> <? if(($SETTINGS['uniqueseller']>0 && $_SESSION["PHPAUCTION_LOGGED_IN"]==$SETTINGS['uniqueseller']) || $SETTINGS['uniqueseller']==0){ ?> <td><a href="<?=$SETTINGS['siteurl']?>select_category.php?"> <? print $MSG_236; ?></a></td><td><div id="imgSep"><img src="<?=$SETTINGS['siteurl']?>images/transparent.gif" width="30" height="30" /></div></td> <? } if($_SESSION["PHPAUCTION_LOGGED_IN"]) { /* user is logged in, give link to edit data or log out */ ?> <td><a href="<?=$SETTINGS['siteurl']?>user_menu.php?"><? print $MSG_622; ?></a></td><td><div id="imgSep"><img src="<?=$SETTINGS['siteurl']?>images/transparent.gif" width="30" height="30" /></div></td> <td><a href="<?=$SETTINGS['siteurl']?>logout.php?"><? print $MSG_245; ?></a></td><td><div id="imgSep"><img src="<?=$SETTINGS['siteurl']?>images/transparent.gif" width="30" height="30" /></div></td> <? } else { /* user not logged in, give link to register or login */ ?> <td><a href="<?=$SETTINGS['siteurl']?>register.php?"><? print $MSG_235; ?></a></td><td><div id="imgSep"><img src="<?=$SETTINGS['siteurl']?>images/transparent.gif" width="30" height="30" /></div></td> <td><a href="<?=$SETTINGS['siteurl']?>user_login.php?"><? print $MSG_259; ?></a></td><td><div id="imgSep"><img src="<?=$SETTINGS['siteurl']?>images/transparent.gif" width="30" height="30" /></div></td> <? } ?> <? if($SETTINGS['wanted'] == 'y') { ?> <td><a href="<?=$SETTINGS['siteurl']?>browse_wanted.php"><? print $MSG_30_0122; ?></a></td><td><div id="imgSep"><img src="<?=$SETTINGS['siteurl']?>images/transparent.gif" width="30" height="30" /></div></td> <? } ?> <? if($SETTINGS['boards'] == 'y' && $SETTINGS['boardslink'] == 'y') { ?> <td><a href="<?=$SETTINGS['siteurl']?>boards.php"><? print $MSG_5055; ?></a></td><td><div id="imgSep"><img src="<?=$SETTINGS['siteurl']?>images/transparent.gif" width="30" height="30" /></div></td> <? } ?> <? if (file_exists("./classifieds/index.php")) { ?> <td><a href="<?=$SETTINGS['siteurl']?>classifieds/index.php?"><?print $MSG_2_0001; ?></a></td><td><div id="imgSep"><img src="<?=$SETTINGS['siteurl']?>images/transparent.gif" width="30" height="30" /></div></td> <? } ?> <? if (file_exists("./reverse/index.php")) { ?> <td><a href="<?=$SETTINGS['siteurl']?>reverse/index.php?"><?print $MSG_2_0046; ?></a></td><td><div id="imgSep"><img src="<?=$SETTINGS['siteurl']?>images/transparent.gif" width="30" height="30" /></div></td> <? } ?> <? if($STORESENABLED == 'y') { ?> <td><a href="<?=$SETTINGS['siteurl']?>modules/stores/"><? print $MSG_30_0044; ?></a></td><td><div id="imgSep"><img src="<?=$SETTINGS['siteurl']?>images/transparent.gif" width="30" height="30" /></div></td> <? } ?> <td><a href="javascript: window_open('<?=$SETTINGS['siteurl']?>faqs.php','faqs',500,400,20,20)"> <? print $MSG_164; ?></a></td><td><div id="imgSep"><img src="<?=$SETTINGS['siteurl']?>images/transparent.gif" width="30" height="30" /></div></td> <? if($editstyle) { /* user is logged in, give link to edit data or log out */ ?> <td> <a href="<?=$SETTINGS['siteurl']?>editpagestyle.php?thepage=<?=rawurlencode(basename($_SERVER['PHP_SELF']))?>&thestyle=<?=rawurlencode(phpa_include("style.css"))?>"><strong>EDIT PAGE STYLE</strong></a></td> <? } ?> </tr></tbody></table></td> </tr> </table> <table width="100%" height="37" border="0" cellpadding="0" cellspacing="0" class="barSec"> <tr> <td width="50%"><form name="search" action="<?=$SETTINGS['siteurl']?>search.php" method="GET"> <div class="barSearch"> <input type="hidden" name="" /> <?=$MSG_103?> <input type="text" name="q" size=15 value="<?=htmlspecialchars($q);?>" /> <input type="submit" name="" value="<? print $MSG_275;?>" class=button /> <a href="<?=$SETTINGS['siteurl']?>adsearch.php"> <?=$MSG_464 ?> </a> </div> </form></td> <td width="50%"><form name="browse" action="<?=$SETTINGS['siteurl']?>browse.php" method="GET"> <div class="barBrowse"> <input type="hidden" name="" /> <? print $MSG_104; ?> <? include $include_path."categories_select_box.inc.php"; ?> <input type="submit" name="" value="<? print $MSG_275;?>" class=button /> </div> </form> </td> </tr></table> <table width="100%" border="0" cellpadding="0" cellspacing="2" class="counters"> <tr> <td align="right"> <? //-- Get users and auctions counters $COUNTERSTOSHOW = @mysql_fetch_array(@mysql_query("SELECT * FROM PHPAUCTIONXL_counterstoshow")); $query = "select * from PHPAUCTIONXL_counters"; $result_counters = mysql_query($query); $counters=""; if($result_counters) { if($COUNTERSTOSHOW['auctions'] == 'y') $counters .= "<B>".mysql_result($result_counters,0,"auctions")."</B> ".strtoupper($MSG_232); if($COUNTERSTOSHOW['users'] == 'y') $counters .= " "."<B>".mysql_result($result_counters,0,"users")."</B> ".strtoupper($MSG_231); print $counters; if($COUNTERSTOSHOW['online'] == 'y') include $prefix."online.php"; } ?> <? //-- Display current Date/Time print " ".ActualDate(); ?> </td> </tr> </table>and this is te script I want to insert on the banner place ,right up where /img/back_header.gif"> is .<script language="javascript">var uri = 'http://impnl.tradedoubler.com/imp/pool/js/115536/1183090?' + new String (Math.random()).substring (2, 11);document.write('<sc'+'ript language="JavaScript" src="'+uri+'" charset="ISO-8859-1"></sc'+'ript>');</script> Quote Link to comment https://forums.phpfreaks.com/topic/3552-insert-a-banner-script-help/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.