lgowanie na logo
|
mtbujnos |
Dodany dnia 31.03.2007 12:14:34
|
Przedszkolak
Postów: 4
Data rejestracji: 31.03.2007 12:00
|
mam taki kod w theme
/************************/
/* Theme Settings */
/************************/
$body_text = "#CCCCCC";
$body_bg = '#222222';
$theme_width = "820";
$theme_width_l = "172";
$theme_width_r = "173";
function render_header($header_content) {
global $theme_width,$settings;
echo "<table align='center' width='$theme_width' cellspacing='0' cellpadding='0' height='100%'><tr><td class='table_left'><img src='".THEME."images/blank.gif' alt=''></td><td class='table_center' valign='top'><table align='center' width='100%' cellspacing='0' cellpadding='0''><tr><td><table width='100%' cellspacing='0' cellpadding='0'><tr><td class='full-header'>
<table width='105%' cellspacing='0' cellpadding='0'><tr>
<td class='top_header_center'><img src='images/logo/a.jpg' width='775' height='327' border='0' usemap='#map'>
<map name='map'>
<area shape='rect' coords='0,8,152,49' href='' />
<area shape='rect' coords='210,9,353,28' href='news.php' />
<area shape='rect' coords='380,8,451,28' href='forum/' />
<area shape='rect' coords='468,6,546,28' href='forum/viewthread.php?forum_id=6&thread_id=3&pid=3#post_3' />
<area shape='rect' coords='559,6,655,28' href='register.php' />
<area shape='rect' coords='667,7,754,26' href='team.php' />
</map>
<table width='105%' cellspacing='0' cellpadding='0'><tr>
<td class='top'></td>
</tr></table></tr></table><table width='100%' cellspacing='0' cellpadding='0'><tr>
<td class='menu_center' width='1'>
<div>";
[color=red][b]Tu bym chcial panel logowania, ale zeby jak ktos sie zaloguje to zeby byl tylko avatar , wiadomosci, edytuj profil i lista uzytkownikow. [/b][/color]
Reszta bedzie w normlanym panelu
echo "</div>
</td>
<table width='100%' cellspacing='0' cellpadding='0'>\n<tr>\n";
}
function render_footer($license=false) {
global $theme_width,$locale,$settings;
echo "
<table cellpadding='0' cellspacing='0' width='100%'> <td align='center' class='full-footer'>
<table width='100%' cellpadding='0' cellspacing='0'><img src='".IMAGES."logo/ban1.jpg' alt=''>
wejdzie na strone [url] http://php-fusion...ad_id=6318 [/url]
ciagle mi wychodza bledy i nie wiem jak mam to wlozyc ten skrypt. Prosze pomozcie mi. |
|
|
|
Wścibski Gość |
Dodany dnia 12.01.2025 15:51:18
|
Pan Kontekstualny
Postów: n^x
Data rejestracji: Zawsze
|
|
IP: localhost |
|
|
szer |
Dodany dnia 31.03.2007 12:33:53
|
Zaawansowany
Postów: 1139 Pomógł: 4
Data rejestracji: 13.11.2004 23:06
|
Trzeba już było napisać w tamtym temacie.... Jakie błedy Ci wyskakują? |
|
|
|
mtbujnos |
Dodany dnia 31.03.2007 12:49:43
|
Przedszkolak
Postów: 4
Data rejestracji: 31.03.2007 12:00
|
w wiekszosc t ocos z ' . Ale jak wszystko zamienie to nie dziala i nei wiem co moge zamienic na ' a co na ". |
|
|
|
szer |
Dodany dnia 31.03.2007 12:54:01
|
Zaawansowany
Postów: 1139 Pomógł: 4
Data rejestracji: 13.11.2004 23:06
|
Podaj treść błędu.... |
|
|
|
mtbujnos |
Dodany dnia 31.03.2007 13:26:40
|
Przedszkolak
Postów: 4
Data rejestracji: 31.03.2007 12:00
|
Zamienilem na to [ dodalem kod pogrubiony ]
<?
/*--------------------------------------------+
| PHP-Fusion v6 - Content Management System |
|---------------------------------------------|
| author: Nick Jones (Digitanium) © 2002-2005 |
| web: http://www.php-fusion.co.uk |
| email: |
|---------------------------------------------|
| Released under the terms and conditions of |
| the GNU General Public License (Version 2) |
+--------------------------------------------*/
/*--------------------------------------------+
| Insecure Theme for PHP-Fusion v6 |
|---------------------------------------------|
| author: PHP-Fusion Themes - ww.old © 2005 |
| web: http://phpfusion.org |
| email: |
|---------------------------------------------|
| Released under the terms and conditions of |
| the GNU General Public License (Version 2) |
+--------------------------------------------*/
/************************/
/* Theme Settings */
/************************/
$body_text = "#CCCCCC";
$body_bg = '#222222';
$theme_width = "820";
$theme_width_l = "172";
$theme_width_r = "173";
function render_header($header_content) {
global $theme_width,$settings,$userdata,$aidlink,$loginerror;
echo "<table align='center' width='$theme_width' cellspacing='0' cellpadding='0' height='100%'><tr><td
class='table_left'><img src='".THEME."images/blank.gif' alt=''></td><td class='table_center'
valign='top'><table align='center' width='100%' cellspacing='0' cellpadding='0''><tr><td><table width='100%'
cellspacing='0' cellpadding='0'><tr><td class='full-header'>
<table width='105%' cellspacing='0' cellpadding='0'><tr>
<td class='top_header_center'><img src='images/logo/a.jpg' width='775' height='327' border='0' usemap='#map'>
<map name='map'>
<area shape='rect' coords='0,8,152,49' href='http://dbthefuture.ovh.org/' />
<area shape='rect' coords='210,9,353,28' href='http://dbthefuture.ovh.org/news.php' />
<area shape='rect' coords='380,8,451,28' href='http://dbthefuture.ovh.org/forum/' />
<area shape='rect' coords='468,6,546,28'
href='http://dbthefuture.ovh.org/forum/viewthread.php?forum_id=6&thread_id=3&pid=3#post_3' />
<area shape='rect' coords='559,6,655,28' href='http://dbthefuture.ovh.org/register.php' />
<area shape='rect' coords='667,7,754,26' href='http://dbthefuture.ovh.org/team.php' />
</map>
<table width='105%' cellspacing='0' cellpadding='0'><tr>
<td class='top'></td>
</tr></table></tr></table><table width='100%' cellspacing='0' cellpadding='0'><tr>
<td class='menu_center' width='1'>
<div>";
[b]
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>
[/b]
echo "</div>
</td>
<table width='100%' cellspacing='0' cellpadding='0'>\n<tr>\n";
}
wyskakuje mi taki blad
Parse error: syntax error, unexpected '/' in /home/d/b/t/dbthefuture/www/themes/dbthefuture/theme.php on line 139
I teraz nie wiem jak te cudzyslowia zrobic, bo tyle tego jest a ja nie wiem co do czego, czy nie jest potrzebna itd.
Pomuzcie, jak mam zle wpisane to jak byscie mogli napiszcie poprawnie. Jak cos to ja niechce zeby to byl panel z tymi belkami u gory jak cos. tylko poprostu na grafie w odpowiedniej tabelce <div>
Prosze o pomoc.
Pozdro |
|
|
|
szer |
Dodany dnia 31.03.2007 13:36:07
|
Zaawansowany
Postów: 1139 Pomógł: 4
Data rejestracji: 13.11.2004 23:06
|
<?
/*--------------------------------------------+
| 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) |
+--------------------------------------------*/
/*--------------------------------------------+
| Insecure Theme for PHP-Fusion v6 |
|---------------------------------------------|
| author: PHP-Fusion Themes - ww.old © 2005 |
| web: http://phpfusion.org |
| email: |
|---------------------------------------------|
| Released under the terms and conditions of |
| the GNU General Public License (Version 2) |
+--------------------------------------------*/
/************************/
/* Theme Settings */
/************************/
$body_text = "#CCCCCC";
$body_bg = '#222222';
$theme_width = "820";
$theme_width_l = "172";
$theme_width_r = "173";
function render_header($header_content) {
global $theme_width,$settings,$userdata,$aidlink,$loginerror;
echo "<table align='center' width='$theme_width' cellspacing='0' cellpadding='0' height='100%'><tr><td
class='table_left'><img src='".THEME."images/blank.gif' alt=''></td><td class='table_center'
valign='top'><table align='center' width='100%' cellspacing='0' cellpadding='0''><tr><td><table width='100%'
cellspacing='0' cellpadding='0'><tr><td class='full-header'>
<table width='105%' cellspacing='0' cellpadding='0'><tr>
<td class='top_header_center'><img src='images/logo/a.jpg' width='775' height='327' border='0' usemap='#map'>
<map name='map'>
<area shape='rect' coords='0,8,152,49' href='http://dbthefuture.ovh.org/' />
<area shape='rect' coords='210,9,353,28' href='http://dbthefuture.ovh.org/news.php' />
<area shape='rect' coords='380,8,451,28' href='http://dbthefuture.ovh.org/forum/' />
<area shape='rect' coords='468,6,546,28'
href='http://dbthefuture.ovh.org/forum/viewthread.php?forum_id=6&thread_id=3&pid=3#post_3' />
<area shape='rect' coords='559,6,655,28' href='http://dbthefuture.ovh.org/register.php' />
<area shape='rect' coords='667,7,754,26' href='http://dbthefuture.ovh.org/team.php' />
</map>
<table width='105%' cellspacing='0' cellpadding='0'><tr>
<td class='top'></td>
</tr></table></tr></table><table width='100%' cellspacing='0' cellpadding='0'><tr>
<td class='menu_center' width='1'>
<div>";
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>";
echo "</div>
</td>
<table width='100%' cellspacing='0' cellpadding='0'>\n<tr>\n";
}
|
|
|
|
mtbujnos |
Dodany dnia 31.03.2007 20:25:15
|
Przedszkolak
Postów: 4
Data rejestracji: 31.03.2007 12:00
|
Doobra jest ok. Tylko czemu jest tak dziwniez wyszukiwarkami. W operze jest dobrze, a w firefoxie i IE nie dokonca za grafa bo ejst obcieta i teraz jak dopasowac. Jak dodam te <BR> czyby wiecej grafy odsłoniło to wtedy w operze bedzie puste miejsce i teraz co ?? Wiec moze jak rozwikłac ten problem ?
CZemu w tym panelu logowowania (mod), zawsze sa rowna te avatary, czy miejsca na login i haslo ???? A nic tam nie dali <br> .
Zobaczcie moj kod
<table>";
if (iMEMBER) {
;
if ($userdata['user_avatar'] != "") {
echo "<center><br><br><br> <td>
<img src='".BASEDIR."images/avatars/".$userdata['user_avatar']."' width='90' hight='105'
alt='".$data['user_name']."'></center><br></td>\n";
} else {
echo "<br><br><br><br><td><center><img src='".INFUSIONS."user_info_panel/images/1.jpg' width='70'
hight='70'></center> <br><br><br> </td> \n";
}
$msg_count = dbcount("(message_id)", "messages", "message_to='".$userdata['user_id']."' AND message_read='0'AND
message_folder='0'");
echo "<td><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></td>\n";
}
tablebreak();
} else {
echo "<div align='center'>".(isset($loginerror) ? $loginerror : "")."
<br><br><br><br>
<form name='loginform' method='post' action='".FUSION_SELF."'>
<input type='text' name='user_name' class='textbox1' value='nick' onBlur=\"if(this.value=='')
this.value='nick';\" onFocus=\"if(this.value=='nick') this.value='';\" style='width:84px;height:17px;margin:10px
0px 0px 65px' border='0' ><p>
<input type='password' name='user_pass' class='textbox1' value='hasło' onBlur=\"if(this.value=='')
this.value='hasło';\" onFocus=\"if(this.value=='hasło') this.value='';\"
style='width:84px;height:17px;margin:0px 0px 0px 65px' border='0' ><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='button1'>
</form>
\n";
if ($settings['enable_registration']) {
echo "<a href='".BASEDIR."register.php' class='side'><img src='".THEME."images/ap4.jpg' border='0'
alt=''></a><br>\n";
}
echo "<a href='".BASEDIR."lostpassword.php' class='side'><img src='".THEME."images/ap3.jpg'
border='0'></a><br>\n";
}
echo "</table>
<table width='100%' height:'209px' cellspacing='0' cellpadding='0'margin='0px' ><tr><br>\n";
}
Co jest zle ze nie moge ich raem zsynchronizowac??
moze te <BR> i jakos inaczej sie jest przesowa . Bo ja chce miec 3 kolumny. na logowanie,sonde i reklame.
Ale nei wiem jak zrobic zeby mi nie ucinalo grafy, jakchcecie to zobaczcie
strone [url] WWW.DBTHEFUTURE.O... [/url]
Edytowane przez mtbujnos dnia 01.04.2007 08:19:37
|
|
|
|
lada12 |
Dodany dnia 03.04.2007 16:17:19
|
Przedszkolak
Postów: 38
Data rejestracji: 05.04.2006 22:01
|
<table>";
if (iMEMBER) {
;
if ($userdata['user_avatar'] != "") {
echo "<center><br><br><br> <td>
<img src='".BASEDIR."images/avatars/".$userdata['user_avatar']."' width='90' hight='105'
alt='".$data['user_name']."'></center><br></td>\n";
} else {
echo "<br><br><br><br><td><center><img src='".INFUSIONS."user_info_panel/images/1.jpg' width='70'
hight='70'></center> <br><br><br> </td> \n";
}
$msg_count = dbcount("(message_id)", "messages", "message_to='".$userdata['user_id']."' AND message_read='0'AND
message_folder='0'");
echo "<td><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></td>\n";
}
tablebreak();
} else {
echo "<div align='center'>".(isset($loginerror) ? $loginerror : "")."
<br><br><br><br>
<form name='loginform' method='post' action='".FUSION_SELF."'>
<input type='text' name='user_name' class='textbox1' value='nick' onBlur=\"if(this.value=='')
this.value='nick';\" onFocus=\"if(this.value=='nick') this.value='';\" style='width:84px;height:17px;margin:10px
0px 0px 65px' border='0' ><p>
<input type='password' name='user_pass' class='textbox1' value='hasło' onBlur=\"if(this.value=='')
this.value='hasło';\" onFocus=\"if(this.value=='hasło') this.value='';\"
style='width:84px;height:17px;margin:0px 0px 0px 65px' border='0' ><br>
<input type='checkbox' name='remember_me' value='y' title='Zapamiętaj mnie' style='vertical-align:middle;'>
<input type='submit' name='login' value='' class='button1'>
</form>
\n";
if ($settings['enable_registration']) {
echo "<a href='".BASEDIR."register.php' class='side'><img src='".THEME."images/ap4.jpg' border='0'
alt=''></a><br>\n";
}
echo "<a href='".BASEDIR."lostpassword.php' class='side'><img src='".THEME."images/ap3.jpg'
border='0'></a><br>\n";
}
echo "</table>
<table width='100%' height:'209px' cellspacing='0' cellpadding='0'margin='0px' ><tr><br>\n";
}
Sprawdź teraz. Miałeś przycisk z tłem na którym był napis zaloguj.. i na to miałeś nałożony tekst loguj...
U mnie po zalogowaniu nie działały avatary, wystarczyło zmienić w pliku theme.php
global $theme_width,$settings;
na
global $theme_width,$userdata,$aidlink,$settings,$loginerror;
Fragment ten znajduje się zwykle w początkowychfragmentach kodu!
Edytowane przez lada12 dnia 03.04.2007 16:21:08
|
|
|