Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Kaip uzdeti ant headerio V7

Parašė gakse· 2009 Rugp. 1 01:08:55
#1

Sveiki kaip man indeti banneri ant headerio niekaip neiseina gal galit padet theme.php atrodo taip:

<?php
/*-------------------------------------------------------+
| Theme: Clark
| Author: Jure Sakelšek (include)
+--------------------------------------------------------+
|                http://phpfusion-si.com/
+--------------------------------------------------------*/
if (!defined("IN_FUSION")) { die("Access Denied"); }

define("THEME_WIDTH", "100%");
define("THEME_BULLET", "<img src='".THEME."images/bullet.gif' alt='' style='border:0' />");

require_once INCLUDES."theme_functions_include.php";

function render_page($license=false) {

   global $settings, $main_style;
   
   //Header
   echo "<table align='center' cellpadding='0' cellspacing='0' class='glava'>\n<tr>
<td align='center' width='20'>";
   echo "<tr>\n";
   echo "<td class='glava_zgoraj'></td>\n"; // cia banneris
   echo "</tr>\n";
   echo "<tr>\n";
   echo "<td colspan='2' class='glava_ozadje'></td>\n";
   echo "</tr>\n";
   echo "<tr>\n";
   echo "<td colspan='2'>\n";
   echo "<table cellpadding='0' cellspacing='0' class='menu'>\n";
   echo "<tr>\n";
   echo "<td class='menu_levo'></td>\n";
   echo "<td>\n";
   echo "<div id='navigacija'>\n";
   echo "<ul>\n";
   echo "<li>".showsublinks("","white")."</li>\n";
   echo "</ul>\n";
   echo "</div>\n";
   echo "</td>\n";
   echo "<td class='menu_desno'>&nbsp;</td>\n";
   echo "</tr>\n";
   echo "</table>\n";
   echo "</td>\n";
   echo "</tr>\n";
   echo "</table>\n";
   
   //Content
   echo "<table align='center' cellpadding='0' cellspacing='0' class='vsebina'>\n";
   echo "<tr>\n";
   if (LEFT) { echo "<td class='side-border-left' valign='top'>".LEFT."</td>"; }
   echo "<td class='main-bg' valign='top'>".U_CENTER.CONTENT.L_CENTER."</td>";
   if (RIGHT) { echo "<td class='side-border-right' valign='top'>".RIGHT."</td>"; }
   echo "</tr>\n";
   echo "</table>\n";
   
   //Footer
   echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
   echo "<td align='left' class='capmain'>Visos teises saugomos © GKS 2009</td>\n";
   echo "<td align='right' class='capmain'>".showcounter()."</td>\n";
   echo "<td class='capmain'></td>\n";
   echo "</tr>\n</table>\n";
   echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
   echo "<center><IFRAME SRC='http://spiriu.lt/work.php?n=298&amp;size=1&amp;c=' width=468 height=60 marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=0 scrolling='no'></IFRAME><IFRAME SRC='http://nesunku.lt/work.php?n=474&amp;size=3&amp;c=1' width=468 height=60 marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=0 scrolling='no'></IFRAME>";
   if (!$license) { echo "<br /><br />\n".showcopyright(); }
   echo "</td>\n";
   echo "</tr>\n</table>\n";
}

function render_news($subject, $news, $info) {

   echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
   echo "<td class='capmain'>".$subject."</td>\n";
   echo "</tr>\n<tr>\n";
   echo "<td class='main-body'>".$news."</td>\n";
   echo "</tr>\n<tr>\n";
   echo "<td align='center' class='news-footer'>\n";
   echo newsposter($info," &middot;").newsopts($info,"&middot;").itemoptions("N",$info['news_id']);
   echo "</td>\n</tr>\n</table>\n";

}

function render_article($subject, $article, $info) {
   
   echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
   echo "<td class='capmain'>".$subject."</td>\n";
   echo "</tr>\n<tr>\n";
   echo "<td class='main-body'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</td>\n";
   echo "</tr>\n<tr>\n";
   echo "<td align='center' class='news-footer'>\n";
   echo articleposter($info," &middot;").articleopts($info,"&middot;").itemoptions("A",$info['article_id']);
   echo "</td>\n</tr>\n</table>\n";

}

function opentable($title) {

   echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
   echo "<td class='capmain'>".$title."</td>\n";
   echo "</tr>\n<tr>\n";
   echo "<td class='main-body'>\n";

}

function closetable() {

   echo "</td>\n</tr>\n</table>\n";

}

function openside($title, $collapse = false, $state = "on") {
   
   global $panel_collapse; $panel_collapse = $collapse;
   
   echo "<table cellpadding='0' cellspacing='0' width='100%' class='border'>\n<tr>\n";
   echo "<td class='scapmain'>".$title."</td>\n";
   if ($collapse == true) {
      $boxname = str_replace(" ", "", $title);
      echo "<td class='scapmain' align='right'>".panelbutton($state,$boxname)."</td>\n";
   }
   echo "</tr>\n<tr>\n";
   echo "<td".($collapse == true ? " colspan='2'" : "")." class='side-body'>\n";   
   if ($collapse == true) { echo panelstate($state, $boxname); }

}

function closeside($collapse = false) {

   global $panel_collapse;

   if ($panel_collapse == true) { echo "</div>\n"; }   
   echo "</td>\n</tr>\n</table>\n";

}
?>




ir man reikia kad skaititu banerius is is sito failo rek.php jis atrodo taip:

<?
$text = array("<a href='http://www.ukm.gan.lt' target='_blank'><img src='http://www.gks.gan.lt/728x90.gif' border='0' alt=www.ukm.gan.lt Counter Strike portlas width='728' height='90' /></a>","<a href='http://www.ukm.gan.lt' target='_blank'><img src='http://www.gks.gan.lt/468.gif' border='0' alt=www.ukm.gan.lt Counter Strike portlas width='728' height='90' /></a>");
$cc = count($text) ;
$cl = $cc-1;
$rand = rand(0,$cl);
echo"$text[$rand]";
?>




Kaip man padaryt kad roditu tas atsitiktines reklamas gal galit yrasit reikiamai tenai su pavadinimu rek.php busiu labai dekingas.