Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: banner system

Parašė -· 2008 Gru. 19 16:12:15
#1

Tai va naudoju banner system panele is modu saito ir noriu kad reklama butu headeryje kai dedu i sub header headeris dublikuojasi o jei bandau kad nesidublikuotu meta eror jei galit padarykit

va subheader.php failas:
<?php
/*---------------------------------------------------+
| PHP-Fusion 6 Content Management System
+----------------------------------------------------+
| Copyright © 2002 - 2006 Nick Jones
| http://www.php-fusion.co.uk/
+----------------------------------------------------+
| Released under the terms & conditions of v2 of the
| GNU General Public License. For details refer to
| the included gpl.txt file or visit http://gnu.org
+----------------------------------------------------*/
if (!defined("IN_FUSION")) { header("Location: index.php"); exit; }

require_once THEME."theme.php";

if ($settings['maintenance'] == "1" && !iADMIN) fallback(BASEDIR."maintenance.php");
if (iMEMBER) $result = dbquery("UPDATE ".$db_prefix."users SET user_lastvisit='".time()."', user_ip='".USER_IP."' WHERE user_id='".$userdata['user_id']."'");

echo "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">
<html>
<head>
<title>".$settings['sitename']."</title>
<meta http-equiv='Content-Type' content='text/html; charset=".$locale['charset']."'>
<meta name='description' content='".$settings['description']."'>
<meta name='keywords' content='".$settings['keywords']."'>
<link rel='stylesheet' href='".THEME."styles.css' type='text/css'>
<script type='text/javascript' src='".INCLUDES."jscript.js'></script>
</head>
<body bgcolor='$body_bg' text='$body_text'>\n";

render_header("<img src='".BASEDIR.$settings['sitebanner']."' alt='".$settings['sitename']."' title='".$settings['sitename']."'>");
?>




Va kodas kuri reik iterpt

//code start

//start banner replacement code
if (file_exists(INFUSIONS."banner_panel/view.php"))
{
   include INFUSIONS."banner_panel/view.php";
}
else
{
$banner_display = '';
}
$input = '<table width="100%" cellpadding="0" cellspacing="0">
<tr>
   <td><img src="'.THEME.$settings['sitebanner'].'" alt="'.$settings['sitename'].'" title="'.$settings['sitename'].'"></td>
   <td align="right">'.$banner_display.'</td>
</tr>
</table>';
//end banner replacement code


//replacement
render_header($input);
//commented original code
//render_header("<img src='".THEME.$settings['sitebanner']."' alt='".$settings['sitename']."' title='".$settings['sitename']."'>");

//code end



Redagavo -· 2008 Gru. 19 17:12:24

Parašė TaduXxX· 2008 Gru. 19 17:12:53
#2

reikia det i theme.php :D

Parašė -· 2008 Gru. 19 17:12:56
#3

abejojiu nes raso kad i subheaderi