@edit; Sprawa rozwiązana :) Zainteresowanym polecam looknąć jak to zrobiono w skórce z-Disco :P
Witam
Moja strona to Tibiame.pl. Ostatnio staram się aby zaszczędzić miejsce na stronie aby strona była bardziej przejrzysta. Dość dużo (a według mnie za dużo) miejsca zajmuje panel "Logowanie". Na wielu stronach (w tym np. na webmer.pl) panel ten został przeniesiony do nagłówka strony. Czy mógł by ktoś to dla mnie zrobić ? Bardzo proszę.
Chciałbym aby ten panel znalazł się w "tabelce" w której aktualnie znajduje się data (pod logiem). A
Utrudnieniem może się stać to że używam mFusiona, ale mam nadzieję że znajdzie się osoba która sobie z tym poradzi.
PS: Tu jest opisany podobny efekt http://www.php-fu...ad_id=6318
theme.php (skórka oparta na ZoneCooper)
<?
//************************************************************************************************************************//
// Theme Name: zoneSilver Theme for PHP-Fusion 6.00
// Theme Design: by: PHP-Fusion Themes (http://phpfusion.org)
// version 2.0
//
// PHP-Fusion Themes and/or Lorkan is a Registered Organization and holds a copyright with CIPO
// Original Author of file: PHP-Fusion Themes [Shedrock]
// Developed by: PHP-Fusion Themes - Bringing Your Portal To Life
// Copyright © 2005 by PHP-Fusion Themes - All Rights Reserved
// ----------------------------------------------------------------------
// THEME MODIFICATION
// Users may alter or modify this theme at their own risk,
// but only for their own use. They may also hire PHP-Fusion Themes to modify their own copy of the theme.
// Although users may modify the code for their use,
// modified code may not be resold or distributed,
// without express written permission from PHP-Fusion Themes.
//
// DISPLAY OF COPYRIGHT NOTICES REQUIRED
// All copyright notices used within the scripts that the scripts generate,
// MUST remain intact. Furthermore, these notices must remain visible.
//
// SUPPORT
// PHP-Fusion Themes provides free support on all their theme designs.
// (includes consulting, troubleshooting and fixing problems).
// For Support, please visit us at: http://www.phpfusion.org/forum/viewforum.php?forum_id=2
//
// PHP-Fusion Themes is not liable for any products or services offered by means of the theme.
// The user must assume the entire risk of using the program.
//************************************************************************************************************************//
/************************/
/* Theme Settings */
/************************/
$body_text = "#7D3B00";
$body_bg = "#ffffff";
$theme_width = "900";
$theme_width_l = "185";
$theme_width_r = "185";
function render_header($header_content) {
global $theme_width,$settings;
echo "</tr></table>";
echo "<td width='950' align='center'><center><img src='".THEME."images/logo.jpg' width='927' height='106' align='center'></center>";
echo "<table width='950' align='center' height='22' border='0' cellpadding='0' cellspacing='0'><tr>";
echo "<td width='24' background='".THEME."images/darkSilver_16.gif'> </td>";
echo "<td align='left' bgcolor='ffffff' nowrap> </td>";
echo "<td nowrap bgcolor='ffffff'> <div align='center'>";
$result = dbquery("SELECT * FROM ".DB_PREFIX."site_links WHERE link_language='".LANGUAGE."' AND link_visibility<='".iUSER."' AND 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 " <font class='content'><strong><img src='".THEME."images/bullet.gif' width='5' height='5'> </strong></font>\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='white'>".$data['link_name']."</a>";
} else {
echo "<a href='".BASEDIR.$data['link_url']."'".$link_target." class='white'>".$data['link_name']."</a>";
}
}
$i++;
}
}
}
echo ($i == 0 ? " " : "")."</div></td>";
echo "<td align='center' width='170' bgcolor='ffffff' nowrap>".ucwords(showdate($settings['subheaderdate'], time()))."</td>";
echo "<td width='28' background='".THEME."images/darkSilver_20.gif'> </td></tr></table>";
echo "<table width='950' align='center' border='0' cellspacing='0' cellpadding='0'><tr>";
echo "<td width='21'><img src='".THEME."images/darkSilver_23.gif' width='21' height='19'></td>";
echo "<td background='".THEME."images/darkSilver_24.gif'> </td>";
echo "<td width='21'><img src='".THEME."images/darkSilver_27.gif' width='21' height='19'></td></tr></table>";
echo "<table width='950' align='center' border='0' cellspacing='0' cellpadding='0'><tr>";
echo "<td width='15' background='".THEME."images/darkSilver_28.gif'><img src='images/spacer.gif' width='15' height='1'></td>";
echo "<td align='center' valign='top' bgcolor='#ffffff'>";
echo "<table width='100%' border='0' cellspacing='0' cellpadding='0'>";
echo "</td></tr></table><td valign='top' width='100%' bgcolor='#ffffff'>";
echo "<table width='100%' cellpadding='0' bgcolor='#ffffff' cellspacing='4' border='0'>\n";
}
function render_footer($license=false) {
global $theme_width,$settings,$locale;
echo "</tr>\n</table>\n";
echo "<center><td width='16' background='".THEME."images/darkSilver_31.gif'><img src='images/spacer.gif' width='16' height='1'></center>";
echo "</td></tr></table>";
echo "<table width='950' align='center' border='0' cellspacing='0' cellpadding='0'><tr>";
echo "<td width='35'><IMG SRC='".THEME."images/darkSilver_34.gif' WIDTH=35 HEIGHT=56 ALT=''></td>";
echo "<td class='footer' align='center' background='".THEME."images/darkSilver_35.gif'><br><br>";
if ($license == false) {
echo "Powered by <a target='_blank' href='http://www.php-fusion.co.uk'><img src='".THEME."images/fusion.gif' title='PHP-Fusion' style='vertical-align:middle;'></a> and <a target='_blank' href='http://www.mfusion.2loud.net.pl/'><img src='".THEME."images/mfusion.gif' title='mFusion' style='vertical-align:middle;'>";
}
echo "<td width='35'><IMG SRC='".THEME."images/darkSilver_38.gif' WIDTH=35 HEIGHT=56 ALT=''></td></tr></table>";
?><table width='950' align='center' border='0' cellspacing='0' cellpadding='0'><tr><td><br><center><a target=_top href="http://stat.4u.pl/?tibiame"><img alt="" src="http://adstat.4u.pl/s4u.gif" border="0"></center></a>
<script language="JavaScript" type="text/javascript">
<!--
function s4upl() { return "&r=er";}
//-->
</script>
<script language="JavaScript" type="text/javascript" src="http://adstat.4u.pl/s.js?tibiame"></script>
<script language="JavaScript" type="text/javascript">
<!--
s4uext=s4upl();
document.write('<img alt="" src="http://stat.4u.pl/cgi-bin/sn.cgi?i=tibiame&p=0'+s4uext+'" width="1" height="1">'smiley
//-->
</script>
<noscript><img alt="" src="http://stat.4u.pl/cgi-bin/sn.cgi?i=tibiame&p=0&r=ns" width="1" height="1"></noscript><?
echo "</td></tr></table></td></tr></table>";
}
function render_news($subject, $news, $info) {
global $locale;
echo "<table width='100%' border='0' cellspacing='0' cellpadding='6'><tr>";
echo "<td><table width='100%' height='30' border='0' cellpadding='0' cellspacing='0'>";
echo "<tr><td width='30' background='".THEME."images/darkSilverHeader_01.gif'> </td>";
echo "<td background='".THEME."images/darkSilverHeader_03.gif'><table width='100%' border='0' cellspacing='0' cellpadding='4'>";
echo "<tr><td><font class='block-title'>$subject</font></td></tr></table></td>";
echo "<td width='30' background='".THEME."images/darkSilverHeader_05.gif'> </td></tr></table>";
echo "<table width='100%' border='0' cellspacing='0' cellpadding='0'><tr>";
echo "<td width='16' background='".THEME."images/darkSilverFooter_05.gif'><img src='".THEME."images/darkSilverFooter_05.gif' width='16' height='8'></td>";
echo "<td bgcolor='#ffffff'><table width='100%' border='0' cellspacing='0' cellpadding='4'><tr>";
echo "<td class='main-body'>$news</td></tr>";
echo "<tr><td class='news-footer'><div align='center'>";
echo "".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a> ";
echo "".$locale['041'].showdate("longdate", $info['news_date'])."";
echo "<hr><div align='right'>".($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> · ";
echo "".$info['news_reads'].$locale['044']." ";
echo "<a href='print.php?type=N&item_id=".$info['news_id']."'><img src='".THEME."images/printer.gif' alt='".$locale['045']."' border='0' style='vertical-align:middle;'></a></div>";
echo "</td></tr></table></td>";
echo "<td width='16' background='".THEME."images/darkSilverFooter_06.gif'><img src='".THEME."images/darkSilverFooter_06.gif' width='16' height='1'>";
echo "</td></tr></table>";
echo "<table width='100%' border='0' cellspacing='0' cellpadding='0'><tr>";
echo "<td width='16'><img src='".THEME."images/darkSilverFooter_01.gif' width='16' height='13'></td>";
echo "<td height='13' background='".THEME."images/darkSilverFooter_02.gif'><img src='".THEME."images/darkSilverFooter_02.gif' width='1' height='13'></td>";
echo "<td width='16'><img src='".THEME."images/darkSilverFooter_04.gif' width='16' height='13'></td></tr></table></td></tr></table>";
}
function render_article($subject, $article, $info) {
global $locale;
echo "<table width='100%' border='0' cellspacing='0' cellpadding='6'><tr>";
echo "<td><table width='100%' height='30' border='0' cellpadding='0' cellspacing='0'><tr>";
echo "<td width='30' background='".THEME."images/darkSilverHeader_01.gif'> </td>";
echo "<td background='".THEME."images/darkSilverHeader_03.gif'><table width='100%' border='0' cellspacing='0' cellpadding='4'>";
echo "<tr><td><font class='storytitle'>$subject</font></td></tr></table></td>";
echo "<td width='30' background='".THEME."images/darkSilverHeader_05.gif'> </td></tr></table>";
echo "<table width='100%' border='0' cellspacing='0' cellpadding='0'><tr>";
echo "<td width='16' background='".THEME."images/darkSilverFooter_05.gif'><img src='".THEME."images/darkSilverFooter_05.gif' width='16' height='8'></td>";
echo "<td bgcolor='#ffffff'><table width='100%' border='0' cellspacing='0' cellpadding='4'><tr>";
echo "<td class='main-body'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</td></tr>";
echo "<tr><td class='news-footer'><div align='center'>";
echo "".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a> ";
echo "".$locale['041'].showdate("longdate", $info['article_date'])."";
echo "<hr><div align='right'>";
if ($info['article_allow_comments']) echo $info['article_comments'].$locale['043']." · ";
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']."' border='0' style='vertical-align:middle;'></a></div>";
echo "</td></tr></table></td>";
echo "<td width='16' background='".THEME."images/darkSilverFooter_06.gif'><img src='".THEME."images/darkSilverFooter_06.gif' width='16' height='1'>";
echo "</td></tr></table>";
echo "<table width='100%' border='0' cellspacing='0' cellpadding='0'><tr>";
echo "<td width='16'><img src='".THEME."images/darkSilverFooter_01.gif' width='16' height='13'></td>";
echo "<td height='13' background='".THEME."images/darkSilverFooter_02.gif'><img src='".THEME."images/darkSilverFooter_02.gif' width='1' height='13'></td>";
echo "<td width='16'><img src='".THEME."images/darkSilverFooter_04.gif' width='16' height='13'></td></tr></table></td></tr></table>";
}
// Open table begins
function opentable($title) {
echo "<table width='100%' border='0' cellspacing='0' cellpadding='3'><tr><td>";
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'><tr>";
echo "<td width='30' height='25' background='".THEME."images/darkSilverHeader_01.gif'></td>";
echo "<td height='25' background='".THEME."images/darkSilverHeader_03.gif'><div align='center'><font class='block-title'><strong>$title</strong></font></div></td>";
echo "<td width='30' height='25' background='".THEME."images/darkSilverHeader_05.gif'></td></tr></table>";
echo "<table width='100%' border='0' cellspacing='0' cellpadding='0'><tr><td>";
echo "<table width='100%' border='0' cellspacing='0' cellpadding='0'><tr>";
echo "<td width='16' background='".THEME."images/darkSilverFooter_05.gif'></td>";
echo "<td bgcolor='#ffffff'>";
echo "<table width='100%' border='0' cellspacing='0' cellpadding='4'><td>";
echo "<tr><td class='main-body'></td></table>";
}
// Close table end
function closetable() {
echo"</td>";
echo "<td width='16' background='".THEME."images/darkSilverFooter_06.gif'>";
echo "</td></tr></table></td></tr></table>";
echo "<table width='100%' border='0' cellspacing='0' cellpadding='0'><tr>";
echo "<td width='16'><img src='".THEME."images/darkSilverFooter_01.gif' width='16' height='13'></td>";
echo "<td height='13' background='".THEME."images/darkSilverFooter_02.gif'><img src='".THEME."images/darkSilverFooter_02.gif' width='1' height='13'></td>";
echo "<td width='16'><img src='".THEME."images/darkSilverFooter_04.gif' width='16' height='13'>";
echo "</td></tr></table></td></tr></table>";
}
function openside($title) {
echo "<table width='100%' border='0' cellspacing='0' cellpadding='3'><tr><td>";
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'><tr>";
echo "<td width='30' height='25' background='".THEME."images/darkSilverHeader_01.gif'></td>";
echo "<td height='25' background='".THEME."images/darkSilverHeader_03.gif'><div align='center'><font class='block-title'><strong>$title</strong></font></div></td>";
echo "<td width='30' height='25' background='".THEME."images/darkSilverHeader_05.gif'></td></tr></table>";
echo "<table width='100%' border='0' cellspacing='0' cellpadding='0'><tr><td>";
echo "<table width='100%' border='0' cellspacing='0' cellpadding='0'><tr>";
echo "<td width='16' background='".THEME."images/darkSilverFooter_05.gif'></td>";
echo "<td bgcolor='#ffffff'>";
echo "<table width='100%' border='0' cellspacing='0' cellpadding='4'><td><tr>";
echo "<td class='side-body'></td></table>";
}
function closeside() {
echo "</td>";
echo "<td width='16' background='".THEME."images/darkSilverFooter_06.gif'>";
echo "</td></tr></table></td></tr></table>";
echo "<table width='100%' border='0' cellspacing='0' cellpadding='0'><tr>";
echo "<td width='16'><img src='".THEME."images/darkSilverFooter_01.gif' width='16' height='13'></td>";
echo "<td height='13' background='".THEME."images/darkSilverFooter_02.gif'><img src='".THEME."images/darkSilverFooter_02.gif' width='1' height='13'></td>";
echo "<td width='16'><img src='".THEME."images/darkSilverFooter_04.gif' width='16' height='13'>";
echo "</td></tr></table></td></tr></table>";
tablebreak();
}
function opensidex($title,$open="on") {
$box_img = ($open=="on" ? "off" : "on");
echo "<table width='100%' border='0' cellspacing='0' cellpadding='3'><tr><td>";
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'><tr>";
echo "<td width='30' height='25' background='".THEME."images/darkSilverHeader_01.gif'></td>";
echo "<td height='25' background='".THEME."images/darkSilverHeader_03.gif'><img align='right' style='cursor:hand' onclick=\"javascript:flipBox('$title')\" name='b_$title' alt='$box_img' border='0' src='".THEME."images/panel_$box_img.gif'><div align='center'><font class='block-title'><strong>$title</strong></font></div></td>";
echo "<td width='30' height='25' background='".THEME."images/darkSilverHeader_05.gif'></td></tr></table>";
echo "<table width='100%' border='0' cellspacing='0' cellpadding='0'><tr><td>";
echo "<table width='100%' border='0' cellspacing='0' cellpadding='0'><tr>";
echo "<td width='16' background='".THEME."images/darkSilverFooter_05.gif'></td>";
echo "<td bgcolor='#ffffff'>";
echo "<table width='100%' border='0' cellspacing='0' cellpadding='4'><td><tr>";
echo "<td class='side-body'></td></table>";
echo "<div id='box_$title'".($open=="off" ? "style='display:none'" : "").">\n";
}
function closesidex() {
echo "</td>";
echo "<td width='16' background='".THEME."images/darkSilverFooter_06.gif'>";
echo "</td></tr></table></td></tr></table>";
echo "<table width='100%' border='0' cellspacing='0' cellpadding='0'><tr>";
echo "<td width='16'><img src='".THEME."images/darkSilverFooter_01.gif' width='16' height='13'></td>";
echo "<td height='13' background='".THEME."images/darkSilverFooter_02.gif'><img src='".THEME."images/darkSilverFooter_02.gif' width='1' height='13'></td>";
echo "<td width='16'><img src='".THEME."images/darkSilverFooter_04.gif' width='16' height='13'>";
echo "</td></tr></table></td></tr></table>";
tablebreak();
}
// Table functions
function tablebreak() {
echo "<table width='100%' cellspacing='0' cellpadding='0'><tr><td height='8'></td></tr></table>\n";
}
?>
Z góry wielkie dzięki !
Edytowane przez Pieka dnia 06.10.2007 23:00:34
|