Witam
Mam problem z logo w skórce Shunt bo nie potrafię go wypośrodkować. Nadmienię że te samo logo pod inna skórka jest wypośrodkowane. Pozat ym zauważyłem że adres do loga w skórce shunt to : http://mojastrona...s/logo.jpg a nie jak to miałem przedtem http://mojastron....s/logo.jpg . Niestety mimo prób i błędów nie udało mi się go wypośrodkować. Próbowałem modyfikować plik theme.php
<?
//************************************************************************************************************************//
// Theme Name: Shunt 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 = "#2E4753";
$body_bg = "#CECECE";
$theme_width = "100%";
$theme_width_l = "170";
$theme_width_r = "170";
function render_header($header_content) {
global $theme_width,$settings;
echo "<table border='0' cellpadding='0' cellspacing='1' bgcolor='#364561' width='925' align='center'>\n";
echo "<tr><td width='100%' bgcolor='#B1B8C4' height='11' valign='top'>";
echo "<table height='79' cellSpacing='0' cellPadding='0' width='100%' border='0'>";
echo "<tr><td><table height='79' cellSpacing='0' cellPadding='0' width='100%' border='0'>";
echo "<td width='440' background='".THEME."images/cellpic_bkg.jpg' height='124'><a href='".BASEDIR."index.php'><center><img src='".THEME."images/logo.jpg' border='0' title='".$settings[sitename]."'></center></td>";
echo "<td width='485' background='".THEME."images/cellpic_bkg.jpg' height='124'>";
// BANNER CODE HERE
echo "</td></tr></table>";
echo "<table cellSpacing='0' width='100%' cellPadding='0' border='0'>";
$result = dbquery("SELECT * FROM ".DB_PREFIX."site_links WHERE link_position>='2' ORDER BY link_order");
if (dbrows($result) != 0) {
echo "<td align='left'> \n";
$i = 0;
while($data = dbarray($result)) {
if (checkgroup($data['link_visibility'])) {
if ($data['link_url']!="---") {
if ($i != 0) { echo " <img src='".THEME."images/div.gif'> "; } else { echo "\n"; }
$link_target = ($data['link_window'] == "1" ? " target='_blank'" : "");
if (strstr($data['link_url'], "http://") || strstr($data['link_url'], "https://")) {
echo "<a class='category' href='".$data['link_url']."'".$link_target." class='white'>".$data['link_name']."</a>";
} else {
echo "<a class='category' href='".BASEDIR.$data['link_url']."'".$link_target." class='white'>".$data['link_name']."</a>";
}
}
$i++;
}
}
}
echo ($i == 0 ? " " : "")."</td><td align='right'><b>".ucwords(showdate($settings['subheaderdate'], time()))." </b></td></tr></table></td></tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0' border='0' align='center'>";
echo "</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='0' bgcolor='#B1B8C4' cellspacing='4' border='0'>\n";
}
function render_footer($license=false) {
global $theme_width,$locale,$settings;
echo "</tr>\n</table>\n";
echo "<table border='0' cellpadding='0' cellspacing='0' width='100%' height='27'>";
echo "<tr><td width='5%' class='cpic'>";
echo "<div align='center'><a href='javascript:scroll(0,0);'><img src='".THEME."images/up_arrow.gif' title='Scroll up'></a></td></div>";
echo "<td width='35%' class='cpic'>";
echo "<div align='center'><div align='left'>";
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> v".$settings['version']." © 2003-2005";
}
echo "</div></td>";
echo "<td width='20%' class='cpic'>";
echo "<div align='center'>Shunt by: <a target='_blank' href='http://phpfusion.org'><img title='PHP-Fusion Themes' src='".THEME."images/fthemes.gif' style='vertical-align:middle;'></a></td></div>";
echo "<td align='right' width='35%' class='cpic'>";
echo "<b>".$settings['counter']."</b> ".($settings['counter'] == 1 ? $locale['140']."\n" : $locale['141']."\n");
echo "</td>";
echo "<td width='5%' class='cpic'><div align='center'>";
echo "<a href='javascript:scroll(0,0);'><img src='".THEME."images/up_arrow.gif' title='Scroll up'></a></td></tr></table></div>";
}
function render_news($subject, $news, $info) {
global $locale;
echo "<table border='0' style='border: 1px solid #6D7F98' cellpadding='1' cellspacing='0' width='100%'><tr><td>";
echo "<table border='0' cellpadding='0' cellspacing='0' width='100%'><tr><td bgcolor='#CED5E0'>";
echo "<table border='0' cellpadding='0' cellspacing='0' width='100%'><tr>";
echo "<td class='cpic' width='100%' height='26'> <img src='".THEME."images/square.gif' hspace='2'> ";
echo "<font class='title'>$subject</font></td></tr>";
echo "<tr><td colspan='2'>";
echo "<table border='0' width='100%' bgcolor='#CED5E0' align='center'>";
echo "<tr><td class='main-body'>$news</td></tr></table>";
echo "<tr><td class='news-footer'>";
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'>";
echo "".($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></tr></table></td></tr></table>";
}
function render_article($subject, $article, $info) {
global $locale;
echo "<table border='0' style='border: 1px solid #6D7F98' cellpadding='1' cellspacing='0' width='100%'><tr><td>";
echo "<table border='0' cellpadding='0' cellspacing='0' width='100%'><tr><td bgcolor='#CED5E0'>";
echo "<table border='0' cellpadding='0' cellspacing='0' width='100%'><tr>";
echo "<td class='cpic' width='100%' height='26'> <img src='".THEME."images/square.gif' hspace='2'> ";
echo "<font class='title'>$subject</font></td></tr>";
echo "<tr><td colspan='2'>";
echo "<table border='0' width='100%' bgcolor='#CED5E0' align='center'>";
echo "<tr><td class='main-body'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</td></tr></table>";
echo "<tr><td class='news-footer'>";
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></tr></table></td></tr></table>";
}
// Open table begins
function opentable($title) {
echo "<table width='100%' cellpadding='2' cellspacing='0' style='border: 1px solid #6D7F98'>";
echo "<tr><td background='".THEME."images/cellpic3.gif' bgcolor='#B1B8C4' height='22'><font class='head-title'> $title</font></td>";
echo "</tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0' class='border'><tr>";
echo "<td class='main-body'>\n";
}
// Close table end
function closetable() {
echo "</td></tr></table>\n";
}
function openside($title) {
echo "<table border='0' cellpadding='0' cellspacing='1' bgcolor='#6D7F98' width='100%'>";
echo "<tr><td class='cpic' height='27' align='left'>";
echo "<img src='".THEME."images/square.gif' hspace='2'> <font class='block-title'>$title</font>";
echo "</td>";
echo "<tr><td bgcolor='#D8DDE5' class='side-body' width='100%'>";
}
function closeside() {
echo "</td></tr></table>";
tablebreak();
}
function opensidex($title,$open="on") {
$box_img = ($open=="on" ? "off" : "on");
echo "<table border='0' cellpadding='0' cellspacing='1' bgcolor='#6D7F98' width='100%'>";
echo "<tr><td class='cpic' height='27' align='left'>";
echo "<img align='left'onclick=\"javascript:flipBox('$title')\" name='b_$title' alt='$box_img' border='0' src='".THEME."images/panel_$box_img.gif'><font class='block-title'>$title</font>";
echo "</td></tr>";
echo "<tr><td bgcolor='#D8DDE5' class='side-body' width='100%'>";
echo "<div id='box_$title'".($open=="off" ? "style='display:none'" : "").">\n";
}
function closesidex() {
echo "</td></tr></table>";
tablebreak();
}
// Table functions
function tablebreak() {
echo "<table width='100%' cellspacing='0' cellpadding='0'><tr><td height='8'></td></tr></table>\n";
}
?>
Edytowane przez elektryk dnia 16.08.2006 23:02:45
|