Jaunelis
Narys
Antras po Dievo
Pranešimai: 4735
Įstojęs: 2007 Rugs. 23 08:09:32
Sveiki,taigi darau theme ir man reikia Jūsų pagalbos... Ką aš blogai darau taip ir nesuprantu man reikia kad atrodytu taip:
Bet atrodo viską padarius taip:
O štai theme.php
<?php
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
/*--------------------------------------------+
| PHP -Fusion v6 - Content Management System |
|---------------------------------------------|
| author: Qrmiz © 2007-2008 |
| web: http://www.php-fusion.co.uk |
| email: Qrmiz@mail.lt |
+--------------------------------------------*/
define('IN_LED', true);
require_once(INCLUDES.'theme_functions_include.php');
require_once(THEME.'theme_config.php');
function render_header() {
global $theme_width, $rtNavbar, $rtHeader, $settings;
if ((isset($rtHeader['logo_url'])) && (!empty($rtHeader['logo_url'])))
$url = $rtHeader['logo_url'];
else
$url = false;
if ((isset($rtHeader['logo_url_title'])) && (!empty($rtHeader['logo_url_title'])))
$title = $rtHeader['logo_url_title'];
else
$title = false;
echo "\n"
."<table align='center' border='0' cellpadding='0' cellspacing='0' width='900'>\n"
."<tr><td class='pageRight'></td><td width='100%' class='pageRight' valign='top'>\n"
."<tr><td class='pageLeft'></td><td width='100%' class='pageLeft' valign='news'>\n"
."<table border='0' cellpadding='0' cellspacing='0' id='header' width='900'><tr>\n"
."<td class='logo' height='100' valign='top' width='900'>"
.($url ? "<a href='$url' onmousedown='return false;'".($title ? " title='".$title."'" : "").">" : "")
."<img".($title ? " alt='".$title."'" : " alt=''")." border='0' src='".THEME."images/top_01.jpg'".($title ? " title='".$title."'" : "").">"
.($url ? "</a>" : "")
.((isset($rtHeader['slogan']) && !empty($rtHeader['slogan'])) ? "<br><span class='slogan'>".$rtHeader['slogan']."</span>" : "")."</td>\n";
echo "<td><a href='".BASEDIR."http://l2tops.xz.lt'><img src='".THEME."images/top_02.gif'></a><br><a href='forum/index.php'><img src='".THEME."images/top_03.gif'></a><br><a href='".BASEDIR."viewpage.php?page_id=1'><img src='".THEME."images/top_04.gif'></a></td>\n";
echo "<td><a href='".BASEDIR."news.php<img src='".THEME."images/news_02.gif'></a><br><a href='viewpage.php?page_id=17><img src='".THEME."images/news_03.gif'></a><br><a href='".BASEDIR."viewpage.php?page_id=20<img src='".THEME."images/news_04.gif'></a></td>\n";
echo "</tr></table>\n";
echo "<table border='0' cellpadding='0' cellspacing='0' width='100%'><tr>\n";
}
function render_footer($license=false) {
global $theme_width,$locale,$settings;
echo "</tr>\n</table>\n";
echo "<table cellSpacing='0' cellPadding='2' width='100%' border='0' bgcolor='#144778'' style='padding-left: 50px;'><tr><td height='20' class='white' align='center'><b>Dizainas pagal: <a href='http://'>Qrmi</a></b></td></tr></table>";
}
function render_news($subject, $news, $info) {
global $locale;
opentable($subject);
echo $locale['040'].newsposter($info)."\n"
."<br>\n<hr>\n<br>\n".$news."<br><br>\n<hr>\n"
.openform("N",$info['news_id']).newsopts($info," ·").closeform("N",$info['news_id'])."\n";
closetable();
}
function render_article($subject, $article, $info) {
global $locale;
opentable($subject);
echo $locale['040'].articleposter($info)."\n"
."<br>\n<hr>\n<br>\n".$article."<br><br>\n<hr>\n"
.openform("A",$info['article_id']).articleopts($info," ·").closeform("A",$info['article_id'])."\n";
closetable();
}
function opentable($title) {
echo "<table border='0' cellpadding='0' cellspacing='0' class='centerTitle' width='100%'><tr><td class='centerTitleOverlay' height='20' width='100%' valign='top'>".$title."</td></tr></table>\n";
echo "<table border='0' cellpadding='0' cellspacing='0' width='100%'><tr><td class='centerContent' width='100%'>\n";
}
function closetable() {
echo "</td></tr></table>\n";
tablebreak();
}
function openside($title) {
echo "<table border='0' cellpadding='0' cellspacing='0' class='sideTitle' width='100%'><tr><td class='sideTitleOverlay' height='30' width='100%' valign='top'>".$title."</td></tr></table>\n";
echo "<table border='0' cellpadding='0' cellspacing='0' width='100%'><tr><td class='sideContent' width='100%'>\n";
}
function closeside() {
echo "</td></tr></table>\n";
sidebreak();
}
$boxcounter = 1;
function opensidex($title,$open="on") {
global $boxcounter;
$boxname = "expbox".$boxcounter;
$boxcounter++;
$box_img = ($open=="on" ? "off" : "on");
echo "<table border='0' cellpadding='0' cellspacing='0' class='sideTitle' width='100%'><tr>"
."<td class='sideTitleOverlay' height='30' width='100%' valign='top'>".$title."</td>"
."<td nowrap='nowrap'><img onclick=\"javascript:flipBox('$boxname')\" name='b_$boxname' alt='$box_img' src='".THEME."images/panel_$box_img.gif'></td>"
."</tr></table>\n";
echo "<table border='0' cellpadding='0' cellspacing='0' width='100%'><tr><td class='sideContent' width='100%'><div id='box_$boxname'".($open=="off" ? "style='display:none'" : "").">\n";
}
function closesidex() {
echo "</div></td></tr></table>\n";
sidebreak();
}
function tablebreak() {
echo "<table cellpadding='0' cellspacing='0'><tr><td height='10'></td></tr></table>\n";
}
function sidebreak() {
global $theme_panels_width;
echo "<img alt='spacer' height='10' src='".THEME."images/spacer.gif' width='".$theme_panels_width."'>\n";
}
?>
P.S.Nežiūrėkit į tu buttonu dydi viską sumažinsiu kai bus ši problema sutvarkyta.Laukiu pagalbos iš anksto dėkui... code and design solutions tinklalapių kūrimas
Jaunelis
Narys
Antras po Dievo
Pranešimai: 4735
Įstojęs: 2007 Rugs. 23 08:09:32
Niekas nepades code and design solutions tinklalapių kūrimas
Toonis
VIP narys
Viršesnis už Dievą
Pranešimai: 5741
Įstojęs: 2006 Spa. 17 14:10:03
<?php
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
/*--------------------------------------------+
| PHP -Fusion v6 - Content Management System |
|---------------------------------------------|
| author: Qrmiz © 2007-2008 |
| web: http://www.php-fusion.co.uk |
| email: Qrmiz@mail.lt |
+--------------------------------------------*/
define('IN_LED', true);
require_once(INCLUDES.'theme_functions_include.php');
require_once(THEME.'theme_config.php');
function render_header() {
global $theme_width, $rtNavbar, $rtHeader, $settings;
if ((isset($rtHeader['logo_url'])) && (!empty($rtHeader['logo_url'])))
$url = $rtHeader['logo_url'];
else
$url = false;
if ((isset($rtHeader['logo_url_title'])) && (!empty($rtHeader['logo_url_title'])))
$title = $rtHeader['logo_url_title'];
else
$title = false;
echo "\n"
."<table align='center' border='0' cellpadding='0' cellspacing='0' width='900'>\n"
."<tr><td class='pageRight'></td><td width='100%' class='pageRight' valign='top'>\n"
."<tr><td class='pageLeft'></td><td width='100%' class='pageLeft' valign='news'>\n"
."<table border='0' cellpadding='0' cellspacing='0' id='header' width='900'><tr>\n"
."<td class='logo' height='100' valign='top' width='900'>"
.($url ? "<a href='$url' onmousedown='return false;'".($title ? " title='".$title."'" : "").">" : "")
."<img".($title ? " alt='".$title."'" : " alt=''")." border='0' src='".THEME."images/top_01.jpg'".($title ? " title='".$title."'" : "").">"
.($url ? "</a>" : "")
.((isset($rtHeader['slogan']) && !empty($rtHeader['slogan'])) ? "<br><span class='slogan'>".$rtHeader['slogan']."</span>" : "")."</td>\n";
echo "<td><a href='".BASEDIR."http://l2tops.xz.lt'><img src='".THEME."images/top_02.gif'></a><br><a href='forum/index.php'><img src='".THEME."images/top_03.gif'></a><br><a href='".BASEDIR."viewpage.php?page_id=1'><img src='".THEME."images/top_04.gif'></a></td>\n";
echo "<td align='left'><a href='".BASEDIR."news.php<img src='".THEME."images/news_02.gif'></a><br><a href='viewpage.php?page_id=17><img src='".THEME."images/news_03.gif'></a><br><a href='".BASEDIR."viewpage.php?page_id=20<img src='".THEME."images/news_04.gif'></a></td>\n";
echo "</tr></table>\n";
echo "<table border='0' cellpadding='0' cellspacing='0' width='100%'><tr>\n";
}
function render_footer($license=false) {
global $theme_width,$locale,$settings;
echo "</tr>\n</table>\n";
echo "<table cellSpacing='0' cellPadding='2' width='100%' border='0' bgcolor='#144778'' style='padding-left: 50px;'><tr><td height='20' class='white' align='center'><b>Dizainas pagal: <a href='http://'>Qrmi</a></b></td></tr></table>";
}
function render_news($subject, $news, $info) {
global $locale;
opentable($subject);
echo $locale['040'].newsposter($info)."\n"
."<br>\n<hr>\n<br>\n".$news."<br><br>\n<hr>\n"
.openform("N",$info['news_id']).newsopts($info," ·").closeform("N",$info['news_id'])."\n";
closetable();
}
function render_article($subject, $article, $info) {
global $locale;
opentable($subject);
echo $locale['040'].articleposter($info)."\n"
."<br>\n<hr>\n<br>\n".$article."<br><br>\n<hr>\n"
.openform("A",$info['article_id']).articleopts($info," ·").closeform("A",$info['article_id'])."\n";
closetable();
}
function opentable($title) {
echo "<table border='0' cellpadding='0' cellspacing='0' class='centerTitle' width='100%'><tr><td class='centerTitleOverlay' height='20' width='100%' valign='top'>".$title."</td></tr></table>\n";
echo "<table border='0' cellpadding='0' cellspacing='0' width='100%'><tr><td class='centerContent' width='100%'>\n";
}
function closetable() {
echo "</td></tr></table>\n";
tablebreak();
}
function openside($title) {
echo "<table border='0' cellpadding='0' cellspacing='0' class='sideTitle' width='100%'><tr><td class='sideTitleOverlay' height='30' width='100%' valign='top'>".$title."</td></tr></table>\n";
echo "<table border='0' cellpadding='0' cellspacing='0' width='100%'><tr><td class='sideContent' width='100%'>\n";
}
function closeside() {
echo "</td></tr></table>\n";
sidebreak();
}
$boxcounter = 1;
function opensidex($title,$open="on") {
global $boxcounter;
$boxname = "expbox".$boxcounter;
$boxcounter++;
$box_img = ($open=="on" ? "off" : "on");
echo "<table border='0' cellpadding='0' cellspacing='0' class='sideTitle' width='100%'><tr>"
."<td class='sideTitleOverlay' height='30' width='100%' valign='top'>".$title."</td>"
."<td nowrap='nowrap'><img onclick=\"javascript:flipBox('$boxname')\" name='b_$boxname' alt='$box_img' src='".THEME."images/panel_$box_img.gif'></td>"
."</tr></table>\n";
echo "<table border='0' cellpadding='0' cellspacing='0' width='100%'><tr><td class='sideContent' width='100%'><div id='box_$boxname'".($open=="off" ? "style='display:none'" : "").">\n";
}
function closesidex() {
echo "</div></td></tr></table>\n";
sidebreak();
}
function tablebreak() {
echo "<table cellpadding='0' cellspacing='0'><tr><td height='10'></td></tr></table>\n";
}
function sidebreak() {
global $theme_panels_width;
echo "<img alt='spacer' height='10' src='".THEME."images/spacer.gif' width='".$theme_panels_width."'>\n";
}
?>
Netikiu, kad veiks. Galva negalvoja. [galingų saliutų foto]
Jaunelis
Narys
Antras po Dievo
Pranešimai: 4735
Įstojęs: 2007 Rugs. 23 08:09:32
nea vis viena tas pats.... code and design solutions tinklalapių kūrimas
Peršokti į forumą:
Žaliems
Nebeegzistuojančios svetainės
Bendri PHP-F klausimai
WordPress
Kiti PHP, HTML, MySQL klausimai
Expert PHP, MySQL klausimai
Kitos TVS
C#, Python, Java, JS, C++ klausimai
Naujų modų pristatymai
Mods, Panels & Infusions
Themes
Dalinuosi, dovanoju!
Jūsų saitai
Klausimai apie domenus ir hostingus
VPS/DS serverių konfigūravimas ir valdymas
Viskas apie skaitliukus, top'us ir lankomumą
Dizaino konkursai
Parduodu - perku dizainą, banerį
Parduodu - perku - keičiuosi reklama
Parduodu - perku domeną, tinklapį
Siūlau - ieškau hostingo/VPS serverio
Parduodu - perku skriptą, modifikaciją, tvs
Socialiniai tinklai - Facebook ir kiti
Legalus verslas, teisiniai klausimai
Visa kita kas susiję su darbu ir pinigais
LTStartups.com - Lietuvos startuolių bendruomenė
Off-Topic diskusijos
IT naujienos
Portalo informacija
Narių pasiūlymai
Geležis ir programinė įranga
Grafika
Out Of Place
Su e-verslu nesusijęs darbas ir prekyba
Dalinuosi, dovanoju!