Otrzymałem kod banera i chciałbym aby był wyswietlany tak jak na tej stronie u góry z prawj strony. Wiem iż trzeba w pliku theme ale nie wiem gdzie dokładnie.
Kod bannera:
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="486" height="60" id="max24" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="http://www.max24.pl/sklep/bannery/ppmax24_2_486_60.swf?max_id=Postman" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<embed src="http://www.max24.pl/sklep/bannery/ppmax24_2_486_60.swf" quality="high" name="ppmax24?max_id=Postman" bgcolor="#ffffff" width="486" height="60" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
Theme to Lykun:
<?
// theme settings
$body_text = "#D7DCE9";
$body_bg = "#010102";
$theme_width = "100%";
$theme_width_l = "175";
$theme_width_r = "175";
function render_header($header_content) {
global $theme_width,$settings;
echo "<body background='".THEME."images/bkg.gif'>";
echo "<table border='0' align='center' width='950' cellspacing='1' cellpadding='0' bgcolor='#1A3858'>";
echo "<tr><td width='100%' height='87' bgcolor='#003151'>";
echo "<table border='0' width='100%' cellspacing='0' cellpadding='0'>";
echo "<tr>";
echo "<td height='22' align='right' background='".THEME."images/top_bar_back.gif'>";
echo "<font class='clock'>".ucwords(showdate($settings['subheaderdate'], time()))."</font></td>";
echo "</tr></table>";
echo "<table border='0' cellpadding='0' cellspacing='0' width='950'>";
echo "<tr><td width='100%'>";
echo "<table border='0' cellpadding='0' cellspacing='0' width='950'>";
echo "<tr><td width='100%' height='87' bgcolor='#7D746B'>";
echo "<table border=0 width=100% cellpadding=0 cellspacing=0><tr><td align='left'><a href='".BASEDIR."index.php'><img border='0' src='".THEME."images/logo.jpg' width='950' height='87' hspace='0' title='".$settings[sitename]."'></a></td><td align='right'>";
echo "</td></tr></table></td></tr></table></td></tr></table>";
echo "<table cellSpacing='0' cellPadding='0' width='100%' border='0'>";
echo "<tr><td align='left' width='1%' background='".THEME."images/navbar.gif'>";
echo "<img height='41' src='".THEME."images/spacer.gif' width='1'></td>";
echo "<td width='100%' background='".THEME."images/navbar.gif'>";
echo "<table cellSpacing='0' cellPadding='0' width='100%' border='0'>";
echo "<tr><td align='left' width='75%'>";
echo "<table cellSpacing='0' cellPadding='0' width='100%' border='0'><tr>";
$result = dbquery("SELECT * FROM ".DB_PREFIX."site_links WHERE link_position>='2' ORDER BY link_order");
if (dbrows($result) != 0) {
echo "<td>";
$i = 0;
while($data = dbarray($result)) {
if (checkgroup($data['link_visibility'])) {
if ($data['link_url']!="---") {
if ($i != 0) { echo " <img border='0' src='".THEME."images/divider.gif'>\n"; } else { echo "\n"; }
$link_target = ($data['link_window'] == "1" ? " target='_blank'" : "");
if (strstr($data['link_url'], "http://") || strstr($data['link_url'], "https://")) {
echo "<a href='".$data['link_url']."'".$link_target." class='white'>".$data['link_name']."</a>";
} else {
echo "<a href='".BASEDIR.$data['link_url']."'".$link_target." class='white'>".$data['link_name']."</a>";
}
}
$i++;
}
}
}
echo ($i == 0 ? " " : "")."</td>\n";
echo "</tr></table></td><td align='right' width='45%'> </td>";
echo "</tr></table></td></tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0' border='0' align='center'>";
echo "</tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0' border='0' align='center'>";
echo "<tr valign='top'>";
echo "<td valign='middle' align='right'>";
echo "<table width='100%' cellpadding='4' bgcolor='#003151' cellspacing='0' border='0'>";
}
function render_footer($license=false) {
global $theme_width,$settings,$locale;
echo "</tr>\n</table>\n";
echo "<table border='0' cellpadding='0' cellspacing='0' width='100%'><tr>";
echo "<td align='center'>".stripslashes($settings['footer'])."</td></tr></table>";
echo "<table border='0' cellpadding='0' cellspacing='0' width='100%'>";
echo "<td class='footer' valign='middle' width='39%'><div align='left'>Powered by <a href='http://www.php-fusion.co.uk' target='_blank'><img src='".THEME."images/fusion.gif' alt='PHP-Fusion' title='PHP-Fusion' border='0' style='vertical-align:middle;'></a> v".$settings['version']." © 2003-2005</div></td>";
echo "<td class='footer' align='middle' width='39%'><div align='left'>";
echo "Lykun Theme Design by: <a target='_blank' href='http://phpfusion.org'><img src='".THEME."images/fthemes.gif' style='vertical-align:top;'></a></td></div>";
echo "<td class='footer' width='22%'><div align='right'>".$settings['counter']." ".($settings['counter'] == 1 ? $locale['140']."\n" : $locale['141']."\n");
echo "</td></div></tr></table></center></table></table></table>\n";
}
function render_news($subject, $news, $info) {
global $locale;
echo "<table border='0' style='border: 1px solid #3B5981' cellpadding='0' cellspacing='0' width='100%'><tr><td>";
echo "<table border='0' cellpadding='0' cellspacing='1' width='100%'><tr><td bgcolor='#173A50'>";
echo "<table border='0' cellpadding='0' cellspacing='0' width='100%'><tr>";
echo "<td background='".THEME."images/header_news.gif' width='100%' height='24'><img src='".THEME."images/bullet_l.gif' hspace='2'>";
echo "<font class='storytitle'><b>$subject</b></font></td></tr>";
echo "<tr><td colspan='2'>";
echo "<table border='0' width='100%' cellpadding='0' cellspacing='0' align='center'>";
echo "<tr><td class='main-body'>$news</td></tr></table></td></tr></table></td></tr>";
echo "<tr><td class='news-footer' bgcolor='#0D2C3F' align='left'> ";
echo "".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a> ";
echo "".$locale['041'].showdate("longdate", $info['news_date'])." ";
echo "<br><center><img src='".THEME."images/line_break.gif' width='98%' height='1' vspace='4'></center> <font class='content'>";
echo "".($info['news_ext'] == "y" ? "<a href='news.php?readmore=".$info['news_id']."'>".$locale['042']."</a> ·\n" : "")."";
if ($info['news_allow_comments']) echo "<a href='news.php?readmore=".$info['news_id']."'>".$info['news_comments'].$locale['043']."</a> ·\n";
echo "".$info['news_reads'].$locale['044']." ";
echo "<a href='print.php?type=N&item_id=".$info['news_id']."'><img src='".THEME."images/printer.gif' alt='".$locale['045']."' border='0' style='vertical-align:middle;'></a>";
echo "</td></tr></table></td></tr><tr><td></tr></td></tr></table>";
}
function render_article($subject, $article, $info) {
global $locale;
echo "<table border='0' style='border: 1px solid #3B5981' cellpadding='0' cellspacing='0' width='100%'><tr><td>";
echo "<table border='0' cellpadding='0' cellspacing='1' width='100%'><tr><td bgcolor='#173A50'>";
echo "<table border='0' cellpadding='0' cellspacing='0' width='100%'><tr>";
echo "<td background='".THEME."images/header_news.gif' width='100%' height='24'><img src='".THEME."images/bullet_l.gif' hspace='2'>";
echo "<font class='storytitle'><b>$subject</b></font></td></tr>";
echo "<tr><td colspan='2'>";
echo "<table border='0' width='100%' cellpadding='0' cellspacing='0' align='center'>";
echo "<tr><td class='main-body'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</td></tr></table></td></tr></table></td></tr>";
echo "<tr><td class='news-footer' bgcolor='#0D2C3F' align='left'> ";
echo "".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a> ";
echo "".$locale['041'].showdate("longdate", $info['article_date'])." ";
echo "<br><center><img src='".THEME."images/line_break.gif' width='98%' height='1' vspace='4'></center> <font class='content'>";
if ($info['article_allow_comments']) echo $info['article_comments'].$locale['043']." ·\n";
echo "".$info['article_reads'].$locale['044']." ";
echo "<a href='print.php?type=A&item_id=".$info['article_id']."'><img src='".THEME."images/printer.gif' alt='".$locale['045']."' border='0' style='vertical-align:middle;'></a>";
echo "</td></tr></table></td></tr><tr><td></tr></td></tr></table>";
}
//Game online
function render_game($subject, $game, $info) {
global $locale;
include LOCALE.LOCALESET."games.php";
echo "<div align='center'><table cellpadding='0' cellspacing='0' style='border-collapse: collapse; background-color:#;' width='100%' class='border'>
<tr>
<td class='side-caption'>$subject</td>
</tr>
<td width='637'><span style='color: #fff; font-weight: bolder; font-size: 12px;'></span> <span style='color: #6d9501; font-size: 12px; font-weight: bolder;'></span><br><br>
<div align='center'>
<OBJECT classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0' WIDTH='550' HEIGHT='400' id='grgame' name='grgame'>
<PARAM NAME=movie VALUE='$game'>
<param name='menu' value='false'>
<param name='quality' value='high'>
<param name='FlashVars' value='gcode=482CD697'>
<embed src='$game' flashvars='gcode=482CD697' menu=false quality=high WIDTH='550' HEIGHT='400' TYPE='application/x-shockwave-flash' PLUGINSPAGE='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash' id='grgame' name='grgame'></embed>
</object>
</div><br><br>
<div align='center' style='font-size: 14px;'><a href='javascript:history.go(-1)' title='Wstecz'><img src='".IMAGES."up/powrot.gif' border='0' height='35' alt='Powrót'></a></div></td>
</tr>
<td align='right' class='infobar'>\n";
if ($info['game_allow_comments']) echo $info['game_comments'].$locale['043']." ·\n";
echo "".$locale['407']." ".$info['game_reads']." ".$locale['406']."
</td>
</table></div>";
}
// end Game online
// Open table begins
function opentable($title) {
echo "<table border='0' style='border: 1px solid #3B5981' cellpadding='0' cellspacing='0' width='100%'><tr><td>";
echo "<td class='capmain' width='100%'>$title</td></tr>";
echo "<tr><td colspan='2'>";
echo "<table border='0' width='100%' cellpadding='0' cellspacing='0' align='center'><tr><td class='main-body'>\n";
}
// Close table end
function closetable() {
echo "</td></tr></table></td></tr></table>";
}
function openside($title) {
echo "<table border='0' style='border: 0px solid #383A3B' width='100%' background='".THEME."images/header.gif' height=24>";
echo "<tr><td width='7'><img src='".THEME."images/bullet_l.gif'></td>";
echo "<td valign=center><font class='boxtitle'>$title</font>";
echo "<td valign='top'><img align='right' src='".THEME."images/bullet_r.gif'>";
echo "</td></tr></td></tr></table>";
echo "<table border='0' cellpadding='0' cellspacing='0' width='100%'>";
echo "<tr><td width='100%' bgcolor='#3B5981'>";
echo "<table border='0' cellpadding='3' cellspacing='1' width='100%'>";
echo "<tr><td class='' width='100%' background='".THEME."images/back1.gif' bgcolor='#455B6C'>";
}
function closeside() {
echo "</td></tr></table></td></tr>";
echo "<td valign=top></td> <img src='".THEME."images/pixel.gif' width='100%' height='2'>";
echo "</td></tr></table>\n";
tablebreak();
}
function opensidex($title,$open="on") {
if($open=="on"){$box_img="off";}else{$box_img="on";}
echo "<table border='0' style='border: 0px solid #383A3B' width='100%' background='".THEME."images/header.gif' height=24>";
echo "<tr><td width='7'><img src='".THEME."images/bullet_l.gif'></td>";
echo "<td valign=center><font class='boxtitle'>$title</font></td>";
echo "<td valign='top'><img align='right' style='cursor:hand' onclick=\"javascript:flipBox('$title')\" name='b_$title' border='0' src='".THEME."images/panel_$box_img.gif'>";
echo "</td></tr></td></tr></table>";
echo "<table border='0' cellpadding='0' cellspacing='0' width='100%'>";
echo "<tr><td width='100%' bgcolor='#3B5981'>";
echo "<table border='0' cellpadding='3' cellspacing='1' width='100%'>";
echo "<tr><td class='' width='100%' background='".THEME."images/back1.gif' bgcolor='#455B6C'>";
echo "<div id='box_$title'"; if($open=="off"){ echo "style='display:none'"; } echo ">\n";
}
function closesidex() {
echo "</td></tr></table></td></tr>";
echo "<td valign=top></td> <img src='".THEME."images/pixel.gif' width='100%' height='2'>";
echo "</td></tr></table>\n";
tablebreak();
}
// Table functions
function tablebreak() {
echo "<table width='100%' cellspacing='0' cellpadding='0'><tr><td height='8'>";
echo "</td></tr></table>\n";
}
?>
|