Panel logowania i użytkownika wbudowany w logo
|
nod |
Dodany dnia 13.08.2008 12:12:30
|
Przedszkolak
Postów: 17 Ostrzeżeń: 2
Data rejestracji: 23.08.2007 11:41
|
Jak widać Twoja wiedza wystarczyła... Bo działa!
Wielkie dzięki! |
|
|
|
Wścibski Gość |
Dodany dnia 23.11.2024 08:13:46
|
Pan Kontekstualny
Postów: n^x
Data rejestracji: Zawsze
|
|
IP: localhost |
|
|
Szapko |
Dodany dnia 13.08.2008 12:13:40
|
Bywalec
Postów: 888 Pomógł: 66
Data rejestracji: 19.08.2007 19:49
|
Cieszę się, że mogłem pomóc |
|
|
|
gmks27 |
Dodany dnia 15.08.2008 17:11:58
|
Przedszkolak
Postów: 1
Data rejestracji: 15.08.2008 16:05
ZBANOWANY: Dożywotnio
Złamana licencja
|
Proszę mi pomóc...tak jak wielu poprzedników chcę mieć panel użytkownika głównym logo. Mój theme to BlueFusion, a oto zawartość mojego pliku theme.php:
<?php
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
require_once INCLUDES."theme_functions_include.php";
// theme settings
$body_text = "#000000";
$body_bg = "#000000";
$theme_width = "770";
$theme_width_l = "160";
$theme_width_r = "160";
function render_header($header_content) {
global $theme_width;
echo "<table align='center' cellspacing='0' cellpadding='0' width='$theme_width' class='outer-border'>
<tr>
<td>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='full-header'>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
</tr>
</table>
</td>
</tr>
</table>\n";
echo "<center><img src='".THEME."images/header.jpg'></center>";
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
}
function render_footer($license=false) {
global $theme_width,$settings;
echo "</tr>\n</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td height='40' background='".THEME."images/footer.gif' align='center' class='footer'>".stripslashes($settings['footer'])."
<a href='http://www.php-fusion.co.uk/' target='_blank'>PHP fusion</a> | <a href='http://www.phpfusion-themes.com/news.php' target='_blank'>By Adriano</a><br>
</td>
</tr>
</table>
</td>
</tr>
</table>\n";
}
function render_news($subject, $news, $info) {
echo "<table cellpadding='0' cellspacing='0' width='100%' class='border'>
<tr>
<td class='capmain'>$subject</td>
</tr>
<tr>
<td class='main-body'>$news</td>
</tr>
<tr>
<td align='center' class='news-footer'>\n";
echo openform("N",$info['news_id']).newsposter($info," ·").newsopts($info,"·").closeform("N",$info['news_id']);
echo "</td>
</tr>
</table>\n";
}
function render_article($subject, $article, $info) {
echo "<table width='100%' cellpadding='0' cellspacing='0' class='border'>
<tr>
<td class='capmain'>$subject</td>
</tr>
<tr>
<td class='main-body'>
".($info['article_breaks'] == "y" ? nl2br($article) : $article)."
</td>
</tr>
<tr>
<td align='center' class='news-footer'>\n";
echo openform("A",$info['article_id']).articleposter($info," ·").articleopts($info,"·").closeform("A",$info['article_id']);
echo "</td>
</tr>
</table>\n";
}
function opentable($title) {
echo "<table cellpadding='0' cellspacing='0' width='100%' class='border'>
<tr>
<td class='capmain'>$title</td>
</tr>
<tr>
<td class='main-body'>\n";
}
function closetable() {
echo "</td>
</tr>
</table>\n";
}
function openside($title) {
echo "<table cellpadding='0' cellspacing='0' width='100%' class='border'>
<tr>
<td background='".THEME."images/sbc.jpg' height='35' class='scapmain'> $title</td>
</tr>
<tr>
<td class='side-body'>\n";
}
function closeside() {
echo "</td>
</tr>
</table>\n";
tablebreak();
}
function opensidex($title,$state="on") {
$boxname = str_replace(" ", "", $title);
echo "<table cellpadding='0' cellspacing='0' width='100%' class='border'>
<tr>
<td class='scapmain'>$title</td>
<td class='scapmain' align='right'>".panelbutton($state,$boxname)."</td>
</tr>
<tr>
<td colspan='2' class='side-body'>
<div id='box_$boxname'".($state=="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<tr>\n<td height='5'></td>\n</tr>\n</table>\n";
}
?>
Tylko uprzedzam, że jestem kompletnie zielony...
Stosowałem się do wcześniejszych porad oraz wprowadzałem zmiany w kodzie...lecz nie przynosiło to efektu, tzn. efekt był widoczny ale daleko odbiegający od oczekiwanego...
Proszę o pomoc i wyrozumiałość.
Z góry dziękuję. |
|
|
|
Prymus |
Dodany dnia 29.10.2008 15:10:14
|
Przedszkolak
Postów: 6
Data rejestracji: 27.10.2008 21:09
ZBANOWANY: Dożywotnio
Złamana licencja
|
Próbowałem na różne sposoby i brałem pod uwagę wszystkie posty napisane w tym temacie, ale jak już zrobiłem, to był błąd z sublinks, najpierw usunęłem linię z błędem pokazała się strona lecz znacznie zdeformowana, gdy dodałem linię i znalazłem w temacie informacje o dodaniu:
require_once INCLUDES."theme_functions_include.php"; zrobiło się to samo co po skasowaniu linii z błędem, poniżej podaje link do screena przedstawiającego moją sytuacje:
http://img515.ima...lemdy2.png
, nie wiem kompletnie jak to zrobić, jeżeli ktoś znalazł by chwilę czasu t byłbym wdzięczny, oto theme.php:
<?
/*--------------------------------------------+
| PHP-Fusion v6 - Content Management System |
|---------------------------------------------|
| author: Nick Jones (Digitanium) © 2002-2005 |
| web: http://www.php-fu... |
| email: |
|---------------------------------------------|
| Released under the terms and conditions of |
| the GNU General Public License (Version 2) |
+--------------------------------------------*/
require_once INCLUDES."theme_functions_include.php";
// theme settings
$body_text = "#555555";
$body_bg = "#FEFEFE";
$theme_width = "80%";
$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,$userdata,$aidlink,$loginerror;
echo "<table align='center' cellspacing='0' cellpadding='0' width='$theme_width' class='outer-border'>
<tr>
<td>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td width='560' height='170' align='left' style='background-color: transparent; background-image:url(".THEME."images/logo.jpg);background-repeat: no-repeat; background-position: left; padding: 7px;'></td>";
echo "<td width='220' height='170' align='right' style='background-color: #transparent'>";
echo "<div align='center'>";
if (iMEMBER) {
opensidel();
if ($userdata['user_avatar'] != "") {
echo "<center><img src='".BASEDIR."images/avatars/".$userdata['user_avatar']."' width='50' hight='50' alt='".$data['user_name']."'></center><br>\n";
} else {
echo "<center><img src='".INFUSIONS."user_info_panel/images/brak.gif' width='50' hight='50'></center><br>\n";
}
$msg_count = dbcount("(message_id)", "messages", "message_to='".$userdata['user_id']."' AND message_read='0'AND message_folder='0'");
echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."edit_profile.php' class='side'>Edytuj Profil</a><br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."messages.php' class='side'>Twoje Wiadomości</a><br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."members.php' class='side'>Lista Użytkowników</a><br>\n";
if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) {
echo "<img src='".THEME."images/bullet.gif' alt=''><a href='".ADMIN."index.php".$aidlink."' class='side'> Administracja</a><br>\n";
}{echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."setuser.php?logout=yes' class='side'>Wyloguj</a>\n";
if ($msg_count) echo "<br><center><b><a href='".BASEDIR."messages.php' class='side2'>".sprintf('Masz %u PW' , $msg_count)."</a></b></center>\n";
}
tablebreak();
} else {
opensidel();
echo "<div align='center'>".(isset($loginerror) ? $loginerror : "")."
<form name='loginform' method='post' action='".FUSION_SELF."'>
<input type='text' name='user_name' class='textbox' value='nick' onBlur=\"if(this.value=='') this.value='nick';\" onFocus=\"if(this.value=='nick') this.value='';\" style='width:100px'><br><br>
<input type='password' name='user_pass' class='textbox' value='hasło' onBlur=\"if(this.value=='') this.value='hasło';\" onFocus=\"if(this.value=='hasło') this.value='';\" style='width:100px'><br>
<input type='checkbox' name='remember_me' value='y' title='Zapamiętaj mnie' style='vertical-align:middle;'>
<input type='submit' name='login' value='Loguj' class='button2'>
</form>
<br>\n";
if ($settings['enable_registration']) {
echo "<a href='".BASEDIR."register.php' class='side'>rejestracja</a><br>\n";
}
echo "<a href='".BASEDIR."lostpassword.php' class='side'>lost password</a>
</div>\n";
}
closesidel();
echo "</div>";
echo "</td>";
echo "</tr></td></tr></table>\n";
echo "<table align='center' cellpadding='0' cellspacing='0' width='$theme_width'>\n<tr>
<td class='pasek' width='100%' align='center' style='height: 32px;'>
".showsublinks("·","top_links")."
</td>
</tr>
</table>\n";
echo "<table align='center' cellpadding='0' cellspacing='0' width='$theme_width'>\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 "<br>";
}
echo "";
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='tableHeadingBGnews'><div class='tableHeading'>$subject</div></td></tr>";
echo "<tr><td class='td-cell1news' style='WIDTH: 100%' vAlign='top'>$news</td></tr>";
echo "<tr><td class='td-cell2news' align='center' style='WIDTH: 100%'>";
echo "<table cellSpacing='0' cellPadding='0' border='0'><tr>";
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> ·\n";
echo "</td></tr></table></td></tr></table>\n";
}
function render_movie($subject, $movie, $info) {
global $locale;
include LOCALE.LOCALESET."movies.php";
opentable($subject);
echo "<div align='center'><table cellpadding='0' cellspacing='0' style='border-collapse: collapse; background-color:#;' width='100%' class='border'>";
$r = substr($movie, -3, 3);
if ($r=="wmv") {
echo "<div align='center'>";
echo "<br><br><embed src='$movie' flashvars='gcode=482CD697' type='application/x-mplayer2' pluginspage='http://www.microsoft.com/Windows/Downloads/Contents/MediaPlayer/' width='400' height='350' autostart='1' showcontrols='1' showstatusbar='1' showdisplay='0' autorewind='0' enablecontextmenu='0'></embed><br><br>";
}elseif ($r=="mpg") {
echo "<div align='center'>";
echo "<br><br><embed src='$movie' flashvars='gcode=482CD697' type='application/x-mplayer2' pluginspage='http://www.microsoft.com/Windows/Downloads/Contents/MediaPlayer/' width='400' height='350' autostart='1' showcontrols='1' showstatusbar='1' showdisplay='0' autorewind='0' enablecontextmenu='0'></embed><br><br>";
}elseif ($r=="avi") {
echo "<div align='center'>";
echo "<br><br><embed src='$movie' flashvars='gcode=482CD697' type='application/x-mplayer2' pluginspage='http://www.microsoft.com/Windows/Downloads/Contents/MediaPlayer/' width='400' height='350' autostart='1' showcontrols='1' showstatusbar='1' showdisplay='0' autorewind='0' enablecontextmenu='0'></embed><br><br>";
}elseif ($r=="swf") {
echo "<div align='center'>";
echo"<br><br><OBJECT classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000'codebase='http://download.macromedia.com/pub/shckwave/cabs/flash/swflash.cab#version=5,0,0,0' WIDTH='550' HEIGHT='400' id='grmovie' name='grmovie'>
<PARAM NAME=movie VALUE='$movie'>
<param name='menu' value='false'>
<param name='quality' value='high'>
<param name='FlashVars' value='gcode=482CD697'>
<embed src='$movie' flashvars='gcode=482CD697' menu=false quality=high WIDTH='550' HEIGHT='400' TYPE='application/x-shockwave-flash' PLUGINSPAGE='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash' id='grmovie' name='grmovie'></embed></object><br><br>";
}elseif ($r=="mp3") {
echo "<div align='center'>";
echo "<br><br><embed src='$movie' type='application/x-mplayer2' pluginspage='http://www.microsoft.com/Windows/Downloads/Contents/MediaPlayer/ ' autostart='1' showcontrols='1' showstatusbar='1' showdisplay='0' autorewind='0' enablecontextmenu='0' height='70' width='300'></embed><br><br>";
}elseif ($r=="wma") {
echo "<div align='center'>";
echo "<br><br><embed src='$movie' type='application/x-mplayer2' pluginspage='http://www.microsoft.com/Windows/Downloads/Contents/MediaPlayer/ ' autostart='1' showcontrols='1' showstatusbar='1' showdisplay='0' autorewind='0' enablecontextmenu='0' height='70' width='300'></embed><br><br>";
}elseif ($r=="mov") {
echo "<div align='center'>";
echo "<br><br><embed type='video/quicktime' src='$movie' controller='true' target='myself' pluginspage='http://www.apple.com/quicktime/download/' loop='FALSE' autoplay='true' border='1' height='380' width='460'></embed><br><br>";
}elseif ($r=="999") {
echo "<div align='center'>";
echo "<br><br><embed style='width:400px; height:326px;' id='VideoPlayback' type='application/x-shockwave-flash' src='$movie'> </embed><br><br>";
}elseif ($r=="txt") {
echo "<div align='left'><br><br>";
$buff = nl2br(file_get_contents($movie));
echo $buff."</div><br><br>";
}else{
echo "<div align='center'>";
echo "<br><br><embed src='$movie' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' height='372' width='416'><br><br>";
}
echo "</div></table></div>";
closetable();
}
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 openside0($obrazek, $title) {
$obrazek="<IMG SRC='".THEME."images/$obrazek'>";
echo "<table cellpadding='0' cellspacing='0' width='100%' class='border'>
<tr>
<td class='scapmain'>$obrazek $title</td>
</tr>
<tr>
<td class='side-body'>\n";
}
function opensidel() {
echo "<table cellpadding='0' cellspacing='0' width='130' class='border'>
<tr>
<td class='side-body'></td>
</tr>
<tr>
<td class='side-body'>\n";
}
function closesidel() {
echo "</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";
}
?> Kliknij i zaczekaj na załadowanie kodu ...
PW od moderatora:
- Brak Stopki! - Pieka 01.11 - 22:56
Edytowane przez Prymus dnia 01.11.2008 20:28:35
|
|
|
|
MaroGF |
Dodany dnia 14.03.2009 19:32:17
|
Przedszkolak
Postów: 7
Data rejestracji: 13.02.2009 17:22
|
Witam czytałem wszystkie posty i kombinowałem sam zrobić ale mi nie wychodziło them nazywa się Kasha czy mógł by mi ktoś pomóc z tym??? <?
// theme settings
$body_text = "#ffffff";
$body_bg = "#17314A";
$theme_width = "100%";
$theme_width_l = "180";
$theme_width_r = "180";
function render_header($header_content) {
global $theme_width,$settings;
echo "<table align='center' width='$theme_width' cellspacing='0' cellpadding='0'>
<tr>
<td class='leftside' valign=top><img width='45' src='".THEME."images/blank.gif'></td>
<td class=topb align=center>
</td>
<td class=center>
<table width='100%' align='center' cellspacing='0' cellpadding='0'>
<tr>
<td width='100%' height='300' class='top-t'><center><img src='".THEME."images/logo.png'></center></td>
</tr>
<tr>
<td><img src='".THEME."images/blank.gif' width='5' height='5' alt='' style='display:block'></td>
</tr>
<tr>
<td class=topb align=center>
</td>
</tr>
</table>\n";
echo "<table width='100%' cellspacing='0' cellpadding='0' align='center'>\n<tr>\n";
}
function render_footer($license=false) {
global $theme_width,$settings;
echo "</tr>\n</table>\n";
echo "<table width='100%' border='0' cellspacing='0' cellpadding='0'>
<tr>
<td><center><table width='100%' border='0' cellspacing='0' cellpadding='0'>
<tr>
<td class='sidi-top-left'> </td>
<td class='sidi-top-main' > </td>
<td class='sidi-top-right'> </td>
</tr>
<tr>
<td class='sidi-left'> </td>
<td class='side-body' ><center><table border='0'>
<tr>
<td class='side-body' width='100%'><center>engine: <b><a href='http://www.php-fusion.co.uk'>PHP-Fusion</a> v". sprintf("%.2f", $settings['version'])."</b> <br>
<b>GFCenter</b> theme by: <b>MarekGF and micro_ice27</b> from <b><a href='http://galactikfootballcenter.pl' target='_blank'>http://galactikfo...lcenter.pl </a></b><br>
</b></td>
</tr>
<tr>
<td></td>
</tr>
<tr>
<td><center>
<br>
\n";
$result = dbquery("SELECT * FROM ".DB_PREFIX."site_links WHERE link_position>='2' ORDER BY link_order");
if (dbrows($result) != 0) {
echo " \n";
$i = 0;
while($data = dbarray($result)) {
if (checkgroup($data['link_visibility'])) {
if ($data['link_url']!="---") {
if ($i != 0) { echo " <b>::</b>\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 ? " " : "")."
</center></td>
</tr>
</table></td>
<td class='sidi-right'> </td>
</tr>
<tr>
<td class='border-dol'> </td>
<td class='border-dos'> </td>
<td class='border-dor'> </td>
</tr>
</table></center>
</td>
</tr>
</table>
</td>
<td class='rightside' valign='top'><img width='45' src='".THEME."images/blank.gif'></td>
</td>
</tr>
</table>
<center><table cellpadding='0' cellspacing='0'><tr><td class='leftside' width='45'><img src='".THEME."images/leftside.gif' width='45'></td><td width='100%' height='24' class='vudel-d'></td><td class='rightside' width='45'><img src='".THEME."images/rightside.gif' width='45'></td></tr></table></center>
\n";
}
function render_news($subject, $news, $info) {
global $settings;
echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='sidi-top-left'><img src='".THEME."images/blank.gif' width='14' height='24' alt='' style='display:block'></td>
<td width='100%' class='sidi-top-main'>$subject</td>
<td class='sidi-top-right'><img src='".THEME."images/blank.gif' width='14' height='24' alt='' style='display:block'></td>
</tr>
</table>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='sidi-left'><img src='".THEME."images/blank.gif' width='5' height='1' alt='' style='display:block'></td>
<td class='main-body'>
<div style='width:100%;vertical-align:top;'>$news</div>
<div style='margin-top:5px'>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='infobar'><img src='".THEME."images/bullet.gif'>
".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a>
".$locale['041'].showdate("longdate", $info['news_date'])."
</td>
<td align='right' class='infobar'>
".($info['news_ext'] == "y" ? "<a href='news.php?readmore=".$info['news_id']."'>".$locale['042']."</a> ·\n" : "")."
<a href='news.php?readmore=".$info['news_id']."'>".$info['news_comments'].$locale['043']."</a> ·
".$info['news_reads'].$locale['044']."
<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>
</td>
</tr>
</table>
</div>
</td>
<td class='sidi-right'><img src='".THEME."images/blank.gif' width='5' height='1' alt='' style='display:block'></td>
</tr>
<tr>
<td class='border-dol'><img src='".THEME."images/blank.gif' width='14' height='24' alt='' style='display:block'></td>
<td class='border-dos'><img src='".THEME."images/blank.gif' width='1' height='24' alt='' style='display:block'></td>
<td class='border-dor'><img src='".THEME."images/blank.gif' width='14' height='24' alt='' style='display:block'></td>
</tr>
</table>\n";
}
function render_article($subject, $article, $info) {
echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='sidi-top-left'><img src='".THEME."images/blank.gif' width='14' height='24' alt='' style='display:block'></td>
<td width='100%' class='sidi-top-main'><b>$subject</b></td>
<td class='sidi-top-right'><img src='".THEME."images/blank.gif' width='14' height='24' alt='' style='display:block'></td>
</tr>
</table>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='sidi-left'><img src='".THEME."images/blank.gif' width='5' height='1' alt='' style='display:block'></td>
<td class='main-body'>
<div style='width:100%;vertical-align:top;'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</div>
<div style='margin-top:5px'>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='infobar'><img src='".THEME."images/bullet.gif'>
".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a>
".$locale['041'].showdate("longdate", $info['article_date'])."
</td>
<td align='right' class='infobar'>
<a href='readarticle.php?article_id=".$info['article_id']."'>".$info['article_comments'].$locale['043']."</a> ·
".$info['article_reads'].$locale['044']."
<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>
</td>
</tr>
</table>
</div>
</td>
<td class='sidi-right'><img src='".THEME."images/blank.gif' width='5' height='1' alt='' style='display:block'></td>
</tr>
<tr>
<td class='border-dol'><img src='".THEME."images/blank.gif' width='14' height='24' alt='' style='display:block'></td>
<td class='border-dos'><img src='".THEME."images/blank.gif' width='1' height='24' alt='' style='display:block'></td>
<td class='border-dor'><img src='".THEME."images/blank.gif' width='14' height='24' alt='' style='display:block'></td>
</tr>
</table>\n";
}
function opentable($title) {
echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='sidi-top-left'><img src='".THEME."images/blank.gif' width='14' height='24' alt='' style='display:block'></td>
<td width='100%' class='sidi-top-main'>$title</td>
<td class='sidi-top-right'><img src='".THEME."images/blank.gif' width='14' height='24' alt='' style='display:block'></td>
</tr>
</table>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='sidi-left'><img src='".THEME."images/blank.gif' width='5' height='1' alt='' style='display:block'></td>
<td class='main-body'>\n";
}
function closetable() {
echo "</td>
<td class='sidi-right' ><img src='".THEME."images/blank.gif' width='14' height='1' alt='' style='display:block'></td>
</tr>
<tr>
<td class='border-dol'><img src='".THEME."images/blank.gif' width='5' height='16' alt='' style='display:block'></td>
<td class='border-dos'><img src='".THEME."images/blank.gif' width='1' height='16' alt='' style='display:block'></td>
<td class='border-dor'><img src='".THEME."images/blank.gif' width='5' height='16' alt='' style='display:block'></td>
</tr>
</table>\n";
}
function openside($title) {
echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='sidi-top-left'><img src='".THEME."images/blank.gif' width='14' height='24' alt='' style='display:block'></td>
<td width='100%' class='sidi-top-main'>$title</td>
<td class='sidi-top-right'><img src='".THEME."images/blank.gif' width='14' height='24' alt='' style='display:block'></td>
</tr>
</table>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='sidi-left'><img src='".THEME."images/blank.gif' width='5' height='1' alt='' style='display:block'></td>
<td class='side-body'>\n";
}
function closeside() {
echo "</td>
<td class='sidi-right'><img src='".THEME."images/blank.gif' width='5' height='1' alt='' style='display:block'></td>
</tr>
<tr>
<td class='border-dol'><img src='".THEME."images/blank.gif' width='5' height='16' alt='' style='display:block'></td>
<td class='border-dos'><img src='".THEME."images/blank.gif' width='1' height='16' alt='' style='display:block'></td>
<td class='border-dor'><img src='".THEME."images/blank.gif' width='5' height='16' alt='' style='display:block'></td>
</tr>
</table>\n";
tablebreak();
}
function opensidex($title,$open="on") {
$box_img = ($open=="on" ? "off" : "on");
echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='sidi-top-left'><img src='".THEME."images/blank.gif' width='5' height='21' alt='' style='display:block'></td>
<td class='sidi-top-main'>$title</td>
<td align='right' class='sidi-top-main'><img onclick=\"javascript:flipBox('$title')\" name='b_$title' alt='$box_img' border='0' src='".THEME."images/panel_$box_img.gif'></td>
<td class='sidi-top-right'><img src='".THEME."images/blank.gif' width='5' height='21' alt='' style='display:block'></td>
</tr>
</table>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='border-left'><img src='".THEME."images/blank.gif' width='5' height='1' alt='' style='display:block'></td>
<td class='side-body'>
<div id='box_$title'".($open=="off" ? "style='display:none'" : "").">\n";
}
function closesidex() {
echo "</div>
<td class='border-right'><img src='".THEME."images/blank.gif' width='5' height='1' alt='' style='display:block'></td>
</tr>
<tr>
<td class='border-bleft'><img src='".THEME."images/blank.gif' width='5' height='16' alt='' style='display:block'></td>
<td class='border-bmain'><img src='".THEME."images/blank.gif' width='1' height='16' alt='' style='display:block'></td>
<td class='border-bright'><img src='".THEME."images/blank.gif' width='5' height='16' alt='' style='display:block'></td>
</tr>
</table>\n";
tablebreak();
}
function tablebreak() {
echo "<table width='100%' cellspacing='0' cellpadding='0'>
<tr><td height='5'></td></tr>
</table>\n";
}
?>
Kliknij i zaczekaj na załadowanie kodu ...
EDIT Udało mi się o to screen ale jak ustawić żeby ten panel logowania był po lewej stronie?????:)
Edytowane przez MaroGF dnia 15.03.2009 14:56:14
|
|
|
|
brooklyn258 |
Dodany dnia 23.03.2009 22:41:48
|
Przedszkolak
Postów: 6 Ostrzeżeń: 2
Data rejestracji: 02.09.2006 18:11
|
Nie mogę się połapać czy mógłby mi ktoś przerobić thema 123 site dodać menu logowania.??
<?php
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
require_once INCLUDES."theme_functions_include.php";
// theme settings
$body_text = "#000000";
$body_bg = "#000000";
$theme_width = "820";
$theme_width_l = "160";
$theme_width_r = "160";
function render_header($header_content) {
global $theme_width;
echo "<table align='center' cellspacing='0' cellpadding='0' width='$theme_width' class='outer-border'>
<tr>
<td>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='full-header'>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
</tr>
</table>
</td>
</tr>
</table>\n";
echo "<center><img src='".THEME."images/header.jpg'></center>";
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
}
function render_footer($license=false) {
global $theme_width,$settings;
echo "</tr>\n</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td height='29' background='".THEME."images/fbc.jpg' align='center' class='footer'>".stripslashes($settings['footer'])."
<a href='http://www.php-fusion.pl/' target='_blank'>PHP fusion</a>
</td>
</tr>
</table>
</td>
</tr>
</table>\n";
}
function render_news($subject, $news, $info) {
echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td background='".THEME."images/sb.jpg' height='35' class='capmain'>$subject</td>
</tr>
<tr>
<td class='main-body'>$news</td>
</tr>
<tr>
<td align='center' class='news-footer'>\n";
echo openform("N",$info['news_id']).newsposter($info," ·").newsopts($info,"·").closeform("N",$info['news_id']);
echo "</td>
</tr>
</table>\n";
}
function render_article($subject, $article, $info) {
echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='capmain'>$subject</td>
</tr>
<tr>
<td class='main-body'>
".($info['article_breaks'] == "y" ? nl2br($article) : $article)."
</td>
</tr>
<tr>
<td align='center' class='news-footer'>\n";
echo openform("A",$info['article_id']).articleposter($info," ·").articleopts($info,"·").closeform("A",$info['article_id']);
echo "</td>
</tr>
</table>\n";
}
function opentable($title) {
echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td background='".THEME."images/sb.jpg' height='35' class='capmain'> $title</td>
</tr>
<tr>
<td class='main-body'>\n";
}
function closetable() {
echo "</td>
</tr>
</table>\n";
}
function openside($title) {
echo "<table cellpadding='0' cellspacing='0' width='100%' class='border'>
<tr>
<td background='".THEME."images/sbc.jpg' height='35' class='scapmain'> $title</td>
</tr>
<tr>
<td class='side-body'>\n";
}
function closeside() {
echo "</td>
</tr>
</table>\n";
tablebreak();
}
function opensidex($title,$state="on") {
$boxname = str_replace(" ", "", $title);
echo "<table cellpadding='0' cellspacing='0' width='100%' class='border'>
<tr>
<td class='scapmain'>$title</td>
<td class='scapmain' align='right'>".panelbutton($state,$boxname)."</td>
</tr>
<tr>
<td colspan='2' class='side-body'>
<div id='box_$boxname'".($state=="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<tr>\n<td height='5'></td>\n</tr>\n</table>\n";
}
?>
Kliknij i zaczekaj na załadowanie kodu ...
Edytowane przez Chemikpil dnia 23.03.2009 22:51:42
|
|
|
|
Eto |
Dodany dnia 20.07.2009 14:31:40
|
Przedszkolak
Postów: 2 Ostrzeżeń: 1
Data rejestracji: 20.07.2009 14:30
|
Siema, chcialbym zrobic panel logowania tak jak rzeznia.eu. Kto da link do pobrania?
Edytowane przez Pieka dnia 20.07.2009 15:06:46
|
|
|
|
Mesio |
Dodany dnia 22.01.2010 16:52:29
|
Przedszkolak
Postów: 21 Ostrzeżeń: 3
Data rejestracji: 20.11.2009 14:52
Złamana licencja
|
Witam, czy ktoś może mi pomóc? Theme zakupiłem przez sms i nie mogę poradzić sobie z jego edycją, chciałbym mieć panel logowania obok logo po prawej stronie mam extreme fusion. Pozdrawiam i poniżej przysyłam plik theme.php:
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
require_once INCLUDES."theme_functions_include.php";
$body_text = "#000000";
$body_bg = "#efefef";
$theme_width = "915";
$theme_width_l = "291";
$theme_width_r = "291";
function render_header($header_content) {
global $theme_width,$settings,$db_prefix,$locale,$userdata,$aidlink;
echo("<table width='$theme_width' align='center' cellspacing='0' cellpadding='0'><tr>
<tr></tr>
<td colspan='6'><img src='".THEME."/images/f1fabdcaeae17ce1.png' /></td>
</tr></table>
<div style='background-image: url(".THEME."images/szablon_15.jpg); width: 100%; height:43px'>
<table width='$theme_width' align='center' cellspacing='0' cellpadding='0'><tr>
<td><a href='".BASEDIR."index.php'><img src='".THEME."/images/szablon_10.jpg' /></a></td>
<td><a href='#'><img src='".THEME."/images/szablon_11.jpg' /></a></td>
<td><a href='".BASEDIR."photogallery.php'><img src='".THEME."/images/szablon_12.jpg' /></a></td>
<td><a href='".FORUM."index.php'><img src='".THEME."/images/szablon_13.jpg' /></a></td>
<td><a href='#'><img src='".THEME."/images/szablon_14.jpg' /></a></td>
<td style='background-image: url(".THEME."/images/szablon_15.jpg); width: 275px; height:42; text-align: center;'>
<form action='".BASEDIR."search.php' method='post'>
<input type='textbox' value='Wpisz szukane słowa..' name='stext' class='textbox-search' onBlur=\"if(this.value=='') this.value='Wpisz szukane słowa..';\" onFocus=\"if(this.value=='Wpisz szukane słowa..') this.value='';\">
<input type='submit' name='search' value='' class='button-search'>
</form></td>
</tr></table></div>");
/*<table width='$theme_width' align='center' cellspacing='0' cellpadding='0'><tr>
<td style='background-image: url(".THEME."images/szablon_18.jpg); ' class='panel1'> ");
if (!isset($usr_grps) || !isNum($usr_grps)) $usr_grps="";
$result = dbquery(
"SELECT tf.*, tt.*, tu.user_id,user_name,user_color,user_prefix FROM ".$db_prefix."forums tf
INNER JOIN ".$db_prefix."threads tt USING(forum_id)
INNER JOIN ".$db_prefix."users tu ON tt.thread_lastuser=tu.user_id
".$usr_grps." ORDER BY thread_lastpost DESC LIMIT 0,12");
if (dbrows($result) != 0) {
$i=0;
if ($theme_width == "100%") echo "\n";
while ($data = dbarray($result)) {
if ($i % 2 == 0) { $row_color = "tbl1"; } else { $row_color = "tbl1"; }
$new_posts = dbcount("(thread_id)", "posts", "thread_id='".$data['thread_id']."' and post_datestamp>'".(isset($lastvisited) ? $lastvisited : 0)."'");
//$thread_replies = dbcount("(thread_id)", "posts", "thread_id='".$data['thread_id']."'") - 1;
$thread_replies = $data['thread_replies'];
$forum_id = $data['forum_id'];
if ($new_posts > 0) {
$folder123 = "<img src='".THEME."forum/foldernew.gif' height='11'>";
} else if ($new_posts > 19) {
$folder123 = "<img src='".THEME."forum/folderhot.gif' height='11'>";
} else {
if ($data['thread_locked'] == 1) {
$folder123 = "<img src='".THEME."forum/folderlock.gif' height='11'>";
} else if ($data['thread_locked'] == 0) {
$folder123 = "<img src='".THEME."forum/folder.gif' height='11'>";
}
}
//$reply_count = dbcount("(thread_id)", "posts", "thread_id='".$data['thread_id']."'");
$reply_count = $data['thread_replies']+1;
$data2 = dbarray(dbquery("SELECT post_id FROM ".$db_prefix."posts WHERE thread_id='".$data['thread_id']."' ORDER BY post_id DESC LIMIT 1"));
$threads_message = $data['thread_subject'];
$threads_message = str_replace("'", "", $threads_message);
$rstart = ($reply_count > 20 ? "rowstart=".((ceil($reply_count / 20)-1)*20)."&" : "");
echo "<table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\"><tr><td align=\"left\" width='65%' class='small'>";
if ($theme_width == "100%") {
echo "$folder123 <a href='".FORUM."viewthread.php?".$rstart."forum_id=".$data['forum_id']."&thread_id=".$data['thread_id']."#".$data2['post_id']."' style='color: #ffffff;'>".trimlink($data['thread_subject'], 16)."</a><br></td>\n";
echo "<td align=\"right\" width='35%' style='color: #ffffff;'>[ ".($reply_count - 1)." / ".$data['thread_views']." ]</td>";
} else {
echo "$folder123 <a href='".FORUM."viewthread.php?".$rstart."forum_id=".$data['forum_id']."&thread_id=".$data['thread_id']."#".$data2['post_id']."' style='color: #ffffff;'>".trimlink($data['thread_subject'], 16)."</a><br></td>\n";
echo "<td align=\"right\" width='35%' style='color: #ffffff;'>[ ".($reply_count - 1)." / ".$data['thread_views']." ]</td>";
}
echo "</tr></table>";
$i++;
}
} else {
echo "<center>".$locale['004']."</center>\n";
}
echo("</td>
<td style='background-image: url(".THEME."images/szablon_19.jpg); 'class='panel2'>");
$result = dbquery(
"SELECT tf.*, tt.*, tu.user_id,user_name FROM ".$db_prefix."forums tf
INNER JOIN ".$db_prefix."threads tt USING(forum_id)
INNER JOIN ".$db_prefix."users tu ON tt.thread_lastuser=tu.user_id
".$usr_grps." ORDER BY thread_views DESC LIMIT 0,12");
if (dbrows($result) != 0) {
$i=0;
if ($theme_width == "100%") echo "\n";
while ($data = dbarray($result)) {
if ($i % 2 == 0) { $row_color = "tbl1"; } else { $row_color = "tbl1"; }
$new_posts = dbcount("(thread_id)", "posts", "thread_id='".$data['thread_id']."' and post_datestamp>'".(isset($lastvisited) ? $lastvisited : 0)."'");
//$thread_replies = dbcount("(thread_id)", "posts", "thread_id='".$data['thread_id']."'") - 1;
$thread_replies = $data['thread_replies'];
$forum_id = $data['forum_id'];
if ($new_posts > 0) {
$folder123 = "<img src='".THEME."forum/foldernew.gif' height='11'>";
} else if ($new_posts > 19) {
$folder123 = "<img src='".THEME."forum/folderhot.gif' height='11'>";
} else {
if ($data['thread_locked'] == 1) {
$folder123 = "<img src='".THEME."forum/folderlock.gif' height='11'>";
} else if ($data['thread_locked'] == 0) {
$folder123 = "<img src='".THEME."forum/folder.gif' height='11'>";
}
}
//$reply_count = dbcount("(thread_id)", "posts", "thread_id='".$data['thread_id']."'");
$reply_count = $data['thread_replies']+1;
$data2 = dbarray(dbquery("SELECT post_id FROM ".$db_prefix."posts WHERE thread_id='".$data['thread_id']."' ORDER BY post_id DESC LIMIT 1"));
$rstart = ($reply_count > 20 ? "rowstart=".((ceil($reply_count / 20)-1)*20)."&" : "");
echo "<table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\"><tr><td align=\"left\" class='small' width='75%'>";
if ($theme_width == "100%") {
echo "$folder123 <a href='".FORUM."viewthread.php?".$rstart."forum_id=".$data['forum_id']."&thread_id=".$data['thread_id']."#".$data2['post_id']."' style='color: #ffffff;'>".trimlink($data['thread_subject'], 16)."</a><br></td>\n";
echo "<td align=\"right\" width='25%' style='color: #ffffff;'>[ ".$data['thread_views']." ]</td>";
} else {
echo "$folder123 <a href='".FORUM."viewthread.php?".$rstart."forum_id=".$data['forum_id']."&thread_id=".$data['thread_id']."#".$data2['post_id']."' style='color: #ffffff;'>".trimlink($data['thread_subject'], 16)."</a><br></td>\n";
echo "<td align=\"right\" width='25%' style='color: #ffffff;'>[ ".$data['thread_views']." ]</td>";
}
echo "</tr></table>";
$i++;
}
} else {
echo "<center>".$locale['004']."</center>\n";
}
echo("</td>
<td style='background-image: url(".THEME."images/szablon_20.jpg); 'class='logowanie'>
");
if(iGUEST){
echo("
<div style='font-size: 9px; padding: 10px 10px 0px 0px;'>Prosimy o podanie prawidłowego nicku oraz
hasła. Je¶li nie posiadasz jeszcze u nas konta
to zapraszamy do <a href='".BASEDIR."register.php' style='color: #9caf19' >rejestracji</a></div>
<br /><form name='loginform' method='POST' action='".FUSION_SELF."'>
<input type='text' name='user_name' value='Login...' class='textbox1' onBlur=\"if(this.value=='') this.value='Login...'\" onFocus=\"if(this.value=='Login...') this.value='';\"><br />
<input type='password' name='user_pass' value='Hasło' class='textbox1' onBlur=\"if(this.value=='') this.value='Hasło'\" onFocus=\"if(this.value=='Hasło') this.value='';\"> <br />
<center><input type='checkbox' name='remember_me' value='y' title='Zapamiętaj mnie' >
<input type='submit' name='login' class='button1' value='Loguj'></form><br></center>
<br />
<div style='font-size: 9px;'> W przypadku kiedy zapomniałe¶ hasła <a href='".BASEDIR."lostpassword.php' style='color: #9caf19; '>Odzyskaj je.*</a> </div>
<br /><br />
");
}else{
$caution_r = dbquery("SELECT * from ".$db_prefix."cautions WHERE user_id=".$userdata['user_id']);
$caution = dbarray($caution_r);
$c_count = dbrows($caution_r);
echo"<div style='padding: 0px'>
<div style='float: left; '>".($userdata['user_avatar'] ? "<img src='".IMAGES."avatars/".$userdata['user_avatar']."' width='50' height='50'>" : "<img src='".FORUM."images/brak.gif' width='50' height='50'>")."
<br /> <br />
Ranga: ".check_rang($userdata['user_id'])."<br>
Punktów: ".show_points($userdata['user_id'])."<br>
Ostrzeżeń: ".$c_count."
</div>
<div style='float: left; text-align: left; padding: 0px 0px 0px 20px;'>
<a href='".BASEDIR."edit_profile.php'>Edytuj Profil</a><br>
<a href='".BASEDIR."messages.php'>Wiadomo¶ci</a><br>
<a href='".BASEDIR."members.php'>Użytkownicy</a><br>";
if (iADMIN) {echo "<a href='".ADMIN."index.php$aidlink'>Panel Administratora</a>\n";}echo"<br>
<a href='".USER."index.php'>Panel użytkownika</a><br>
<a href='".USER."gallery/galleries.php'>Twoja galeria</a>
<br><br>
Dodaj<br><a href='".BASEDIR."submit.php?stype=n' class='side'>News</a> <a href='".BASEDIR."submit.php?stype=l' class='side'>Link</a> <a href='".BASEDIR."submit.php?stype=a' class='side'>Artykuł</a>
</div> </div>
<div style='clear: both; float: right; padding: 0px 10px 0px 0px;'>
<a href='".BASEDIR."setuser.php?logout=yes'>Wyloguj [x]</a></div>";
}
echo("</td>
</tr></table>");
*/
echo("<table width='$theme_width' align='center' cellspacing='0' cellpadding='0'><tr>");
}
function render_footer() {
global $theme_width, $settings;
echo("</tr>
</table>
<table width='$theme_width' align='center' cellspacing='0' cellpadding='0'>
<td style='background-image: url(".THEME."images/szablon_35.jpg);' class='stopka'>
<div style='float: left; padding-right: 150px'>Design by Peter Laskosz | Code by <a href='http://b-site.pl' target='_blank' >b-site.pl </a> |<center> Powered by <a href='http://www.php-fusion.co.uk' target='_blank' >PHP-Fusion </a> v6.01.6 || EP IV by <a href='http://www.extreme-fusion.pl' target='_blank' >eXtreme Crew </a></center></div> <div style='float: left'>Unikalnych wizyt: "); echo "<strong>".$settings['counter']." </strong>".($settings['counter'] == 1 ? $locale['140']."\n" : $locale['141']."\n"); echo("</div> <div style='float: right'>Copyright © 2008 name.com</div>
</td>
</tr>
</table> ");
}
function render_news($subject, $news, $info) {
echo("<table width='610' align='center' cellspacing='0' cellpadding='0' border='0'>
<tr>
<td style='background-image: url(".THEME."images/szablon_23.jpg); ' class='news-panel-title'>".$subject."<div style=' color: #a7a5a5; font-size: 9px; font-weight: normal;'>+ Dodał:".$info['user_name']." Dnia: ".showdate("%d.%m.%Y", $info['news_date'])."</div></td>
</tr><tr>
<td style='background-image: url(".THEME."images/szablon_27.jpg); ' class='news-panel'>".$news."<a href='".BASEDIR."news.php?readmore=".$info['news_id']."'> [Czytaj więcej] </a> </td>
</tr><tr>
<td style='background-image: url(".THEME."images/szablon_33.jpg); ' class='news-panel-footer'><div style='float: right; '>+ Czytano: ".$info['news_reads'].$locale['044']." ".(!$_GET['readmore'] ? " + Komentarzy: ".$info['news_comments']."" : "")." <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><td>
</tr>
</table>");
tablebreak();
}
function render_article($subject, $article, $info) {
echo(" <table width='610' align='center' cellspacing='0' cellpadding='0' border='0'>
<tr>
<td style='background-image: url(".THEME."images/szablon_23.jpg); ' class='news-panel-title'>".$subject."<div style=' font-size: 9px; color:#a7a5a5; font-weight: normal;'> Dodane przez: ".$info['user_name']." dnia: ".showdate("%d.%m.%Y", $info['article_date'])."</div></td>
</tr><tr>
<td style='background-image: url(".THEME."images/szablon_27.jpg); ' class='news-panel'>".$article."</td>
</tr><tr>
<td><img src='".THEME."/images/szablon2_33.jpg' /></td>
</tr>
</table>");
tablebreak();
}
function opentable($title) {
echo("<table width='610' align='center' cellspacing='0' cellpadding='0' border='0'>
<tr>
<td style='background-image: url(".THEME."images/szablon_23.jpg); ' class='news-panel-title'>".$title."</td>
</tr><tr>
<td style='background-image: url(".THEME."images/szablon_27.jpg); ' class='news-panel'>");
}
function closetable() {
echo("</td>
</tr><tr>
<td><img src='".THEME."/images/szablon2_33.jpg' /></td>
</tr>
</table>");
tablebreak();
}
function openside($title) {
global $theme_width_l;
echo("<table width='".$theme_width_l."' align='center' cellspacing='0' cellpadding='0'>
<tr>
<td style='background-image: url(".THEME."images/szablon_25.jpg); ' class='side-panel-title'>".$title."</td>
</tr><tr>
<td style='background-image: url(".THEME."images/szablon_29.jpg); ' class='side-panel'>");
}
function closeside() {
echo("</td>
</tr><tr>
<td><img src='".THEME."/images/szablon_38.jpg' /></td><tr>
</table>");
tablebreak();
}
function opensidex($title,$open="on") {
global $theme_width_l;
$boxname = str_replace(" ", "", $title);
echo("<table width='".$theme_width_l."' align='center' cellspacing='0' cellpadding='0'>
<tr>
<td style='background-image: url(".THEME."images/szablon_25.jpg); ' class='side-panel-title'>".$title." ".panelbutton($state,$boxname)."</td>
</tr><tr>
<td style='background-image: url(".THEME."images/szablon_29.jpg); ' class='side-panel'>
<div id='box_$boxname'".($open=="off" ? "style='display:none'" : "").">");
}
function closesidex() {
echo("</div>
</td>
</tr><tr>
<td><img src='".THEME."/images/szablon_38.jpg' /></td><tr>
</table>");
tablebreak();
}
function tablebreak() {
echo"<div style='padding: 0px 0px 0px 0px'></div>";
}
?>
|
|
|
|
aliass |
Dodany dnia 01.02.2010 01:35:47
|
Przedszkolak
Postów: 5 Ostrzeżeń: 1
Data rejestracji: 29.01.2010 23:07
|
Witam.
Wszystko ładnie pięknie wyszło. Tylko chce to jeszcze troche bardziej zmodyfikować. Podzieliłem tabele na 3 czesci( a nie na 2 tak jak to jest opisane). W pierwszej chciałbym abym zrobić cos w stylu avatara dla grupy. Jak takie cudo wykonać?
//edit
wyjscie znalazłem tutaj(przerobiony Mod On/Ona)
http://www.php-fu...post_53061
Edytowane przez aliass dnia 01.02.2010 15:00:52
|
|
|