Witam
Problem dotyczy strony:www.nidzica.org
Chce umiescic kod rotatora master_ads_panel obok ikon menu.
U gory sa ikony menu: strona glowna , galeria, ogloszenia, forum.
Chce umiescic kod rotatora master_ads_panel aby sie wyswietlal po ich prawej stronie, miedzy nimi a "szukaj"
Oto kod mojego theme.php
<?
/*--------------------------------------------+
| PHP-Fusion v6 - Content Management System |
|---------------------------------------------|
| author: Nick Jones (Digitanium) © 2002-2005 |
| web: http://www.php-fusion.co.uk |
| email: |
|---------------------------------------------|
| Released under the terms and conditions of |
| the GNU General Public License (Version 2) |
+--------------------------------------------*/
/*--------------------------------------------+
| Classica Theme for PHP-Fusion v6.x |
|---------------------------------------------|
| author: PHP-Fusion Themes © 2005 |
| web: http://phpfusion.org |
| email: |
|---------------------------------------------|
| Released under the terms and conditions of |
| the GNU General Public License (Version 2) |
+--------------------------------------------*/
// theme settings
$body_text = "#555555";
$body_bg = "#F2F2F2";
$theme_width = "100%";
$theme_width_l = "175";
$theme_width_r = "175";
function render_header($header_content) {
global $theme_width,$settings;
echo "<table align='center' cellspacing='0' cellpadding='0' width='$theme_width' class='body-border'>";
echo "<tr><td><table cellpadding='0' cellspacing='0' width='100%'><tr>";
echo "<td><table cellpadding='0' cellspacing='0' width='100%'><tr><td>";
echo "<table width='100%' height='100%'><tr><td background='".THEME."images/logo.jpg' width='1000' height='170'></td></tr> </table>";
echo "<table style='WIDTH: 100%' cellSpacing='0' cellPadding='0' border='0'><tr>";
echo "<td class='subheader'><table><tr>
<td width='80'><center><a href='/news.php'><img src='".THEME."images/start.gif' border=0><p></p>Strona Główna</a></center></td>
<td width='80'><center><a href='/photogallery.php'><img src='".THEME."images/galeria.gif' border=0><p></p>Galeria</a></center></td>
<td width='80'><center><a href='/forum/viewforum.php?forum_id=20'><img src='".THEME."images/ogloszenia.gif' border=0><p></p>Ogłoszenia</a></center></td>
<td width='80'><center><a href='/forum/'><img src='".THEME."images/forum.gif' border=0><p></p>Forum</a></center></td></tr></table>[color=red]Moim zdaniem tu powinien byc kod[/color]</td>";
echo "<td class='subheader' vAlign='center' align='right'>";
echo "<form name='search' action='".BASEDIR."search.php?stype=f' method='post'>";
echo "<table cellSpacing='0' width='100%' cellPadding='0' border='0'><tr>";
echo "<td align='right'><b>Search</b> ";
echo "<input type='text' class='input' name='stext' value='Search Forums' onBlur=\"if(this.value=='') this.value='Search Forums';\" onFocus=\"if(this.value=='Search Forums') this.value='';\">";
echo " <input name='option' class='submit' type='submit' value='Search'>";
echo "</td></tr></table></form>";
echo "</td></tr></table></div>";
echo "</td></tr></table>";
echo "</td></tr></table>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
}
function render_footer($license=false) {
global $theme_width,$settings,$locale;
echo "</tr>\n</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%'><tr>";
echo "<td align='center' class='footer'>".stripslashes($settings['footer'])."<br />\n";
if ($license == false) {
echo " \n";
}
echo number_format($settings['counter'])." ".($settings['counter'] == 1 ? $locale['140']."<br>\n" : $locale['141']."<br>\n")."";
echo "</td></tr></table></td></tr></table>\n";
}
function render_news($subject, $news, $info) {
global $locale;
echo "<table style='WIDTH: 100%;' cellSpacing='0' cellPadding='2' border='0'><tr>";
echo "<td class='tableHeadingBG'><div class='tableHeading'>$subject</div></td></tr>";
echo "<tr><td class='td-cell1' style='WIDTH: 100%' vAlign='top'>$news</td></tr>";
echo "<tr><td class='td-cell2' align='center' style='WIDTH: 100%'>";
echo "<table cellSpacing='0' cellPadding='0' border='0'><tr>";
echo "<td><img src='".THEME."images/bullet.gif'> ".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a>";
echo " ".$locale['041'].showdate("longdate", $info['news_date'])." · ".($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 align='right' src='".THEME."images/printer.gif' alt='".$locale['045']."' style='vertical-align:middle;border:0px;'></a>";
echo "</td></tr></table></td></tr></table>\n";
}
function render_article($subject, $article, $info) {
global $locale;
echo "<table style='WIDTH: 100%;' cellSpacing='0' cellPadding='2' border='0'><tr>";
echo "<td class='tableHeadingBG'><div class='tableHeading'>$subject</div></td></tr>";
echo "<tr><td class='td-cell1' style='WIDTH: 100%' vAlign='top'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</td></tr>";
echo "<tr><td class='td-cell2' align='center' style='WIDTH: 100%'>";
echo "<table cellSpacing='0' cellPadding='0' border='0'><tr>";
echo "<td><img src='".THEME."images/bullet.gif'> ".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a>";
echo " ".$locale['041'].showdate("longdate", $info['article_date'])." ·\n";
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']."' style='vertical-align:middle;border:0px;'></a>";
echo "</td></tr></table></td></tr></table>\n";
}
function opentable($title) {
echo "<table class='tborder' cellSpacing='1' cellPadding='4' width='100%' align='center' border='0'>";
echo "<tr><td class='table-cat' colSpan='0'>";
echo "<span class='smallfont'><strong>$title</strong></span></td></tr>";
echo "<tr><td class='side-body'>";
}
function closetable() {
echo "</td></tr></table>";
}
function openside($title) {
echo "<table class='tborder' cellSpacing='1' cellPadding='4' width='100%' align='center' border='0'>";
echo "<tr><td class='table-cat' colSpan='0'><img src='".THEME."images/panpic.gif' vspace='1'> ";
echo "<span class='smallfont'><strong>$title</strong></span></td></tr>";
echo "<tr><td class='side-body'>";
}
function closeside() {
echo "</td></tr></table>";
tablebreak();
}
function opensidex($title,$open="on") {
$boxname = str_replace(" ", "", $title);
$box_img = $open == "on" ? "off" : "on";
echo "<table class='tborder' cellSpacing='1' cellPadding='4' width='100%' align='center' border='0'>";
echo "<tr><td class='table-cat' colSpan='0'>";
echo "<span class='smallfont'><img align='right' src='".THEME."images/panel_$box_img.gif' name='b_$boxname' alt='' onclick=\"javascript:flipBox('$boxname')\"><img align='left' src='".THEME."images/panpic.gif' vspace='1'> <strong>$title</strong></span>";
echo "</td></tr>";
echo "<tr><td class='side-body'>";
echo "<div id='box_$boxname'".($open=="off"?" style='display:none'":"").">\n";
}
function closesidex() {
echo "</div></td></tr></table>\n";
tablebreak();
}
function tablebreak() {
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n";
echo "<tr>\n<td height='5'></td>\n</tr>\n</table>\n";
}
?>
Ale nie wiem jak wstawic:
include(INFUSIONS.'master_ads_panel/master_ads.php')";
Jak wstawie to pod global $theme_width,$settings;
to chodzi tak jak powinno, ale nie chce miec rotatora na samej gorze.
Prosze powiedziec jak wstawic ten kod do tabeli bo albo mi sie wyswietla tekst kodu albo wywala blad. Probowalem juz chyba wszystkiego a ze dobrze nie znam sie na PHP woec pewnie robie cos zle :/
Z gory dzieki
"(...) i oczywiście guzik dla biedaków, bo tym będą zawsze tak dokopywać, że w dniu, kiedy g...no nabierze wartości, biedacy urodzą się bez d..y."
|