Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Avataras

Parašė Gtr· 2007 Sau. 20 11:01:56
#1

Sveiki,

Gal galit padet kaip padaryti defaultini avatara? :) kad pvz uzsiregina zmogus ir neuzsidejo avataro ? tai kad butu NO AVATAR ar dar ka.. :)

NU koki defaultini zodziu idet :P

Aciu jaj kas pades...


Sorry jaj tokia tema buvo....
Bet kiek ieskojau neradau atsakymo sau..

Parašė BloodKiller· 2007 Sau. 20 11:01:11
#2

songokas parašė:
Sveiki,

Gal galit padet kaip padaryti defaultini avatara? :) kad pvz uzsiregina zmogus ir neuzsidejo avataro ? tai kad butu NO AVATAR ar dar ka.. :)

NU koki defaultini zodziu idet :P

Aciu jaj kas pades...


Sorry jaj tokia tema buvo....
Bet kiek ieskojau neradau atsakymo sau..


...
if (!$data['user_avatar']) {
  echo "<img src='no_avatar.bmp'>";
}
...



Redagavo BloodKiller· 2007 Sau. 20 12:01:33

Parašė jomalo· 2007 Sau. 20 12:01:24
#3

http://www.php-fusion.projektas...._id=77#728

Parašė Gtr· 2007 Sau. 20 13:01:48
#4

nezinau gal durnai skamba... bet kad user_info_panel pasmane nieko nera su avatar.. bent neradau... ten visokie pas ir pan..
:(

Parašė mXt· 2007 Sau. 20 15:01:10
#5

Idek visa savo user_info_panel.php koda, padesim

Parašė Gtr· 2007 Sau. 20 16:01:09
#6

aš net galvojau netam php faile žiuriu.. tai buvau net visa savo php fusion papke praskanaves ir rado tik viena faila user_info.php

ir stai jo tirinys: <?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'");
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();
?>

Parašė mXt· 2007 Sau. 20 16:01:35
#7

Taigi pas tave ne ta user_info_panel kad avatara rodytu :D:D:D

Parašė jomalo· 2007 Sau. 20 17:01:13
#8

iside si
<?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 "<hr><center><img border='0' alt='".$locale['on106']."' title='".$locale['on106']."' src='".BASEDIR."images/avatars/".$userdata['user_avatar']."'></center><hr>\n<br>";
} else {
echo "<hr><center><img border='0' alt='".$locale['on107']."' title='".$locale['on107']."' src='".BASEDIR."images/noimage.png'></center><hr>\n<br>";
}
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();
?>



Parašė Gtr· 2007 Sau. 20 21:01:04
#9

Taip ir galvojau kad kasnors žiopla bus.. :D

tai iškur iškast ta kad rodytu avatara... :D

beje kaip suprast iside si

Redagavo Gtr· 2007 Sau. 20 21:01:12

Parašė jomalo· 2007 Sau. 20 21:01:30
#10

Gtr parašė:
Taip ir galvojau kad kasnors žiopla bus.. :D

tai iškur iškast ta kad rodytu avatara... :D

beje kaip suprast iside si

Klaid padariau :) turejau isideti sita user info panele kuria parasiau

Parašė Gtr· 2007 Sau. 21 10:01:24
#11

as bandziau ta kur tu parasiai isidet.... tai man vietoi to kad viskas veiktu kai uzeini i tinklapi... matai du laukelius kur ivesti vartotojo varda ir pass o perwisa ta sona erorai wisokie ir pan,.... ir dar wisas tas textas kuri parasiai saite atsiranda.... per wisa sona pereina sitas textas... :D na zodziu toj pusej lieka tik du laukialiai kur ivest tuos :D o wisut sitas kur tu parasiai rasomas :DDDDDD tai kas netaip ?:D:(