Panel z reklamą obok strony
|
maszol19 |
Dodany dnia 06.08.2008 21:20:33
|
Przedszkolak
Postów: 27 Ostrzeżeń: 4
Data rejestracji: 02.07.2008 09:05
|
Witam. Mam następujący pytanie. Posiadam stronę Norwich24.info, i chciałbym na niej dodatkowy panel, wyglądało by to następująco : http://img55.imag...az1ib2.png Proszę o odp.
PW od moderatora:
- Zmiana nazwy tematu - Pieka 06.08 - 22:53
Edytowane przez Pieka dnia 06.08.2008 23:46:47
|
|
|
|
Wścibski Gość |
Dodany dnia 25.11.2024 03:08:42
|
Pan Kontekstualny
Postów: n^x
Data rejestracji: Zawsze
|
|
IP: localhost |
|
|
proton |
Dodany dnia 06.08.2008 21:36:43
|
Bywalec
Postów: 945 Pomógł: 22
Data rejestracji: 10.11.2005 18:29
|
Przeg główną tabelą musisz utowrzyć jeszcze jedną tabele i w niej dwie kolumny jedna na buttony i drugą na zawartość strony. A potem zamknąć tabele w render_footer.
Podaj tu zawartość render_header i render_footer z twojego theme.php to pomogę ci gdyby tobie się nie udawało.
Edytowane przez Pieka dnia 06.08.2008 23:47:01
|
|
|
|
maszol19 |
Dodany dnia 06.08.2008 23:44:23
|
Przedszkolak
Postów: 27 Ostrzeżeń: 4
Data rejestracji: 02.07.2008 09:05
|
function render_header($header_content) {
global $theme_width,$settings,$userdata,$locale;
echo "<table align='center' class='bodyline' width='$theme_width' cellspacing='0' cellpadding='0' border='0'>";
echo "<tr><td width='25' nowrap='nowrap' class='lefttd'></td><td>";
// Start banner code
echo "<table width='100%' border='0' cellspacing='0' cellpadding='0'><tr>";
echo "<td align='right'></td></tr></table>";
// End banner code
echo "<table width='100%' border='0' cellspacing='0' cellpadding='0'><tr>";
echo "<td class='sub-header'><table width='100%' border='0' cellpadding='2' cellspacing='0' style='background-image:url(".THEME."images/cellpic_nav1.swf);border:#0d9950 1px solid;'><tr>";
echo "<td height='77' class='sub-header'><table width='100%' height='238' background='".THEME."images/header.jpg'><tr><td style='border: 1px solid #0d9950' align='left' width='85%'></td><td align='left' valign='top'>";
include "".THEME."user_panel.php";
echo "</td></tr></table>";
include INCLUDES.("menu.js");
echo "<img src='".THEME."images/divider.gif'> <a href='../index.php' onClick='return clickreturnvalue()' onMouseover='dropdownmenu(this, event, menu1, 150)' onMouseout='delayhidemenu()'><font color='#FFFFFF'>Menu</a>
<img src='".THEME."images/divider.gif'> <a href='../news.php' onClick='return dropdownmenu(this, event, menu2, 200)' onMouseout='delayhidemenu()'><font color='#FFFFFF'>News Sites</font></a> <img src='".THEME."images/divider.gif'></td>\n";
echo "</tr></table></td></tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0' border='0' align='center'>";
echo "<tr><td></td></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='2' cellspacing='0' border='0'><tr>";
}
function render_footer($license=false) {
global $theme_width,$settings,$locale;
echo "</tr>\n</table>\n";
echo "<table cellpadding='2' cellspacing='0' width='$theme_width'><tr>";
echo "<td>".stripslashes($settings['footer'])."<br>";
echo "<table style='background: #0d9950; border: 1px solid ' cellSpacing='0' cellPadding='2' width='100%' border='0'>";
echo "<tr><td height='30' width='35%' class='footer' align='left'><div align='left'>";
if ($license == false) {
echo "Powered by <a target='_blank' href='http://www.php-fusion.co.uk'>PHP-Fusion</a>";
}
echo "</div></td>";
echo "<td class='footer' height='28' width='20%'align='center'>Desing: Demon | Code: <a href='http://www.lsfan.info'>Dan_0803</a></td>";
echo "<td class='footer' height='28' width='35%' align='right'>";
echo "<font class='visits'><b>".$settings['counter']." </b></font>".($settings['counter'] == 1 ? $locale['140']."\n" : $locale['141']."\n");
echo "</td></tr></table></td>";
echo "</tr></table></td></tr></table>";
echo "<td width='10' nowrap='nowrap' class='righttd'></td></table>";
Edytowane przez Pieka dnia 06.08.2008 23:47:10
|
|
|
|
proton |
Dodany dnia 06.08.2008 23:58:43
|
Bywalec
Postów: 945 Pomógł: 22
Data rejestracji: 10.11.2005 18:29
|
Na czerwono masz zaznaczone miejsce gdzie dajesz buttony.
function render_header($header_content) {
global $theme_width,$settings,$userdata,$locale;
echo "[b]<table cellspacing='0' cellpadding='0'><tr><td>[/b]";
[color=red][b]echo "kody buttonów";[/b][/color]
echo "[b]</td><td width='5'></td><td>[/b]";
echo "<table align='center' class='bodyline' width='$theme_width' cellspacing='0' cellpadding='0' border='0'>";
echo "<tr><td width='25' nowrap='nowrap' class='lefttd'></td><td>";
// Start banner code
echo "<table width='100%' border='0' cellspacing='0' cellpadding='0'><tr>";
echo "<td align='right'></td></tr></table>";
// End banner code
echo "<table width='100%' border='0' cellspacing='0' cellpadding='0'><tr>";
echo "<td class='sub-header'><table width='100%' border='0' cellpadding='2' cellspacing='0' style='background-image:url(".THEME."images/cellpic_nav1.swf);border:#0d9950 1px solid;'><tr>";
echo "<td height='77' class='sub-header'><table width='100%' height='238' background='".THEME."images/header.jpg'><tr><td style='border: 1px solid #0d9950' align='left' width='85%'></td><td align='left' valign='top'>";
include "".THEME."user_panel.php";
echo "</td></tr></table>";
include INCLUDES.("menu.js");
echo "<img src='".THEME."images/divider.gif'> <a href='../index.php' onClick='return clickreturnvalue()' onMouseover='dropdownmenu(this, event, menu1, 150)' onMouseout='delayhidemenu()'><font color='#FFFFFF'>Menu</a>
<img src='".THEME."images/divider.gif'> <a href='../news.php' onClick='return dropdownmenu(this, event, menu2, 200)' onMouseout='delayhidemenu()'><font color='#FFFFFF'>News Sites</font></a> <img src='".THEME."images/divider.gif'></td>\n";
echo "</tr></table></td></tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0' border='0' align='center'>";
echo "<tr><td></td></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='2' cellspacing='0' border='0'><tr>";
}
function render_footer($license=false) {
global $theme_width,$settings,$locale;
echo "</tr>\n</table>\n";
echo "<table cellpadding='2' cellspacing='0' width='$theme_width'><tr>";
echo "<td>".stripslashes($settings['footer'])."<br>";
echo "<table style='background: #0d9950; border: 1px solid ' cellSpacing='0' cellPadding='2' width='100%' border='0'>";
echo "<tr><td height='30' width='35%' class='footer' align='left'><div align='left'>";
if ($license == false) {
echo "Powered by <a target='_blank' href='http://www.php-fusion.co.uk'>PHP-Fusion</a>";
}
echo "</div></td>";
echo "<td class='footer' height='28' width='20%'align='center'>Desing: Demon | Code: <a href='http://www.lsfan.info'>Dan_0803</a></td>";
echo "<td class='footer' height='28' width='35%' align='right'>";
echo "<font class='visits'><b>".$settings['counter']." </b></font>".($settings['counter'] == 1 ? $locale['140']."\n" : $locale['141']."\n");
echo "</td></tr></table></td>";
echo "</tr></table></td></tr></table>";
echo "<td width='10' nowrap='nowrap' class='righttd'></td></table>[b]</td></tr></table>[/b]";
|
|
|
|
maszol19 |
Dodany dnia 07.08.2008 15:59:02
|
Przedszkolak
Postów: 27 Ostrzeżeń: 4
Data rejestracji: 02.07.2008 09:05
|
No niestety, nie wyskakują mi reklamy tak jak Ty kazales...
Juz wiem dlaczego mialem bledy, poniewaz tamten theme.php wzielem z innego szablonu, oto jest prawidlowy theme.php
<?
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
require_once INCLUDES."theme_functions_include.php";
// theme settings
$body_text = "#000000";
$body_bg = "#ffffff";
$theme_width = "846";
$theme_width_l = "160";
$theme_width_r = "160";
function render_header($header_content) {
global $theme_width;
echo "<table align=center class='mainsite-border' align='left' width='846' cellspacing='0' cellpadding='0'>
<tr><td class='outer-border'>
<table align='center' width='100%' cellspacing='0' cellpadding='0'>
<tr><td class='inner-border'>
<table align='center' width='100%' cellspacing='0' cellpadding='0'>
<tr align=left><td>";
include_once "header.php";
echo "</td></tr>
</table>\n";
echo "<table width='100%' cellspacing='0' cellpadding='0'>\n<tr>\n";
}
function render_footer($license=false) {
global $theme_width,$settings;
echo "</tr>\n</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td>";
include_once "foot.php";
echo "</td>
</tr>
</table>
</td>
</tr>
</table>\n";
}
function render_news($subject, $news, $info) {
echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='capmain'>$subject</td>
</tr>
<tr>
<td class='main-body'>
$news
</td>
</tr>
<tr>
<td align='right' class='news-footer'>\n";
echo openform("N",$info['news_id']).newsposter($info," ·").newsopts($info,"·").closeform("N",$info['news_id']);
echo "</td>
</tr>
</table>
</td>
</tr>
</table>\n";
}
function render_article($subject, $article, $info) {
echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='capmain'>$subject</td>
</tr>
<tr>
<td class='main-body'>
".($info['article_breaks'] == "y" ? nl2br($article) : $article)."
</td>
</tr>
<tr>
<td class='news-footer'>\n";
echo openform("A",$info['article_id']).articleposter($info," ·").articleopts($info,"·").closeform("A",$info['article_id']);
echo "</td>
</tr>
</table>
</td>
</tr>
</table>\n";
}
function opentable($title) {
echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='capmain'>$title</td>
</tr>
<tr>
<td class='main-body'>\n";
}
function closetable() {
echo "</td>
</tr>
</table>
</td>
</tr>
</table>\n";
}
function openside($title) {
echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td>
<table cellspacing=0 celpadding=0 border=0>
<tr>
<td height=31 width=160 class='scapmain' align=center>$title</td>
</tr>
</table>
</tr>
<tr>
<td class='side-body'>\n";
}
function closeside() {
echo "</td>
</tr>
</table>
</td>
</tr>
</table>\n";
tablebreak();
}
function opensidex($title,$state="on") {
$boxname = str_replace(" ", "", $title);
echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='scapmain'>$title</td>
<td class='scapmain' align='right'>".panelbutton($state,$boxname)."</td>
</tr>
<tr>
<td colspan='2' class='side-body'>
<div id='box_$boxname'".($state=="off"?" style='display:none'":"").">\n";
}
function closesidex() {
echo "</div>
</td>
</tr>
</table>
</td>
</tr>
</table>\n";
tablebreak();
}
function tablebreak() {
echo "<table width='100%' cellspacing='0' cellpadding='0'>
<tr><td height='10'></td></tr>
</table>\n";
}
?>
Edytowane przez maszol19 dnia 07.08.2008 17:39:10
|
|
|