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

Parašė luxkas· 2008 Rugp. 4 18:08:51
#1

Nu ieskojau tokiu temu, bet neradau gal blogai ieskojau... :D
Tai va kaip padaryt kad pagrindiniame puspali rodytu vartotojo avatara? :?

Parašė _MaZvE_· 2008 Rugp. 4 18:08:17
#2

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...

Parašė ex-it· 2008 Rugp. 4 18:08:21
#3

pagrindiniame puspali - tai cia kurioje vietoje butu jame?

Parašė luxkas· 2008 Rugp. 4 19:08:29
#4

kaireje puseje virsuje

Parašė ex-it· 2008 Rugp. 4 19:08:09
#5

user_info_panel?

Parašė Niger· 2008 Rugp. 4 19:08:38
#6

luxkas paskaityk antra posta kelius kartus idemiai tikrai suprasi.

Parašė luxkas· 2008 Rugp. 4 19:08:08
#7

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?

Redagavo luxkas· 2008 Rugp. 4 19:08:07

Parašė ex-it· 2008 Rugp. 4 19:08:34
#8

Pilna tų user_info panelių su avatarais, pats susirask ir išsiimk kodą.

Parašė MAnjack· 2008 Rugp. 4 20:08:26
#9

<img src=".IMAGES."avatars/".$userdata['user_avatar'].">

Redagavo bruzgis· 2008 Rugp. 4 21:08:39

Parašė luxkas· 2008 Rugp. 4 20:08:09
#10

neveikia :(

Parašė Žmogus· 2008 Rugp. 4 20:08:47
#11

<img src=".IMAGES."avatars/".$userdata['user_avatar'].">


:D

Parašė luxkas· 2008 Rugp. 4 21:08:16
#12

neranda to mano avataro... :? Neuzkrauna...

Redagavo luxkas· 2008 Rugp. 4 21:08:00

Parašė MAnjack· 2008 Rugp. 4 21:08:02
#13

<img src='".IMAGES."avatars/".$userdata['user_avatar']."'>



Parašė luxkas· 2008 Rugp. 4 21:08:48
#14

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)\">




Parašė LiGhT-KiD· 2008 Rugp. 5 05:08:42
#15

<?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)

Redagavo LiGhT-KiD· 2008 Rugp. 5 05:08:23

Parašė MAnjack· 2008 Rugp. 5 07:08:16
#16

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ą.

Parašė luxkas· 2008 Rugp. 5 18:08:08
#17

aciu susitvarkiau :)

Parašė luxkas· 2008 Rugp. 5 19:08:38
#18

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

Parašė ex-it· 2008 Rugp. 5 20:08:12
#19

OMG! closeside(); uždėk prieš ?>

Parašė luxkas· 2008 Rugp. 5 20:08:24
#20

Tikrai OMG! :D THX prazioplinau :D

Parašė ex-it· 2008 Rugp. 5 20:08:48
#21

Dabar 10 mane :]:]

Parašė luxkas· 2008 Rugp. 5 20:08:55
#22

Jau ivertines daugiau nebeleidzia :D

Parašė luxkas· 2008 Rugp. 5 21:08:49
#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.

Redagavo luxkas· 2008 Rugp. 6 13:08:11