Puste białe miejsce przed bannerem.
|
kamil1445 |
Dodany dnia 14.10.2006 18:09:27
|
Przedszkolak
Postów: 27
v6.01.xxx Data rejestracji: 04.10.2006 14:59
|
Witka!
Mam problemik, nie znam się zbytnio nad php - która linijke trzeba modyfikowac albo zmienić aby się pozbyć białego pustego miejsca nad głównym bannerem:
stronka w budowie -> www.zs-gostyn.ovh...
Pozdrawiam i proszę o pomoc również w tym temacie ->
http://www.php-fu...ad_id=7954 |
|
|
|
Wścibski Gość |
Dodany dnia 09.01.2025 18:33:47
|
Pan Kontekstualny
Postów: n^x
Data rejestracji: Zawsze
|
|
IP: localhost |
|
|
dex |
Dodany dnia 14.10.2006 20:09:15
|
Początkujący
Postów: 212
Data rejestracji: 16.08.2006 15:18
|
Daj tu swój theme.php, bo na moje oko coś namieszałeś, ja wgrałem ten skin do siebie i mam wszystko dobrze
|
|
|
|
kamil1445 |
Dodany dnia 14.10.2006 21:30:45
|
Przedszkolak
Postów: 27
v6.01.xxx Data rejestracji: 04.10.2006 14:59
|
O dzięki Dex!
Mam jeszcze pytanko: jak zrobić żeby banner był na całej szerokości? i żeby nie było tej tabelki ze zegarem :(
www.zs-gostyn.ovh...
Prosze to jest mój 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) |
+--------------------------------------------*/
/*--------------------------------------------+
| Bluescape 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 = "#FEFEFE";
$theme_width = "100%";
$theme_width_l = "170";
$theme_width_r = "170";
// Right Panels off in Forum Mode
//$theme_panels_exclude = array("/forum/");
include THEME."menu.php";
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>";
echo "<td><div align='right' id='clockbar'><div class='clockbarcolor'>";
echo "<div id='Clock'></div>";
echo "<script type='text/javascript'>
<!--
var DayNam = new Array(
'Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday');
var MnthNam = new Array(
'January','February','March','April','May','June','July','August','September','October','November','December');
//-->
</script>";
echo "<script type='text/javascript' src='".THEME."/clock/clock.js'></script></div></div>";
echo "<div align='right' id='pageheader'>";
echo "<table style='WIDTH: 100%' height='10' cellSpacing='0' cellPadding='0' border='0'><tr>";
echo "<td style='WIDTH: 45%'>";
echo "<center><img alt='".$settings[sitename]."' src='".THEME."images/logo.jpg'></center></a>";
echo "</td>";
echo "</tr></table></div>";
echo "<table style='WIDTH: 100%' cellSpacing='0' cellPadding='0' border='0'><tr>";
echo "<td class='subheader'>";
$result = dbquery("SELECT * FROM ".DB_PREFIX."site_links WHERE link_position>='2' ORDER BY link_order");
if (dbrows($result) != 0) {
$i = 0;
while($data = dbarray($result)) {
if (checkgroup($data['link_visibility'])) {
if ($data['link_url']!="---") {
if ($i != 0) { echo " - \n"; } else { echo "\n"; }
$link_target = ($data['link_window'] == "1" ? " target='_blank'" : "");
if (strstr($data['link_url'], "http://") || strstr($data['link_url'], "https://")) {
echo "<a href='".$data['link_url']."'".$link_target."' class='subheader-text'>".$data['link_name']."</a>";
} else {
echo "<a href='".BASEDIR.$data['link_url']."'".$link_target."' class='subheader-text'>".$data['link_name']."</a>";
}
}
$i++;
}
}
}
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) {
|
|
|
|
dex |
Dodany dnia 15.10.2006 20:58:52
|
Początkujący
Postów: 212
Data rejestracji: 16.08.2006 15:18
|
Usunięta belka z zegarem, usunięte okno search oraz baner na całą szerokośc strony, musisz go tylko wyśrodkowac, ale o tym jest na forum
<?
/*--------------------------------------------+
| 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) |
+--------------------------------------------*/
/*--------------------------------------------+
| Bluescape 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 = "#FEFEFE";
$theme_width = "100%";
$theme_width_l = "170";
$theme_width_r = "170";
// Right Panels off in Forum Mode
//$theme_panels_exclude = array("/forum/");
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>";
echo "<div align='right' id='pageheader'>";
echo "<table style='WIDTH: 100%' height='50' cellSpacing='0' cellPadding='0' border='0'><tr>";
echo "<td style='WIDTH: 100%'>";
echo "<img alt='".$settings[sitename]."' src='".THEME."images/logo.jpg' border='0' width='100%' height='74'></a>";
echo "</td>";
echo "</tr></table></div>";
echo "<table style='WIDTH: 100%' cellSpacing='0' cellPadding='0' border='0'><tr>";
echo "<td class='subheader'>";
$result = dbquery("SELECT * FROM ".DB_PREFIX."site_links WHERE link_position>='2' ORDER BY link_order");
if (dbrows($result) != 0) {
$i = 0;
while($data = dbarray($result)) {
if (checkgroup($data['link_visibility'])) {
if ($data['link_url']!="---") {
if ($i != 0) { echo " - \n"; } else { echo "\n"; }
$link_target = ($data['link_window'] == "1" ? " target='_blank'" : "");
if (strstr($data['link_url'], "http://") || strstr($data['link_url'], "https://")) {
echo "<a href='".$data['link_url']."'".$link_target."' class='subheader-text'>".$data['link_name']."</a>";
} else {
echo "<a href='".BASEDIR.$data['link_url']."'".$link_target."' class='subheader-text'>".$data['link_name']."</a>";
}
}
$i++;
}
}
}
echo ($i == 0 ? " " : "")."</div></td>";
echo "<td class='subheader' vAlign='center' align='right'>";
echo "<table cellSpacing='0' width='100%' cellPadding='0' border='0'><tr>";
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'])."\n";
if ($license == false) {
echo "<b>Bluescape</b> by: <a target='_blank' href='http://phpfusion-themes.com'><img src='".THEME."images/fthemes.gif' style='vertical-align:top;'></a><br><br>Powered by <a href='http://www.php-fusion.co.uk' class='breadcrumb' target='_blank'>PHP-Fusion</a> v".$settings['version']." © 2003-2005<br><br>\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 style='WIDTH: 100%' cellSpacing='0' cellPadding='0' border='0'><tr>";
echo "<td class='tableHeadingBG'><div class='tableHeading'>$title</div></td></tr>";
echo "<tr><td class='td-cell1' vAlign='top'>";
}
function closetable() {
echo "</td></tr></table>\n";
}
function openside($title) {
echo "<table style='WIDTH: 100%' cellSpacing='0' cellPadding='0' border='0'><tr>";
echo "<td class='tableHeadingBG'><div class='tableHeading'>$title</div></td></tr>";
echo "<tr><td class='td-cell1' vAlign='top'>";
}
function closeside() {
echo "</td></tr></table>\n";
tablebreak();
}
function opensidex($title,$open="on") {
$boxname = str_replace(" ", "", $title);
$box_img = $open == "on" ? "off" : "on";
echo "<table style='WIDTH: 100%' cellSpacing='0' cellPadding='0' border='0'><tr>";
echo "<td class='tableHeadingBG'>";
echo "<div class='tableHeading'><img align='right' src='".THEME."images/panel_$box_img.gif' name='b_$boxname' alt='' onclick=\"javascript:flipBox('$boxname')\">$title</div></td></tr>";
echo "<tr><td class='td-cell1' vAlign='top'>";
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";
}
?>
Edytowane przez dex dnia 15.10.2006 21:04:39
|
|
|
|
kamil1445 |
Dodany dnia 15.10.2006 21:38:53
|
Przedszkolak
Postów: 27
v6.01.xxx Data rejestracji: 04.10.2006 14:59
|
Dzięki Dex za pomoc, ale moimi siłami zmodyfikowałem to do tego stopnia
>http://zs-gostyn....g/news.php
Natomiast jak widzisz dalej mam białe miesjce przed nad bannerem.
Nie podobało mi się jak roziciągnąłeś ten banner nie ładnie wygląda jest jakiś inny sposób? jak widzisz mam po lewej stronie i prawej ciut miejsca a banner jest na środku. Jak pozbyć się tych miejsc?
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) |
+--------------------------------------------*/
/*--------------------------------------------+
| Bluescape 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 = "#FEFEFE";
$theme_width = "100%";
$theme_width_l = "170";
$theme_width_r = "170";
// Right Panels off in Forum Mode
//$theme_panels_exclude = array("/forum/");
include THEME."menu.php";
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>";
echo "<td><div align='right' id='clockbar'><div class='clockbarcolor'>";
echo "<div id='Clock'></div>";
echo "<script type='text/javascript' src='".THEME."/clock/clock.js'></script></div></div>";
echo "<div align='right' id='pageheader'>";
echo "<table style='WIDTH: 100%' height='10' cellSpacing='0' cellPadding='0' border='0'><tr>";
echo "<td style='WIDTH: 45%'>";
echo "<center><img alt='".$settings[sitename]."' src='".THEME."images/logo.jpg'></center></a>";
echo "</td>";
echo "</tr></table></div>";
echo "<table style='WIDTH: 100%' cellSpacing='0' cellPadding='0' border='0'><tr>";
echo "<td class='subheader'>";
$result = dbquery("SELECT * FROM ".DB_PREFIX."site_links WHERE link_position>='2' ORDER BY link_order");
if (dbrows($result) != 0) {
$i = 0;
while($data = dbarray($result)) {
if (checkgroup($data['link_visibility'])) {
if ($data['link_url']!="---") {
if ($i != 0) { echo " - \n"; } else { echo "\n"; }
$link_target = ($data['link_window'] == "1" ? " target='_blank'" : "");
if (strstr($data['link_url'], "http://") || strstr($data['link_url'], "https://")) {
echo "<a href='".$data['link_url']."'".$link_target."' class='subheader-text'>".$data['link_name']."</a>";
} else {
echo "<a href='".BASEDIR.$data['link_url']."'".$link_target."' class='subheader-text'>".$data['link_name']."</a>";
}
}
$i++;
}
}
}
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'])."\n";
if ($license == false) {
echo "<b>Bluescape</b> by: <a target='_blank' href='http://phpfusion-themes.com'><img src='".THEME."images/fthemes.gif' style='vertical-align:top;'> </a>Powered by <a href='http://www.php-fusion.co.uk' class='breadcrumb' target='_blank'>PHP-Fusion</a> v".$settings['version']."<br><br>\n";
}
echo number_format($settings['counter'])." ".($settings['counter'] == 1 ? $locale['140']."<br>\n" : $locale['141']."<br>\n")."";
echo "</td></tr></table></td></tr></table><br>\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 style='WIDTH: 100%' cellSpacing='0' cellPadding='0' border='0'><tr>";
echo "<td class='tableHeadingBG'><div class='tableHeading'>$title</div></td></tr>";
echo "<tr><td class='td-cell1' vAlign='top'>";
}
function closetable() {
echo "</td></tr></table>\n";
}
function openside($title) {
echo "<table style='WIDTH: 100%' cellSpacing='0' cellPadding='0' border='0'><tr>";
echo "<td class='tableHeadingBG'><div class='tableHeading'>$title</div></td></tr>";
echo "<tr><td class='td-cell1' vAlign='top'>";
}
function closeside() {
echo "</td></tr></table>\n";
tablebreak();
}
function opensidex($title,$open="on") {
$boxname = str_replace(" ", "", $title);
$box_img = $open == "on" ? "off" : "on";
echo "<table style='WIDTH: 100%' cellSpacing='0' cellPadding='0' border='0'><tr>";
echo "<td class='tableHeadingBG'>";
echo "<div class='tableHeading'><img align='right' src='".THEME."images/panel_$box_img.gif' name='b_$boxname' alt='' onclick=\"javascript:flipBox('$boxname')\">$title</div></td></tr>";
echo "<tr><td class='td-cell1' vAlign='top'>";
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";
}
?>
Edytowane przez Pieka dnia 15.10.2006 22:04:39
|
|
|
|
dex |
Dodany dnia 15.10.2006 22:22:59
|
Początkujący
Postów: 212
Data rejestracji: 16.08.2006 15:18
|
Dziwna sprawa, u mnie na serwerze jest wszystko wporządku i theme mam tak:
<?
/*--------------------------------------------+
| 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) |
+--------------------------------------------*/
/*--------------------------------------------+
| Bluescape 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 = "#FEFEFE";
$theme_width = "100%";
$theme_width_l = "170";
$theme_width_r = "170";
// Right Panels off in Forum Mode
//$theme_panels_exclude = array("/forum/");
include THEME."menu.php";
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>";
echo "<div align='right' id='pageheader'>";
echo "<table style='WIDTH: 100%' height='50' cellSpacing='0' cellPadding='0' border='0'><tr>";
echo "<td style='WIDTH: 100%'>";
echo "<center><img alt='".$settings[sitename]."' src='".THEME."images/logo.jpg' border='0' width='100%' height='180'></center></a>";
echo "</td>";
echo "</tr></table></div>";
echo "<table style='WIDTH: 100%' cellSpacing='0' cellPadding='0' border='0'><tr>";
echo "<td class='subheader'>";
$result = dbquery("SELECT * FROM ".DB_PREFIX."site_links WHERE link_position>='2' ORDER BY link_order");
if (dbrows($result) != 0) {
$i = 0;
while($data = dbarray($result)) {
if (checkgroup($data['link_visibility'])) {
if ($data['link_url']!="---") {
if ($i != 0) { echo " - \n"; } else { echo "\n"; }
$link_target = ($data['link_window'] == "1" ? " target='_blank'" : "");
if (strstr($data['link_url'], "http://") || strstr($data['link_url'], "https://")) {
echo "<a href='".$data['link_url']."'".$link_target."' class='subheader-text'>".$data['link_name']."</a>";
} else {
echo "<a href='".BASEDIR.$data['link_url']."'".$link_target."' class='subheader-text'>".$data['link_name']."</a>";
}
}
$i++;
}
}
}
echo ($i == 0 ? " " : "")."</div></td>";
echo "<td class='subheader' vAlign='center' align='right'>";
echo "<table cellSpacing='0' width='100%' cellPadding='0' border='0'><tr>";
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'])."\n";
if ($license == false) {
echo "<b>Bluescape</b> by: <a target='_blank' href='http://phpfusion-themes.com'><img src='".THEME."images/fthemes.gif' style='vertical-align:top;'></a><br><br>Powered by <a href='http://www.php-fusion.co.uk' class='breadcrumb' target='_blank'>PHP-Fusion</a> v".$settings['version']." © 2003-2005<br><br>\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 style='WIDTH: 100%' cellSpacing='0' cellPadding='0' border='0'><tr>";
echo "<td class='tableHeadingBG'><div class='tableHeading'>$title</div></td></tr>";
echo "<tr><td class='td-cell1' vAlign='top'>";
}
function closetable() {
echo "</td></tr></table>\n";
}
function openside($title) {
echo "<table style='WIDTH: 100%' cellSpacing='0' cellPadding='0' border='0'><tr>";
echo "<td class='tableHeadingBG'><div class='tableHeading'>$title</div></td></tr>";
echo "<tr><td class='td-cell1' vAlign='top'>";
}
function closeside() {
echo "</td></tr></table>\n";
tablebreak();
}
function opensidex($title,$open="on") {
$boxname = str_replace(" ", "", $title);
$box_img = $open == "on" ? "off" : "on";
echo "<table style='WIDTH: 100%' cellSpacing='0' cellPadding='0' border='0'><tr>";
echo "<td class='tableHeadingBG'>";
echo "<div class='tableHeading'><img align='right' src='".THEME."images/panel_$box_img.gif' name='b_$boxname' alt='' onclick=\"javascript:flipBox('$boxname')\">$title</div></td></tr>";
echo "<tr><td class='td-cell1' vAlign='top'>";
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";
}
?>
|
|
|
|
Pieka |
Dodany dnia 15.10.2006 22:56:13
|
Postów: 19885 Pomógł: 767
v7.02.03 Data rejestracji: 23.02.2005 18:12
|
A ja mam takie
W zalaczniku.
Pieka dodał/a następującą plik:
Edytowane przez Pieka dnia 15.10.2006 23:04:00
Jestem jaki jestem
|
|
|
|
kamil1445 |
Dodany dnia 16.10.2006 20:04:29
|
Przedszkolak
Postów: 27
v6.01.xxx Data rejestracji: 04.10.2006 14:59
|
Kurcze pieka jak to zrobiłeś?!
Ja mam nadal takie coś -> www.zs-gostyn.ovh... :(
Prosze pomóżcie!!!
Jak pozbyć się tego miejsca i wyśrodkować banner? mój 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) |
+--------------------------------------------*/
/*--------------------------------------------+
| Bluescape 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 = "#FEFEFE";
$theme_width = "100%";
$theme_width_l = "170";
$theme_width_r = "170";
// Right Panels off in Forum Mode
//$theme_panels_exclude = array("/forum/");
function render_header($header_content) {
global $theme_width,$settings;
echo "<table align='center' cellspacing='0' cellpadding='0' width='$theme_width' class='body-border' bgcolor='#f0f0f0'>";
echo '<table border="4" bordercolordark="#114477" bordercolorlight="#114477">';
echo "<tr><td style='WIDTH: 100%'>";
echo "<img alt='".$settings[sitename]."' src='".THEME."images/logo.jpg' border='0'></a></td></tr></table>";
echo "<table width='100%' cellspacing='0' cellpadding='0'><tr><td align='left' class='subheader' width='50%'>";
$result = dbquery("SELECT * FROM ".DB_PREFIX."site_links WHERE link_position>='2' ORDER BY link_order");
if (dbrows($result) != 0) {
$i = 0;
while($data = dbarray($result)) {
if (checkgroup($data['link_visibility'])) {
if ($data['link_url']!="---") {
if ($i != 0) { echo " - \n"; } else { echo "\n"; }
$link_target = ($data['link_window'] == "1" ? " target='_blank'" : "");
if (strstr($data['link_url'], "http://") || strstr($data['link_url'], "https://")) {
echo "<a href='".$data['link_url']."'".$link_target."' class='subheader-text'>".$data['link_name']."</a>";
} else {
echo "<a href='".BASEDIR.$data['link_url']."'".$link_target."' class='subheader-text'>".$data['link_name']."</a>";
}
}
$i++;
}
}
}
echo "<td class='subheader' align='right' width='50%>";
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>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
}
function render_footer($license=false) {
|
|
|
|
dex |
Dodany dnia 16.10.2006 20:31:06
|
Początkujący
Postów: 212
Data rejestracji: 16.08.2006 15:18
|
Co do wyśrodkowania to jest o tym TU [20 sekund w SZUKAJCE] a co do tego białego pola, to zarówno u mnie jak i u Pieki było dobrze, więc albo serwer u Ciebie coś kwasi, albo masz namieszane w innych plikach
|
|
|
|
Pieka |
Dodany dnia 16.10.2006 20:49:25
|
Postów: 19885 Pomógł: 767
v7.02.03 Data rejestracji: 23.02.2005 18:12
|
kamil1445 napisał/a:
Kurcze pieka jak to zrobiłeś?!
Ja mam nadal takie coś -> www.zs-gostyn.ovh...
Prosze pomóżcie!!!
Jak pozbyć się tego miejsca i wyśrodkować banner? mój theme.php:
Nadpisz plik subheader.php nowym, pobranym z archiwum Fusiona.
Jesli nadal zle, to podaj mi na PW dane serwera FTP= host, login i haslo.
EDIT: Kolega mial w pliku global.php wpis z edytora, ktory powodowal odstep.
Edytowane przez Pieka dnia 16.10.2006 22:51:27
Jestem jaki jestem
|
|
|
|
wlodekp |
Dodany dnia 16.10.2006 23:20:49
|
Weteran
Postów: 3101 Pomógł: 29
Data rejestracji: 21.05.2005 22:27
|
To już drugi taki przypadek widziałem w źródle ten jego edytor i <p>spacja</p> to był ten odstęp-poprzednio dłużej się gimnastykowaliśmy-Ty znalazłeś! wtedy też.
Edytowane przez wlodekp dnia 16.10.2006 23:23:46
|
|
|
|
Pieka |
Dodany dnia 16.10.2006 23:26:23
|
Postów: 19885 Pomógł: 767
v7.02.03 Data rejestracji: 23.02.2005 18:12
|
wlodekp napisał/a:
To już drugi taki przypadek widziałem w źródle ten jego edytor i <p>spacja</p> to był ten odstęp-poprzednio dłużej się gimnastykowaliśmy-Ty znalazłeś! wtedy też.
Masz racje Wtedy byla osemka i takze znalazla sie w global.php
Temu koledze od razu zrobilem header w uzywanym theme.
Edytowane przez Pieka dnia 16.10.2006 23:27:08
Jestem jaki jestem
|
|
|
|
wlodekp |
Dodany dnia 16.10.2006 23:40:45
|
Weteran
Postów: 3101 Pomógł: 29
Data rejestracji: 21.05.2005 22:27
|
A już po za konkursem, nie zkładając nowego tematu-wspominałem kiedyś, że zegar-kalendarz który jest w labie, a Kolega ma na stronie-ma skopaną ścieżkę do pliku swf. Objaw w IE nie wyświetla zegara i cały czas łąduje stronę na pasku-granatowym. Zresztą już kilka osób o tym też wspominało-nawet podając rozwiązanie.
|
|
|
|
Pieka |
Dodany dnia 16.10.2006 23:46:51
|
Postów: 19885 Pomógł: 767
v7.02.03 Data rejestracji: 23.02.2005 18:12
|
Rzeczywiscie byl blad w sciezce do pliku swf
Edytowane przez Pieka dnia 16.10.2006 23:49:24
Jestem jaki jestem
|
|
|
|
kamil1445 |
Dodany dnia 17.10.2006 10:32:43
|
Przedszkolak
Postów: 27
v6.01.xxx Data rejestracji: 04.10.2006 14:59
|
Wy to jesteście mistrze
Serdeczne dzięki, WIELKIE DZIĘKI Pieka i wlodekp ale szczególnie tobie Pieka za chęć ingerencji w mój problem - dziekuje!!!!!!!!!!
Co ja bym bez was zrobił jakbym mógł to bym przyznał soga, ale nie ma jak
Można spokojnie zamknąc temat - jeszcze raz OGROMNE BÓG ZAPŁAĆ!!!!
Jak mógłbym się w jakiś sposób odwdzięczyć?
Ty wiesz jak, juz napisalem na GG. Temat zamykam/Pieka
Edytowane przez Pieka dnia 17.10.2006 10:43:44
|
|
|