Początkujący
Postów: 135 Pomógł: 1 Ostrzeżeń: 3
Data rejestracji: 18.11.2007 08:08
|
Z przykrością to niestety nie pomogło. Podam jednak mój THEME.php:
<?php
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
require_once INCLUDES."theme_functions_include.php";
define("THEME_WIDTH", "904px");
define("THEME_BULLET", "<strong>·</strong>");
function render_page($license=false) {
global $theme_width, $main_style, $userdata, $aidlink, $user_data, $locale, $settings;
echo "<div id='toppanel'>
<div id='panel'>
<div class='content clearfix'>
<div class='left'>";
require_once INFUSIONS."gauges_two1/gauges_two_inc.php";
add_to_head("<script type='text/javascript' src='".INFUSIONS."user_info_panel1/eui.js'></script>");
if (iMEMBER) {
$msg_count = dbcount("(message_id)", DB_MESSAGES, "message_to='".$userdata['user_id']."' AND message_read='0'AND message_folder='0'");
echo " <table border='0'>
<body><tr>";
echo "<td width='8%'>";
if ($userdata['user_avatar'] && file_exists(IMAGES."avatars/".$userdata['user_avatar'])) {
echo "<div><a href='".BASEDIR."profile.php?lookup=".$userdata['user_id']."'><img src='".IMAGES."avatars/".$userdata['user_avatar']."' style='border:0' /></a></div>\n";
}
else {
echo "<br /><center><img src='".INFUSIONS."user_info_panel1/images/noavt.png' width='80' height='80'></center><br />\n";
}
echo "<br><span class='clearfix'>".getuserlevel($userdata['user_level'])."</span>\n<br>
<span class='clearfix'><strong>Postów: </strong> ".$userdata['user_posts']."</span>
<span class='clearfix'><strong>Data rejestracji: </strong> ".showdate("%d.%m.%y", $userdata['user_joined'])."</span>";
echo "</td><td width='10%'>";
echo THEME_BULLET." <a href='".BASEDIR."edit_profile.php' class='side'>".$locale['global_120']."</a><br />\n";
echo THEME_BULLET." <a href='".BASEDIR."messages.php' class='side'>".$locale['global_121']."</a><br />\n";
echo THEME_BULLET." <a href='".BASEDIR."members.php' class='side'>".$locale['global_122']."</a><br />\n";
if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) {
echo THEME_BULLET." <a href='".ADMIN."index.php".$aidlink."' class='side'>".$locale['global_123']."</a><br />\n";
}
echo "
<img src='".THEME."images/bullet.gif'> <a href='".INFUSIONS."forum_threads_list_panel/my_threads.php'>".$locale['global_041']."</a><br />
<img src='".THEME."images/bullet.gif'> <a href='".INFUSIONS."forum_threads_list_panel/my_posts.php'>".$locale['global_042']."</a><br />
<img src='".THEME."images/bullet.gif'> <a href='".INFUSIONS."forum_threads_list_panel/my_tracked_threads.php' class='side'>".$locale['global_056']."</a><br>
";
echo THEME_BULLET." <a href='".BASEDIR."setuser.php?logout=yes' class='side'>".$locale['global_124']."</a>\n<br><br>";
$msg_count = dbcount("(message_id)", DB_MESSAGES, "message_to='".$userdata['user_id']."' AND message_read='0'AND message_folder='0'");
if ($msg_count) echo "<center><a href='".BASEDIR."messages.php' class='side'><img src='".INFUSIONS."user_info_panel1/images/new.png'><br /><b>".sprintf($locale['global_125'], $msg_count)."</b></a></center>\n";
echo "</td></tr></tbody></table>
<a href='".BASEDIR."infusions/pictureflow_gallery/pictureflow_gallery.php' class='side'>Galeria zdjęć</a> |
<a href='".BASEDIR."infusions/personnel_list/personnel_list.php' class='side'>Redakcja</a> |";
echo "<td width='1%' class='tbl' style='white-space:nowrap'><a href='".BASEDIR."messages_status.php?rowstart=0'>Status PW</a> |</td>\n";
echo "<br />
<hr />
<a href='".BASEDIR."submit.php?stype=l' class='side'>Dodaj link</a> <span class='sep' >|</span>
<a href='".BASEDIR."submit.php?stype=n' class='side'>Dodaj newsa</a> |
<a href='".BASEDIR."submit.php?stype=a' class='side'>Dodaj artykuł</a> |
<a href='".BASEDIR."submit.php?stype=p' class='side'>Dodaj foto</a>\n<br>
";
} else {
echo "<form class='clearfix' action='#' method='post'>
<h1>".$locale['global_100']."</h1>
<label class='gray' for='user_name'>".$locale['global_101']."</label>
<input class='field' type='text' name='user_name' id='log' value='' size='23' />
<label class='gray' for='user_pass'>".$locale['global_102']."</label>
<input class='field' type='password' name='user_pass' id='pwd' size='23' />
<label><input name='rememberme' id='rememberme' type='checkbox' checked='checked' value='forever' /> ".$locale['global_103']."</label>
<div class='clear'></div>
<input type='submit' name='login' value='".$locale['global_104']."' class='bt_login' /> ";
if ($settings['enable_registration']) {
echo "<br><br><br><br>".$locale['global_105']."\n"; }
echo "<br>".$locale['global_106']."\n";
echo "</form><br />\n";
}
echo "</div>
<div class='left'>
<h2>Witamy Serdecznie: <span style='color:red'>".$userdata['user_name']."</span></h1>
<p class='grey'>
<b><i>
Zgromadzenie Salezjańskie zostało założone w 1859 roku przez księdza Jana Bosko.
Ks. Bosko swoje życie po¶więcił pracy z młodzież± Turynu i okolic organizuj±c liczne oratoria,
które dla chłopców ks. Bosko było miejscem nauki, zabawy, modlitwy i pracy. W celu kontynuowania swego dzieła
ks. Bosko założył Towarzystwo ¶w. Franciszka Salezego zwane potocznie Zgromadzeniem Salezjanów. Obecnie Salezjanie
nadal pracuj± z młodzież± w szkołach, oratoriach, ¶wietlicach, prowadz± parafie i wyjeżdżaj± na misje.
</b></i>
</p></div><div class='left right'>
<h1>Salezjanie w Zabrzu</h1>
<b><i>
Dzieło salezjańskie rozpoczęte prze ¶w. Jana Bosko jest także kontynuowane w Zabrzu-Helence przy ulicy Kruczkowskiego 31.<br>
ZAPRASZAMY!</b></i>
<br /><br />
<p style='text-align: left;'>
<center><img border='0' src='images/sdb.gif'></center>
</p>
</div>
</div>
</div>
<div class='tab'>
<ul class='login'>
<li class='left'> </li>
<li>";
if (iMEMBER) {
echo " Witaj: <a href='".BASEDIR.'profile.php?lookup='.$userdata['user_id']."'>".$userdata['user_name']."</span></a>";
} else { echo "Witaj: <strong><span style='color:yellow'>Nieznajomy</span></strong> ";}
echo " ".showsubdate()."</li>
<li class='sep'>|</li>
<li id='toggle'>
<a id='open' class='open' href='#'>Rozwin panel</a>
<a id='close' style='display: none;' class='close' href='#'>Zamknij Panel</a>
</li>
<li class='right'> </li>
</ul>
</div>
</div> \n";
//Header
// Time-date: ".showsubdate()."
echo "<div class='outer-border $main_style' style='background-color:#fff;width:".THEME_WIDTH.";'>\n";
echo "<div class='floatfix'>\n";
echo "<div class='full-header floatfix'>\n\n".showbanners()."</div>\n";
echo "<div class='sub-header floatfix'>\n";
echo "<div style='float:left;'>".showsublinks(" <span class='bullet'></span> ","white")."</div>\n";
echo "</div></div>\n";
//Content
if (LEFT) { echo "<div id='side-border-left'>".LEFT."</div>\n"; }
if (RIGHT) { echo "<div id='side-border-right'>".RIGHT."</div>\n"; }
echo "<div id='main-bg' class='clearfix'><div id='container'>".U_CENTER.CONTENT.L_CENTER."</div></div>\n";
//Footer
echo "<div class='footer clear' style='text-align:center;'>".stripslashes($settings['footer'])."<br />\n";
echo "</div>\n</div>\n";
//Sub-footer
// ~~ IMPORTANT: IT'S NOT ALLOWED TO REMOVE THIS COPYRIGHT NOTICE! By removing this copyright notice you will loose all rights to use this template.
echo "<div class='sub-footer'><p align='right'>Design by <a href='http://www.metamorphozis.com/'>MetaMorphozis</a>.<br />Transformed to PHP-Fusion v7 by Diemux.<br />Copyright <a href='http://php-fusion.co.uk/'>PHP-Fusion </a> 2002-2010 Nick Jones <br />Released as free software without warranties <a href='http://www.fsf.org/licensing/licenses/agpl-3.0.html'>GNU AGPL v3</a><br /><br />
<img
src='".THEMES."Lakeside/images/valid-xhtml10-blue.png' alt='Valid XHTML 1.0 Transitional' height='31' width='88' border='0' /></a>
<a href='http://jigsaw.w3.org/css-validator/check/referer'>
<img style='border:0;width:88px;height:31px'
src='".THEMES."Lakeside/images/vcss-blue.gif'
alt='Valid CSS!' border='0' /></a>
</p></div>";
// ~~ IMPORTANT: IT'S NOT ALLOWED TO REMOVE THIS COPYRIGHT NOTICE!
}
function render_news($subject, $news, $info) {
//mintAjax
echo
"<script language=\"javascript\">
function ColorIn(id) {
mint.fx.Color(id, \"backgroundColor\", null, \"#87CEEB\", 20, 500);
mint.fx.Color(id, \"borderColor\", null, \"000000\", 20, 500);
}
function ColorOut(id) {
mint.fx.Color(id, \"backgroundColor\", null, \"ffffff\", 20, 500);
mint.fx.Color(id, \"borderColor\", null, \"8F9D11\", 20, 500);
}
</script>\n"
;
echo "<div class='capmain'>$subject</div>\n";
echo "<div class='main-body floatfix'><div id='news_body' onmouseover=\"ColorIn(this)\" onmouseout=\"ColorOut(this)\">".$news."</div></div>\n";
echo "<div class='news-footer'>\n";
echo newsposter($info,"·").newsopts($info,"·").itemoptions("N",$info['news_id']);
echo "</div>\n";
}
function render_article($subject, $article, $info) {
echo "<div class='capmain'>$subject</div>\n";
echo "<div class='main-body floatfix'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</div>\n";
echo "<div class='news-footer'>\n";
echo articleposter($info,"·").articleopts($info,"·").itemoptions("A",$info['article_id']);
echo "</div>\n";
}
function opentable($title) {
echo "<div class='capmain'>$title</div>\n";
echo "<div class='main-body floatfix'>\n";
}
function closetable() {
echo "</div>\n";
}
function openside($title, $collapse = false, $state = "on") {
global $panel_collapse; $panel_collapse = $collapse;
echo "<div class='border'>\n";
echo "<div class='scapmain'>";
if ($collapse == true) {
$boxname = str_replace(" ", "", $title);
echo "<div style='float:right;'>".panelbutton($state,$boxname)."</div>";
}
echo $title."</div>\n<div class='side-body floatfix'>\n";
if ($collapse == true) { echo panelstate($state, $boxname); }
}
function closeside($collapse = false) {
global $panel_collapse;
if ($panel_collapse == true) { echo "</div>\n"; }
echo "</div>\n</div>\n";
}
?>
Kliknij i zaczekaj na załadowanie kodu ...
oraz STYLE.css
body.mceContentBody {
background: #FFFFFF;
color:#fff;
}
#news_body {
color:#333;
background-color:#ffffff;}
a {
color : #005599;
text-decoration : none;
}
a:hover {
color : #005599;
text-decoration : underline;
}
a.side {
color : #005599;
text-decoration : none;
}
a:hover.side {
color : #005599;
text-decoration : underline;
}
a.white, li.white a {
color: #ddd;
text-decoration: none;
}
a:hover.white, li.white a:hover {
color: #ddd;
text-decoration: underline;
}
body {
color : #A4E4F5;
background : #aae0fe url(images/back_all.gif) repeat-x;
font-family: Arial, Helvetica, sans-serif;
font-size : 13px;
margin-top : 60px;
margin-bottom : 20px;
}
form {
margin : 0px;
}
hr {
height : 1px;
border : 1px solid #eee;
}
hr.side-hr {
height : 1px;
border : 1px solid #eee;
}
td {
font-family : Verdana, Arial, Helvetica, sans-serif;
font-size : 11px;
}
pre {
font-family : Verdana, Tahoma, Arial, Sans-Serif;
font-size : 11px;
}
.alt {
color : #555;
}
.outer-border {
border : 10px solid #fff;
margin-left: auto;
margin-right: auto;
}
.sub-header {
font-family : Verdana, Arial, Helvetica, sans-serif;
font-size : 11px;
color : #fff;
background: url(images/menu.gif) no-repeat;
/*padding : 5px;*/
height: 49px;
width: 904px;
}
.sub-header ul{
margin: 0;
list-style: none;
}
.sub-header ul li{
display: inline;
}
.sub-header ul li.first-link .bullet{
display: none;
}
.sub-header a{
float: left;
width: 120px;
height: 35px;
margin: 0 0 0 2px;
padding: 16px 0 0 0;
text-decoration: none;
text-align: center;
letter-spacing: -1px;
font-size: 1.1em;
font-weight: bold;
color: #000000;
}
.sub-header a:hover {
background: url(images/menu_r.gif) repeat-x;
}
.full-header {
font-family : Verdana, Arial, Helvetica, sans-serif;
font-size : 10px;
color : #ddd;
background: url(images/header.jpg);
background-color: #fff;
/*padding : 10px;*/
width: 904px;
height:200px;
}
.footer {
margin-top: 20px;
font-family : Verdana, Arial, Helvetica, sans-serif;
font-size : 10px;
color : #555;
background: url(images/footer.gif);
border : 1px solid #ccc;
/*padding : 5px;*/
width: 904px;
height: 82px;
}
.sub-footer {
font-family : Verdana, Arial, Helvetica, sans-serif;
font-size : 10px;
color : #6a9fbc;
margin-right: 200px;
}
.admin-message {
font-family : Verdana, Arial, Helvetica, sans-serif;
font-size : 11px;
text-align : center;
color : #555;
background-color : #f6f6f6;
border : 1px solid #e1e1e1;
padding : 3px 4px 5px 4px;
margin-bottom : 5px;
}
.button {
font-family : Verdana, Arial, Helvetica, sans-serif;
font-size : 10px;
color : #555;
background-color : #f1f1f1;
height : 20px;
border : 1px solid #ccc;
margin-top : 2px;
}
.bbcode {
font-family : Verdana, Arial, Helvetica, sans-serif;
font-size : 10px;
color : #555;
background-color : #f1f1f1;
border : 1px solid #ccc;
margin-top : 2px;
}
.textbox {
font-family : Verdana, Arial, Helvetica, sans-serif;
font-size : 10px;
color : #555;
background-color : #f8f8f8;
border : 1px solid #ccc;
}
.main-body {
font-size : 11px;
color : #555;
background-color : #fff;
/*padding : 4px 0px 5px 0px;*/
padding: 5px;
margin-bottom: 10px;
}
.side-body {
font-size : 12px;
color : #777;
background-color : #fff;
padding : 4px;
}
#main-bg {
color : #555;
background-color : #aae0fe;
padding : 10px 5px 5px 5px;
}
.side-both #main-bg {margin: 0 190px;}
.side-left #main-bg {margin-left: 190px;}
.side-right #main-bg {margin-right: 190px;}
.side-left #side-border-right {display:none;}
.side-right #side-border-left {display:none;}
.center {
margin : 0 auto;
}
* html #main-bg{
height: 0px;
}
.border {
border : 1px solid #6ac6fa;
margin-bottom : 5px;
}
#side-border-left {
color : #777;
background-color : #fff;
float:left;
padding : 10px 0px 10px 0px;
width: 180px;
}
#side-border-right {
color : #777;
background-color : #fff;
float:right;
padding : 10px 0px 10px 0px;
width: 180px;
}
.news-category {
border:0;
margin:3px 5px 0 0;
float:left;
}
.news-footer {
text-align: center;
font-size : 10px;
color : #555;
background-color : #f1f2f4;
padding : 3px 4px 4px 4px;
}
.barmain {
font-family : Verdana, Tahoma, Arial, Sans-Serif;
font-size : 10px;
color : #aaa;
padding : 4px;
}
.capmain {
font-family : Verdana, Arial, Helvetica, sans-serif;
font-size : 16px;
font-weight : bold;
color : #0a416b;
background-color : #aae0fe;
padding : 2px 0px 4px 0px;
}
.scapmain {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 16px;
font-weight: bold;
color: #fff;
background-color: #555;
background-image: url(images/title.gif);
background-repeat: repeat-x;
padding: 8px 4px 6px 10px;
}
.tbl-border {
border : 1px solid #e1e1e1;
}
.tbl {
font-size : 11px;
color : #555;
background-color : #fff;
padding : 4px;
}
.tbl1 {
font-size : 11px;
color : #555;
background-color : #fff;
padding : 4px;
}
.tbl2 {
font-size : 11px;
color : #555;
background-color : #d3eefd;
padding : 4px;
}
.forum-caption {
font-size : 11px;
font-weight : bold;
color : #FFF;
background-color : #3e99cc;
padding : 2px 4px 4px 4px;
}
.quote {
font-size : 11px;
color : #555;
background-color : #f8f8f8;
padding : 4px;
margin : 0px 20px 0px 20px;
border : 1px solid #bbb;
}
.poll {
height : 12px;
border : 1px solid #bbb;
}
.comment-name {
font-weight : bold;
color : #005599;
}
.shoutboxname {
font-weight : bold;
color : #005599;
background-color : #f6f6f6;
}
.shoutbox {
color : #777;
background-color : #f6f6f6;
}
.shoutboxdate {
font-size : 10px;
color : #888;
background-color : #f6f6f6;
}
.small {
font-size : 10px;
font-weight : normal;
}
.small2 {
font-size : 10px;
font-weight : normal;
color : #555;
}
.side-small {
font-size : 10px;
font-weight : normal;
color : #555;
background-color : #f6f6f6;
}
.side-label {
color : #555;
background-color : #f1f1f1;
padding : 2px 2px 3px 2px;
}
/* Vertical Navigation */
#navigation h2 {
font-size: 10px;
color : #555;
background-color: #f1f1f1;
margin: 0;
padding: 4px;
}
#navigation ul {
margin: 0;
padding: 0;
list-style-type: none;
}
* html #navigation ul li{
height: 1%;
}
#navigation a {
display: block;
color: #005599;
background-color: #f6f6f6;
padding: 2px;
text-decoration : none;
}
#navigation a:hover {
color: #f6f6f6;
background-color: #005599;
}
/* Page Navigation */
.pagenav {
padding: 0.4em;
}
.pagenav span {
color: #fff;
background-color: #005599;
border: 1px solid #e1e1e1;
padding: 0.2em 0.4em 0.2em 0.4em;
margin: 0.2em;
}
.pagenav a {
color: #005599;
background-color: #fff;
border: 1px solid #e1e1e1;
padding: 0.2em 0.4em 0.2em 0.4em;
margin: 0.2em;
text-decoration: none;
}
.pagenav a:hover {
color: #fff;
background-color: #005599;
margin: 0.2em;
text-decoration: none;
}
/*Helpers*/
.center {margin: 0 auto;}
.content_center {text-align: center;}
.flleft {float: left !important;}
.flright {float: right !important;}
.clear {clear: both;}
/*IE Fixes*/
* html #main-bg {
height: 1%;
width: auto;
}
.clearfix:after {
content:".";
display:block;
height:0;
clear:both;
visibility:hidden;
}
/* Hide from IE Mac \*/
.clearfix {display:block;}
/* End hide from IE Mac */
.floatfix {overflow:hidden;}
* html .floatfix {width:100%;}
.center, *[align="center"] {margin: 0 auto;}
Kliknij i zaczekaj na załadowanie kodu ...
Edytowane przez nmpministranci dnia 06.03.2010 12:07:33
Born to be Wild.
|