Przedszkolak
Postów: 4 Ostrzeżeń: 1
Data rejestracji: 23.09.2008 17:11
|
Witam.
Mam problem. Zainstalowałem skórkę jQ_Blog na PHP-Fusion 7, jednak domyślnie panele są tylko po prawej stronie. Wie ktoś jak zmienić panele, tak aby były po lewej i prawej stronie, jak w większości szablonów?
Z góry uprzedzam, że przeczytałem kilka razy temat http://www.php-fu...d_id=19902 jednak nie mogę sobie z tym poradzić.
Trzeba zmienić coś w pliku theme.php czy w styles.css ?
Oto treść pliku theme.php:
<?php
/* jQ Blog theme (v1.1) - a theme for PHP-Fusion v7. Theme author: Sveinung {Sveinungs} Skjerseth, http://yafs.net
Released as free software without waranties under the Affero GPLv3, see http://www.fsf.or...l-3.0.html */
if (!defined("IN_FUSION")) { die("Access Denied"); }
define("THEME_BULLET", "");
require_once INCLUDES."theme_functions_include.php";
include LOCALE.LOCALESET."comments.php";
include LOCALE.LOCALESET."ratings.php";
// THEME CONFIG OPTIONS:
$theme_width = "996px"; // Theme width
$u_panel = true; // Display a login-panel for Guests when inside the /forum/. Values: true || false
$com_panel = false; //Include the built-in comments panel. Values: true || false
$url = FUSION_REQUEST;
$fplaces = array( "/forum/" ); //Hides all side-panels when inside the /forum/ folder
$in_fforum = false;
foreach($fplaces as $place){ if(stristr($url, $place))$in_fforum = true; }
function render_page($license=false) {
global $settings, $locale, $aidlink, $theme_width, $userdata, $p_data, $in_fforum, $u_panel, $com_panel;
echo "<table cellpadding='0' cellspacing='0' align='center' id='header'>\n<tr>\n<td>\n";
echo "<table cellpadding='0' cellspacing='0' id='main-header' style='width:$theme_width'>\n<tr>\n";
echo"<td id='cont'><a class='cont' href='#content'>".$locale['global_210']."</a></td>\n";
echo "<td class='whiteheader' style='font-size:9px; text-align: right;' align='right'>
<ul>\n";
if(iMEMBER){
$msg_count = dbcount("(message_id)", DB_MESSAGES, "message_to='".$userdata['user_id']."' AND message_read='0'AND message_folder='0'");
echo "<li><a href='".BASEDIR."edit_profile.php'>".$locale['global_120']."</a></li>\n
<li><a href='".BASEDIR."messages.php'>".$locale['global_121']."";if ($msg_count){echo" <span id='msgcount'>[$msg_count]</span>";}echo"</a></li>\n
".(iADMIN ? "<li><a href='".ADMIN."index.php".$aidlink."' >".$locale['global_123']."</a></li>\n" : "")."
<li><a href='".BASEDIR."setuser.php?logout=yes'>".$locale['global_124']."</a></li>\n";
}else{
echo "<li><a href='".BASEDIR."login.php'>".$locale['global_104']."</a></li>\n
".($settings['enable_registration'] ? "<li><a href='".BASEDIR."register.php'>".$locale['global_107']."</a></li>\n" : "");
} echo "
</ul>
</td>\n";
echo "</tr></table>\n";
echo "<table cellpadding='0' cellspacing='0' align='center' style='width:$theme_width'><tr>\n";
echo "<td>".showbanners()."</td>\n";
echo "</tr></table>\n";
echo "<table cellpadding='0' cellspacing='0' align='center' style='width:$theme_width'><tr>\n";
echo "<td class='whiteheader' style='text-align: left; margin-bottom:0;'>".showsublinks("");
echo "</td>\n<td>\n";
echo " <form name='searchform' method='get' action='".BASEDIR."search.php'>\n";
echo " <input type='text' name='stext' class='searchbox' maxlength='30' />\n";
echo " </form>";
echo "</td>\n</tr></table>";
echo "</td></tr></table>\n";
//Content
echo "<table cellpadding='0' cellspacing='0' width='100%' align='center' id='main-bg' style='width:$theme_width'>\n<tr>\n";
echo "<td valign='top' width='100%'>";
echo "<table cellspacing='0' cellpadding='0' width='100%' class='tb-bg'>";
echo "<tr>\n<td class='left-tc'></td><td></td><td align='right' class='right-tc'></td>\n";
echo "</tr>\n</table>\n";
echo "<table cellspacing='0' cellpadding='0' width='100%' style='background-color:#FFF;border-left:1px solid #8093A6;border-right:1px solid #8093A6;'>\n<tr>\n";
if (defined("ADMIN_PANEL")) { echo "<td class='special-c' valign='top'><img src='".THEME."images/s-border.gif' alt='' />".LEFT."</td>"; }
echo "<td id='main' valign='top' width='100%'>";
if (iGUEST && $in_fforum && $u_panel) {
@include THEME."includes/forum_panel_include.php";
}
echo U_CENTER.CONTENT.L_CENTER."</td>\n";
if ((LEFT || RIGHT) && (!$in_fforum) && (!defined("ADMIN_PANEL"))) {
echo "<td valign='top' style='border-left:1px solid #8093A6;'>
<table cellspacing='0' cellpadding='0'><tr>\n";
if (LEFT) { echo "<td class='side-border-left' valign='top'><img src='".THEME."images/s-border.gif' alt='' />".LEFT."</td>";}
if (RIGHT) { echo "<td id='side-border-right' valign='top'><img src='".THEME."images/s-border.gif' alt='' />".RIGHT."</td>\n";}
if (LEFT && RIGHT && $com_panel) { echo "</tr><tr><td colspan='2' class='side-border-left' valign='top'>";
@include THEME."includes/comments_panel_include.php"; echo "</td>\n";
}
echo "</tr></table>\n</td>\n";
}
echo "</tr>\n</table>\n";
echo "<table cellspacing='0' cellpadding='0' width='100%' class='tb-bg'>";
echo "<tr>\n<td class='left-bc'></td><td></td><td align='right' class='right-bc'></td>\n";
echo "</tr>\n</table>\n";
//Footer
echo "<table cellspacing='0' cellpadding='0' align='center' width='96%' class='tb-bg center' style='margin-top:13px;clear:both;'>";
echo "<tr>\n<td class='left-tc'></td><td></td><td align='right' class='right-tc'></td>\n";
echo "</tr><tr><td colspan='3' width='96%' class='center' style='background-color:#FFF;padding:10px;border-left:1px solid #8093A6;border-right:1px solid #8093A6;'>";
echo "<div class='footernav' style='text-align: center; clear:both;'>".showsublinks("")."</div>\n<br />\n";
echo "<div style='float:left; width:50%;'>".stripslashes($settings['footer'])."</div>\n";
echo "<div style='float:right;text-align:right;width:50%;'>\n";
if (!$license) {echo"".showcopyright()."<br />\n";}
echo "".sprintf($locale['global_172'], substr((get_microtime() - START_TIME),0,4))." | ".showcounter()." ";if (!$license) { echo "| <a href='http://yafs.net' target='_blank' title='A theme by Sveinung Skjærseth'>jQ Blog</a></div>\n";}
echo "</td>\n</tr>\n";
echo "<tr>\n<td class='left-bc'></td><td></td><td align='right' class='right-bc'></td>\n";
echo "</tr>\n</table>\n";
echo "</td>\n";
echo "</tr>\n</table>\n";
}
function render_news($subject, $news, $info) {
global $locale, $aidlink;
echo "<h1 class='ncapmain'>".$subject."</h1>\n";
echo $news."\n";
if (!isset($_GET['readmore']) && $info['news_ext'] == "y") { echo " <a href='news.php?readmore=".$info['news_id']."'><img src='".THEME."images/readmore.png' alt='' style='vertical-align:middle;border:0px;' /><strong>".$locale['global_072']."...</strong></a><br />";}
echo "<p class='nfoot'>";
echo "<img src='".THEME."images/author.gif' alt='' style='vertical-align:middle;border:0px;' /> <a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a> ".$locale['global_071'].showdate("longdate", $info['news_date']);
if ($info['news_allow_comments']) { echo " | <img src='".THEME."images/comments.gif' alt='' style='vertical-align:middle;border:0px;' /> <a href='news.php?readmore=".$info['news_id']."'>".$info['news_comments'].($info['news_comments'] == 1 ? $locale['global_073b'] : $locale['global_073'])."</a> |";}
echo " <a href='print.php?type=N&item_id=".$info['news_id']."'><img src='".THEME."images/printer.gif' alt='".$locale['global_075']."' title='".$locale['global_075']."' style='vertical-align:middle;border:0px;' /></a>";
if (iADMIN && checkrights("N")) { echo " <a href='".ADMIN."news.php".$aidlink."&action=edit&news_id=".$info['news_id']."'><img src='".IMAGES."edit.gif' alt='".$locale['global_076']."' title='".$locale['global_076']."' style='vertical-align:middle;border:0px;' /></a>\n"; }
echo "</p>";
}
function render_article($subject, $article, $info) {
echo "<h1 class='ncapmain'>".$subject."</h1>\n";
echo "".($info['article_breaks'] == "y" ? nl2br($article) : $article)."<br />\n";
echo "<p class='nfoot'>".articleposter($info," ·").articleopts($info,"·").itemoptions("A",$info['article_id'])."</p>";
}
function opentable($title) {
global $p_data, $locale;
if (file_exists(THEME."images/title/".$p_data['panel_filename'].".png")) {
$title = "<img class='p-img' src='".THEME."images/title/".$p_data['panel_filename'].".png' alt='' />$title";
} if ($title == $locale['c100'] ) {
$title = "<img class='p-img' src='".THEME."images/title/latest_comments_panel.png' alt='' />".$locale['c100']."";
} if ($title == $locale['c102'] ) {
$title = "<img class='p-img' src='".THEME."images/title/post_comment.png' alt='' />".$locale['c102']."";
} if ($title == $locale['r100'] ) {
$title = "<img class='p-img' src='".THEME."images/title/ratings.png' alt='' />".$locale['r100']."";
} else {
$title = "$title";
}
echo "<h2 class='panel'>".$title."</h2>\n";
}
function closetable() {
}
function openside($title, $collapse = false, $state = "on") {
global $p_data, $panel_collapse; $panel_collapse = $collapse;
if(($p_data['panel_filename'] == "navigation_panel") || ($p_data['panel_filename'] == "css_navigation_panel") || ($p_data['panel_filename'] == "shoutbox_panel")) {
echo "<div class='special'>\n";
}
else if ($p_data['panel_filename'] == "member_poll_panel") {
echo "<div class='special-b'>\n";
}
else if ($p_data['panel_filename'] == "user_info_panel") {
echo "<div class='special-c'>\n";
}
else { echo "<div class='normal'>\n";}
if($p_data['panel_filename'] !== "css_navigation_panel"){
echo "<h3>".$title."</h3>\n";
}
if ($collapse == true) {
$boxname = str_replace(" ", "", $title);
echo "<div class='p-state'>".panelbutton($state, $boxname)."</div>\n";
}
if ($collapse == true) { echo panelstate($state, $boxname); }
}
function closeside() {
global $panel_collapse;
echo "</div>";
if ($panel_collapse == true) { echo "</div>\n"; }
}
?> Kliknij i zaczekaj na załadowanie kodu ...
styles.css:
.whiteheader{
font-size: 13px;
font-weight: bold;
width: 100%;
}
.whiteheader ul{
padding: 6px 0 7px 0;
margin: 0;
}
.whiteheader ul li{
display: inline;
}
.whiteheader ul li a{
color: #D9D9D9;
padding: 6px 3px 4px 3px;
margin-right: 10px;
text-decoration: none;
border-bottom: 3px solid #FFF;
}
.whiteheader ul li a:hover, .whiteheader ul li a.selected, .whiteheader ul li a.active{
color: #FFF;
border-bottom-color: #CFD8E0;
}
/* Footer navigation */
.footernav{
font-size: 10px;
font-weight: bold;
width: 100%;
}
.footernav ul{
padding: 0 0 7px 0;
margin: 0;
}
.footernav ul li{
display: inline;
}
.footernav ul li a{
color: #333;
padding: 0 3px 4px 3px;
margin-right: 10px;
text-decoration: none;
border-bottom: 2px solid #59728B;
}
.footernav ul li a:hover, .footernav ul li a.selected, .footernav ul li a.active{
border-bottom-color: black;
}
/* Search box */
.searchbox {
overflow: hidden;
font : 10px Verdana, Arial, Helvetica, sans-serif;
height: 20px;
width: 180px;
color : #333;
background: url(images/search_bg.gif) no-repeat left;
padding: 12px 30px 8px 30px;
margin: 5px 0 0 0;
border: 0;
}
.searchbox:focus, .searchbox:hover {
overflow: hidden;
font : 10px Verdana, Arial, Helvetica, sans-serif;
height: 20px;
width: 180px;
color : #333;
background: url(images/search_bg_h.gif) no-repeat left;
padding: 12px 30px 8px 30px;
margin: 5px 0 0 0;
border: 0;
}
a {
color: #59728B;
text-decoration: none;
}
a:hover {
color: #59728B;
text-decoration: underline;
}
a.side {
color: #59728B;
text-decoration: none;
}
a:hover.side {
color: #59728B;
text-decoration: underline;
}
a.sitename {
font: bold 22px Georgia, "Times New Roman", Times, serif;
color: #0F67A1;
}
a:hover.sitename {
font: bold 22px Georgia, "Times New Roman", Times, serif;
color: #5DB0E6;
text-decoration: none;
}
.sub-header{
width: 1%;
white-space: nowrap;
font-weight: bold;
font-size: 13px;
padding: 0 10px 0 0;
}
#msgcount { font-weight: bold; color: #FFFFCC;}
#cont { margin:5px; float:left; width:1%; white-space:nowrap;}
a.cont {color: #FFF;}
#main-header {
margin: auto;
}
#header {
width: 100%;
background: #59728B url(images/header-bg.jpg) repeat-x top;
padding: 0 0 5px 0;
border-bottom:10px solid #FFF;
margin: 0;
}
#main-body {width: 100%; margin:auto;}
.special {
background: #FFF url(images/tbl1-bg.gif) repeat-x top;
border: 1px solid #D9D9D9;
padding: 0 5px 5px 5px;
margin-top:5px;
margin-bottom: 5px;
}
.special-b {
background: #FFF url(images/special-bg.gif) repeat-x bottom;
border: 1px solid #D9D9D9;
padding: 0 5px 5px 5px;
margin-top:5px;
margin-bottom: 5px;
}
.special-c {
background: #CFD8E0 url(images/blue-corner.jpg) no-repeat top right;
border-bottom: 1px solid #DDD;
border-left: 1px solid #DDD;
padding: 1px 5px 5px 5px;
margin-top:5px;
margin-bottom: 5px;
}
.normal {
padding: 0 5px 5px 5px;
margin-top:5px;
margin-bottom: 5px;
}
#main-footer {
clear: both;
width: 100%;
margin-top: 10px;
font: bold 22px Georgia, "Times New Roman", Times, serif;
color: #DDD;
clear:both;
padding: 10px 20px 20px 20px;
border-top: 1px solid #E1D1D1;
border-bottom: 2px solid #333;
border-left: 1px solid #734B4B;
border-right: 1px solid #734B4B;
background: #8B5A5A url(images/footer-bg.jpg) repeat-x bottom;
}
.footer {
font: 10px Verdana, Arial, Helvetica, sans-serif;
color: #DDD;
}
.footer a{
font: 10px Verdana, Arial, Helvetica, sans-serif;
color: #D1E0D9;
}
#main-bg {
margin: auto;
color: #FFF;
background-color: #59728B;
padding: 13px;
border-top: 1px solid #8093A6;
border-left: 1px solid #8093A6;
border-right: 1px solid #8093A6;
border-bottom: 1px solid #8093A6;
}
#main {
padding: 0 10px;
}
.side-border-left {
text-align: left;
color: #333;
background-color: #FFF;
padding: 0 10px;
}
#side-border-right {
text-align: left;
color: #333;
background-color: #FFF;
padding: 0 10px;
border-left: 1px dotted #DDD;
}
#center-cont {
color: #333; padding:5px 10px 10px 10px; border: 1px solid #E0D6D1; border-top:0; border-bottom: 0;
}
body {
font: 11px Verdana, Arial, Helvetica, sans-serif;
color: #FFF;
background: #EEE url(images/body-bg.jpg) repeat-x top;
margin: 0;
}
hr, hr.side-hr {
color: #DDD;
background-color: #DDD;
height: 1px;
border : 0 none;
margin : 4px 0;
}
td {
font: 11px Verdana, Arial, Helvetica, sans-serif;
color: #333;
}
code, pre {
font: 11px monospace;
color: #333;
}
.alt {
color: #04688d;
}
p { margin: 5px 0 }
/* Form elements properties */
form {
margin: 0px;
}
.button {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
color: #333;
background-color: #EEE;
border: 1px solid #CCC;
padding: 2px;
margin-top: 2px;
}
.bbcode {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
color: #000;
background-color: #EEE;
border: 1px solid #CCC;
margin-top: 2px;
}
.textbox {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
color: #333;
padding: 2px;
margin-top: 2px;
background-color: #EEE;
border: 1px solid #CCC;
}
.textbox:hover, .textbox:focus, .bbcode:hover, .button:hover {
background-color: #ffffcc;
border: 1px solid #8B5A5A;
}
/* Rounded corners/tables properies */
.tb-bg{
padding: 0;
margin: 0;
background: #FFF;
color: #333;
}
.upper-tb-bg{
padding: 0;
margin: 0;
background: #FFF;
color: #333;
}
.left-tc{
height: 10px;
width: 10px;
padding: 0;
margin: 0;
background: url(images/left-tc.jpg) no-repeat top left;
}
.right-tc {
height: 10px;
width: 10px;
padding: 0;
margin: 0;
background: url(images/right-tc.jpg) no-repeat top right;
}
.left-bc {
height: 10px;
width: 10px;
padding: 0;
margin: 0;
background: url(images/left-bc.jpg) no-repeat bottom left;
}
.right-bc{
height: 10px;
width: 10px;
padding: 0;
margin: 0;
background: url(images/right-bc.jpg) no-repeat bottom right;
}
/* H = Captions */
h1 {
font: bold 16px Verdana, Arial, Helvetica, sans-serif;
color: #FFF;
padding: 5px;
margin: 5px 0 0 0;
}
h2 {
font: bold 14px Verdana, Arial, Helvetica, sans-serif;
padding: 5px;
margin: 5px 0;
border-bottom: 1px solid #EEE;
}
h3{
font: bold 12px Verdana, Arial, Helvetica, sans-serif;
color: #59728B;
padding: 5px;
margin: 7px 0 0 0;
border-bottom: 1px solid #D1E0D9;
/* background: #EEE; */
}
h4{
font: bold 10px Verdana, Arial, Helvetica, sans-serif;
color: #222;
padding: 5px;
margin: 7px 0 0 0;
/* background: #EEE; */
}
.forum-caption {
font: bold 14px Verdana, Arial, Helvetica, sans-serif;
color: #333;
background: #D1D9E0;
padding: 5px 10px;
margin: 0;
}
.forum-caption a {
font: bold 10px Verdana, Arial, Helvetica, sans-serif;
color: #333;
}
.panel {
color: #59728B;
}
/* This is for the news/articles */
.ncapmain {
color: #59728B;
background: #CFD8E0;
margin-bottom: 5px;
}
.news-category {
border: 0;
margin: 3px;
float: right;
}
.nfoot {
text-align: right;
clear:both;
background: #EEE;
padding: 5px;
}
.readmore {
color: #333;
float: left;
padding: 5px 5px 5px 20px;
background: url(images/readmore.png) no-repeat left;
}
/* Table properites */
.center {
margin: 0 auto;
}
.tbl-border {
border: 1px solid #DDD;
font-size: 11px;
color: #333;
background: #FFF;
}
.tbl {
font-size: 11px;
color: #333;
background-color: #FFF;
padding: 4px;
}
.tbl1 {
font-size: 11px;
color: #333;
background-color: #FFF;
padding: 4px;
}
.tbl2 {
font-size: 11px;
color: #333;
background: #FFF url(images/tbl1-bg.gif) repeat-x;
padding: 4px;
}
.quote {
font-size : 10px;
color : #555;
padding : 4px 4px 4px 17px;
margin : 6px 0;
border-left: 1px solid #4D5F76;
background: #EEE url(images/quote-bg.png) no-repeat;
}
.poll {
height: 16px;
border: 1px solid #555;
background: #0F67A1;
}
.comment-name {
font-weight: bold;
color: #04688d;
}
/* Shoutbox */
.shoutboxname {
text-align: right;
color: #0F67A1;
}
.shoutbox {
font-size: 9px;
color: #333;
background: #FFFFCC;
border: 1px solid #DDD;
border-top: 0;
padding: 3px 2px;
}
.shoutboxdate {
font-size: 10px;
color: #555;
background: url(images/shoutboxdate-bg.gif) no-repeat bottom right;
}
/* Small classes */
.small {
font-size: 10px;
color: #333;
}
.small2 {
font-size: 10px;
color: #333;
}
.side-small {
font-size: 10px;
color: #333;
}
/* CSS Navigation panel */
#navigation h2, .side-label {
color: #59728B;
font-size: 12px;
font-weight: bold;
margin: 0;
padding: 5px 0 0 0;
border: 0;
}
#navigation ul {
margin: 0;
margin-top: 5px;
padding: 0;
list-style-type: none;
}
* html #navigation ul li{
height: 1%;
}
#navigation a {
display: block;
color: #59728B;
font-weight: bold;
padding: 2px;
margin-bottom: 1px;
text-decoration: none;
border: 1px solid #8093A6;
}
#navigation a:hover {
color: #FFF;
background-color: #59728B;
border: 1px solid #FFF;
}
/* Pagenavigation */
.pagenav {
color: #555;
text-align: left;
padding: 4px 4px 4px 26px;
background: url(images/pagenav.gif) no-repeat left;
margin: 5px 20px 5px 120px;
}
.pagenav span {
color: #000;
background-color: #D1D1E0;
border: 1px solid #5B84AD;
padding: 2px 10px 2px 10px;
margin: 0 1px 0 0;
}
.pagenav a {
color: #555;
background-color: #f1f1f1;
border: 1px solid #0F67A1;
padding: 2px 10px 2px 10px;
margin: 0 1px 0 0;
text-decoration: none;
}
.pagenav a:hover {
color: #333;
background-color: #FFFFCC;
border: 1px solid #0F67A1;
border-top: 1px solid #333;
border-left: 1px solid #333;
margin: 0 1px 0 0;
text-decoration: none;
}
#content { float:left; margin:5px;}
#usermenu{
margin:5px 0 0 0;
padding:0;
}
#usermenu ul{
margin: 0;
float: right;
margin-bottom: 1em;
padding-left: 0;
font-weight: bold;
border: 1px solid #333;
border-width: 1px 0 1px 1px;
}
* html #usermenu ul{
margin-bottom: 0;
}
#usermenu ul li{
display: inline;
}
#usermenu ul li a{
float: left;
color: #CCC;
font-weight: bold;
padding: 2px 6px 4px 6px;
text-decoration: none;
border-right: 1px solid #222;
background: #000;
}
#usermenu ul li a:hover{
color: #DDD;
background-color: #000;
border-right: 1px solid #333;
border-bottom: 4px solid #0F67A1;
padding-bottom: 0;
}
/* Messages */
.admin-message {
font: bold 11px Verdana, Arial, Helvetica, sans-serif;
text-align: center;
color: #0F67A1;
background-color: #FFFFCC;
border: 1px solid #0F67A1;
padding: 3px 4px 5px 4px;
margin: 5px;
}
/* Helpers */
img{ border: 0px;}
.p-state { float:right; margin-top:-20px; padding: 2px 0 0 13px; }
.p-img { margin: -5px 3px 0 -4px; vertical-align:middle;}
/* TinyMCE specific rules */
body.mceContentBody {
background: #FFF;
color: #000;
}
.mceContentBody a {
color: blue !important; /* FX requires a important here */
}
Kliknij i zaczekaj na załadowanie kodu ...
Z góry dziękuje za pomoc.
Edytowane przez Pieka dnia 31.03.2009 22:00:33
|