ashais13 Posted February 19, 2009 Report Share Posted February 19, 2009 Tad nu beidzot atradu to avataru kodu.. if($member['avatar']=='') { $member['avatar']="<img src=\"style_images/noavatar.gif\" width=\"64\" height=\"64\">";} Bet kā lai viņu ieliek šiet lai viņš darbotos?? <?php mysql_connect("localhost", "root", "pamparam"); mysql_select_db("db"); if(isset($_COOKIE['member_id'])){ $get=mysql_query("SELECT * FROM `3453_members` WHERE id='".intval($_COOKIE['member_id'])."'") or die(mysql_error()); $udata=mysql_fetch_object($get); if($udata->member_login_key==$_COOKIE['pass_hash']) { echo " <center><h1>Sveiks ".$udata->members_display_name."</h1></center><br> <a href= 'f/index.php?act=UserCP&CODE=00'>Labot Profilu</a><br> <a href= 'f/index.php?act=Members'>Lietotāji</a><br> <a href= 'f/index.php?act=Search&f=0'>Meklēt forumā</a><br><br> <a href= '/f/index.php?act=Login&CODE=03&k=4c92e878c20400996e743ad864f16e04'>[IZIET]</a>"; }else{ echo ""; } }else{ echo " "; } ?> Quote Link to comment Share on other sites More sharing options...
bubu Posted February 19, 2009 Report Share Posted February 19, 2009 echo '<img src="style_images/noavatar.gif" width="64" height="64">'; ? Quote Link to comment Share on other sites More sharing options...
ashais13 Posted February 19, 2009 Author Report Share Posted February 19, 2009 (edited) Galvenais būtu šito daļu kko iedabūt tur: ($member['avatar']=='') Edited February 19, 2009 by ashais13 Quote Link to comment Share on other sites More sharing options...
feikkk Posted February 20, 2009 Report Share Posted February 20, 2009 (edited) <?php mysql_connect("localhost", "root", "pamparam"); mysql_select_db("db"); if(isset($_COOKIE['member_id'])){ $get=mysql_query("SELECT * FROM `3453_members` WHERE id='".intval($_COOKIE['member_id'])."'") or die(mysql_error()); $udata=mysql_fetch_object($get); // tik neesmu īsti drošs, kā tavā forumā tiek nosaukta avatara atrašanās vieta datubāzē if($udata->avatar=='') { $avatars = "<img src=\"style_images/noavatar.gif\" width=\"64\" height=\"64\">";} else { $avatars = $udata->avatar;} if($udata->member_login_key==$_COOKIE['pass_hash']) { echo " <center><h1>Sveiks ".$udata->members_display_name."</h1></center><br> ". $avatars ."<br> <a href= 'f/index.php?act=UserCP&CODE=00'>Labot Profilu</a><br> <a href= 'f/index.php?act=Members'>Lietotāji</a><br> <a href= 'f/index.php?act=Search&f=0'>Meklēt forumā</a><br><br> <a href= '/f/index.php?act=Login&CODE=03&k=4c92e878c20400996e743ad864f16e04'>[IZIET]</a>"; }else{ echo ""; } }else{ echo " "; } ?> Edited February 20, 2009 by feikkk Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.