luxkas
Narys
Spalvotas
Pranešimai: 56
Įstojęs: 2008 Kov. 19 12:03:23
|
Nu ieskojau tokiu temu, bet neradau gal blogai ieskojau...
Tai va kaip padaryt kad pagrindiniame puspali rodytu vartotojo avatara?
Mokinys |
_MaZvE_
VIP narys
Generolas
Pranešimai: 1002
Įstojęs: 2008 Sau. 14 17:01:39
|
Isideti avatara.Arba atsisiusti user_info_panele kita nes ant orginalios nerodo kiek zinau.Ir beje forume tokiu themu buvo gal 50 tai tikrai blogai ieskojai...
|
ex-it
Narys
Ekspertas
Pranešimai: 2696
Įstojęs: 2007 Gru. 24 11:12:58
|
pagrindiniame puspali - tai cia kurioje vietoje butu jame?
|
luxkas
Narys
Spalvotas
Pranešimai: 56
Įstojęs: 2008 Kov. 19 12:03:23
|
kaireje puseje virsuje
Mokinys |
ex-it
Narys
Ekspertas
Pranešimai: 2696
Įstojęs: 2007 Gru. 24 11:12:58
|
user_info_panel?
|
Niger
Garbės narys
Antras po Dievo
Pranešimai: 3554
Įstojęs: 2005 Bir. 21 18:06:06
|
luxkas paskaityk antra posta kelius kartus idemiai tikrai suprasi.
|
luxkas
Narys
Spalvotas
Pranešimai: 56
Įstojęs: 2008 Kov. 19 12:03:23
|
nu ne as pats visai kitaip perkuriau ta user_info panele ko nereikia isemiau, bet ten taip ar taip nerode avataro
----------------------------
man reikia php skripto kuris rodytu vartotojo avatara. Dabar aiskiau?
Mokinys
Redagavo luxkas 2008 Rugp. 4 19:08:07 |
ex-it
Narys
Ekspertas
Pranešimai: 2696
Įstojęs: 2007 Gru. 24 11:12:58
|
Pilna tų user_info panelių su avatarais, pats susirask ir išsiimk kodą.
|
MAnjack
Garbės narys
Legenda
Pranešimai: 11821
Įstojęs: 2006 Kov. 2 20:03:58
|
<img src=".IMAGES."avatars/".$userdata['user_avatar'].">
|
luxkas
Narys
Spalvotas
Pranešimai: 56
Įstojęs: 2008 Kov. 19 12:03:23
|
neveikia
Mokinys |
Žmogus
Narys
Viršesnis už Dievą
Pranešimai: 5621
Įstojęs: 2006 Gru. 8 17:12:08
|
<img src=".IMAGES."avatars/".$userdata['user_avatar'].">
|
luxkas
Narys
Spalvotas
Pranešimai: 56
Įstojęs: 2008 Kov. 19 12:03:23
|
neranda to mano avataro... Neuzkrauna...
Mokinys
Redagavo luxkas 2008 Rugp. 4 21:08:00 |
MAnjack
Garbės narys
Legenda
Pranešimai: 11821
Įstojęs: 2006 Kov. 2 20:03:58
|
<img src='".IMAGES."avatars/".$userdata['user_avatar']."'>
|
luxkas
Narys
Spalvotas
Pranešimai: 56
Įstojęs: 2008 Kov. 19 12:03:23
|
taspats ?|
Istraukiau koda is vienos paneles bet nemoku iterpt
if ($userdata['user_avatar'] != "") {
echo "<center><img border='0' alt='".$locale['on106']."' title='".$locale['on106']."' src='".BASEDIR."images/avatars/".$userdata['user_avatar']."'></center>\n";
} else {
echo "<center><img border='0' alt='".$locale['on107']."' title='".$locale['on107']."' src='".BASEDIR."images/noimage.gif'></center>\n";
}
if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) {
echo "<br><center><A href=\"javascript:show_hide(show_hide1)\">
Mokinys |
LiGhT-KiD
Narys
Margas
Pranešimai: 98
Įstojęs: 2008 Geg. 20 03:05:45
|
<?php
/*---------------------------------------------------+
| PHP-Fusion 6 Content Management System
+----------------------------------------------------+
| Copyright © 2002 - 2005 Nick Jones
| http://www.php-fusion.co.uk/
+----------------------------------------------------+
| Released under the terms & conditions of v2 of the
| GNU General Public License. For details refer to
| the included gpl.txt file or visit http://gnu.org
+----------------------------------------------------*/
if (!defined("IN_FUSION")) { header("Location:../../index.php"); exit; }
if (iMEMBER) {
openside($userdata['user_name']);
$msg_count = dbcount("(message_id)", "messages", "message_to='".$userdata['user_id']."' AND message_read='0'AND message_folder='0'");
if ($userdata['user_avatar'] != "") {
echo "<center><img src='".IMAGES."avatars/".$userdata['user_avatar']."' alt='".$locale['567']."'><br>\n</center>";
} else {
echo "<center><img src='".IMAGES."avatars/noimage.gif' alt='".$locale['567']."'><br>\n</center>";
}
echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."edit_profile.php' class='side'>".$locale['080']."</a><br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."messages.php' class='side'>".$locale['081']."</a><br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."members.php' class='side'>".$locale['082']."</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'>".$locale['083']."</a><br>\n";
}
echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."setuser.php?logout=yes' class='side'>".$locale['084']."</a>\n";
if ($msg_count) echo "<br><br><center><b><a href='".BASEDIR."messages.php' class='side'>".sprintf($locale['085'], $msg_count).($msg_count == 1 ? $locale['086'] : $locale['087'])."</a></b></center>\n";
} else {
openside($locale['060']);
echo "<div align='center'>".(isset($loginerror) ? $loginerror : "")."
<form name='loginform' method='post' action='".FUSION_SELF."'>
".$locale['061']."<br>
<input type='text' name='user_name' class='textbox' style='width:100px'><br>
".$locale['062']."<br>
<input type='password' name='user_pass' class='textbox' style='width:100px'><br>
<input type='checkbox' name='remember_me' value='y' title='".$locale['063']."' style='vertical-align:middle;'>
<input type='submit' name='login' value='".$locale['064']."' class='button'><br>
</form>
<br>\n";
if ($settings['enable_registration']) {
echo "".$locale['065']."<br><br>\n";
}
echo $locale['066']."
</div>\n";
}
closeside();
?>
cia visas user_info_panel kodas istrink sena ir irasyk sita B)
|
MAnjack
Garbės narys
Legenda
Pranešimai: 11821
Įstojęs: 2006 Kov. 2 20:03:58
|
if ($userdata['user_avatar'] != "") {
echo "<center><img border='0' alt='".$locale['on106']."' title='".$locale['on106']."' src='".BASEDIR."images/avatars/".$userdata['user_avatar']."'></center>\n";
} else {
echo "<center><img border='0' alt='".$locale['on107']."' title='".$locale['on107']."' src='".BASEDIR."images/noimage.gif'></center>\n";
}
Be to reikia būt įsidėjus avatarą.
|
luxkas
Narys
Spalvotas
Pranešimai: 56
Įstojęs: 2008 Kov. 19 12:03:23
|
aciu susitvarkiau
Mokinys |
luxkas
Narys
Spalvotas
Pranešimai: 56
Įstojęs: 2008 Kov. 19 12:03:23
|
visdelto dar ne viskas :/
Man reikia issimt prisijungimo lentele ja pakeisiu paprastom nuorodom, bet iskilo bedu, lentele pasalinau viskas gerai jokiu klaidu, bet prisijungus puslapis issikraipo.. stai paneles skriptas pries redagavima
<?php
/*---------------------------------------------------+
| PHP-Fusion 6 Content Management System
+----------------------------------------------------+
| Copyright © 2002 - 2005 Nick Jones
| http://www.php-fusion.co.uk/
+----------------------------------------------------+
| Released under the terms & conditions of v2 of the
| GNU General Public License. For details refer to
| the included gpl.txt file or visit http://gnu.org
+----------------------------------------------------*/
if (!defined("IN_FUSION")) { header("Location:../../index.php"); exit; }
if (iMEMBER) {
openside($userdata['user_name']);
$msg_count = dbcount("(message_id)", "messages", "message_to='".$userdata['user_id']."' AND message_read='0'AND message_folder='0'");
if ($userdata['user_avatar'] != "") {
echo "<center><img src='".IMAGES."avatars/".$userdata['user_avatar']."' alt='".$locale['567']."'><br>\n</center>";
} else {
echo "<center><img src='".IMAGES."avatars/noimage.gif' alt='".$locale['567']."'><br>\n</center>";
}
echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."edit_profile.php' class='side'>".$locale['080']."</a><br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."messages.php' class='side'>".$locale['081']."</a><br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."members.php' class='side'>".$locale['082']."</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'>".$locale['083']."</a><br>\n";
}
echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."setuser.php?logout=yes' class='side'>".$locale['084']."</a>\n";
if ($msg_count) echo "<br><br><center><b><a href='".BASEDIR."messages.php' class='side'>".sprintf($locale['085'], $msg_count).($msg_count == 1 ? $locale['086'] : $locale['087'])."</a></b></center>\n";
} else {
openside($locale['060']);
echo "<div align='center'>".(isset($loginerror) ? $loginerror : "")."
<form name='loginform' method='post' action='".FUSION_SELF."'>
".$locale['061']."<br>
<input type='text' name='user_name' class='textbox' style='width:100px'><br>
".$locale['062']."<br>
<input type='password' name='user_pass' class='textbox' style='width:100px'><br>
<input type='checkbox' name='remember_me' value='y' title='".$locale['063']."' style='vertical-align:middle;'>
<input type='submit' name='login' value='".$locale['064']."' class='button'><br>
</form>
<br>\n";
if ($settings['enable_registration']) {
echo "".$locale['065']."<br><br>\n";
}
echo $locale['066']."
</div>\n";
}
closeside();
?>
Ir sitas po
<?php
/*---------------------------------------------------+
| PHP-Fusion 6 Content Management System
+----------------------------------------------------+
| Copyright © 2002 - 2005 Nick Jones
| http://www.php-fusion.co.uk/
+----------------------------------------------------+
| Released under the terms & conditions of v2 of the
| GNU General Public License. For details refer to
| the included gpl.txt file or visit http://gnu.org
+----------------------------------------------------*/
if (!defined("IN_FUSION")) { header("Location:../../index.php"); exit; }
if (iMEMBER) {
openside('');
if ($userdata['user_avatar'] != "") {
echo "<center><img src='".IMAGES."avatars/".$userdata['user_avatar']."' alt='".$locale['567']."'><br>\n</center>";
} else {
echo "<center><img src='".IMAGES."avatars/noimage.gif' alt='".$locale['567']."'><br>\n</center>";
}
echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."edit_profile.php' class='side'>".$locale['080']."</a><br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."messages.php' class='side'>".$locale['081']."</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'>".$locale['083']."</a><br>\n";
}
echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."setuser.php?logout=yes' class='side'>".$locale['084']."</a>\n";
if ($msg_count) echo "<br><br><center><b><a href='".BASEDIR."messages.php' class='side'>".sprintf($locale['085'], $msg_count).($msg_count == 1 ? $locale['086'] : $locale['087'])."</a></b></center>\n";
}
?>
Jei galit kas pataisykit kad normaliai viskas butu
Mokinys |
ex-it
Narys
Ekspertas
Pranešimai: 2696
Įstojęs: 2007 Gru. 24 11:12:58
|
OMG! closeside(); uždėk prieš ?>
|
luxkas
Narys
Spalvotas
Pranešimai: 56
Įstojęs: 2008 Kov. 19 12:03:23
|
Tikrai OMG! THX prazioplinau
Mokinys |
ex-it
Narys
Ekspertas
Pranešimai: 2696
Įstojęs: 2007 Gru. 24 11:12:58
|
Dabar 10 mane
|
luxkas
Narys
Spalvotas
Pranešimai: 56
Įstojęs: 2008 Kov. 19 12:03:23
|
Jau ivertines daugiau nebeleidzia
Mokinys |
luxkas
Narys
Spalvotas
Pranešimai: 56
Įstojęs: 2008 Kov. 19 12:03:23
|
!!! blemba dabar atsijungus puslapis issikraipo
<?php
/*---------------------------------------------------+
| PHP-Fusion 6 Content Management System
+----------------------------------------------------+
| Copyright © 2002 - 2005 Nick Jones
| http://www.php-fusion.co.uk/
+----------------------------------------------------+
| Released under the terms & conditions of v2 of the
| GNU General Public License. For details refer to
| the included gpl.txt file or visit http://gnu.org
+----------------------------------------------------*/
if (!defined("IN_FUSION")) { header("Location:../../index.php"); exit; }
if (iMEMBER) {
openside('');
if ($userdata['user_avatar'] != "") {
echo "<center><img src='".IMAGES."avatars/".$userdata['user_avatar']."' alt='".$locale['567']."'><br>\n</center>";
} else {
echo "<center><img src='".IMAGES."avatars/noimage.gif' alt='".$locale['567']."'><br>\n</center>";
}
echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."edit_profile.php' class='side'>".$locale['080']."</a><br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."messages.php' class='side'>".$locale['081']."</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'>".$locale['083']."</a><br>\n";
}
echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."setuser.php?logout=yes' class='side'>".$locale['084']."</a>\n";
if ($msg_count) echo "<br><br><center><b><a href='".BASEDIR."messages.php' class='side'>".sprintf($locale['085'], $msg_count).($msg_count == 1 ? $locale['086'] : $locale['087'])."</a></b></center>\n";
}
closeside();
?>
-----------------------------------------
JAU SUSITVARKIAU. Buvo daug paprastesnis budas... Tiesiog pasidariau kad panele matytu tik nariai.
Mokinys
Redagavo luxkas 2008 Rugp. 6 13:08:11 |