Parašė switz· 2010 Kov. 21 16:03:07
#1
Sveiki,man reikia į user info panelę idėti avataro rodymą.
User info panel kodas:
<?php
if (!defined("IN_FUSION")) { header("Location:../../index.php"); exit; }
if (iMEMBER) {
$msg_count = dbcount("(message_id)", "messages", "message_to='".$userdata['user_id']."' AND message_read='0'AND message_folder='0'");
echo "<table cellspacing='0' cellpadding='0' width='255'>
<tr>
<td>
<a href='".BASEDIR."profile.php?lookup=".$userdata['user_id']."' class='pink'>Mano profilis</a><br>
<a href='".BASEDIR."edit_profile.php' class='pink'>Redaguoti profilá</a>";
if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) {
echo "<img src='".THEME."images/blank.gif' width='18' height='0' alt=''><a href='administration/index.php".$aidlink."' style='text-decoration: none; color: #000'>Administracija</a>";
}
if ($msg_count) {
echo "<br>\n<blink><a href='".BASEDIR."messages.php' class='pink'>Asmeninës þinutës</a></blink>";
} else {
echo "<br>\n<a href='".BASEDIR."messages.php' class='pink'>Asmeninës þinutës</a>";
}
echo "<img src='".THEME."images/blank.gif' width='15' height='0' alt=''><a href='".BASEDIR."setuser.php?logout=yes' style='text-decoration: none'><span style='color: #000'>Atsijungti</span></td>
</tr>
</table>\n";
} else {
echo "<form name='loginform' method='post' action='".FUSION_SELF."'>
<table cellspacing='0' cellpadding='0' width='156'>
<tr>
<td colspan='2'><input type='text' name='user_name' class='input' style='margin-bottom: 3px' value='Slapyvardis' onfocus=\"if(this.value=='Slapyvardis'){this.value='';}\" onblur=\"if(this.value==''){this.value='Slapyvardis';}\"></td>
<td><input type='password' name='user_pass' class='input' value='Slaptaþodis' onfocus=\"if(this.value=='Slaptaþodis'){this.value='';}\" onblur=\"if(this.value==''){this.value='Slaptaþodis';}\"></td>
<td align='right'><input type='submit' name='login' value='Ok' class='button-ok'></td>
</tr>
</form>
<tr>
<td colspan='2' align='center'>\n";
if ($settings['enable_registration']) {
echo "<a href='".BASEDIR."register.php' class='pink' style='line-height: 10px'>Dar ne narys?! Uþsiregistruok! <br></a>";
}
echo "<a href='".BASEDIR."lostpassword.php' class='pink' style='line-height: 10px'>Pamirðai savo slaptaþodá?</a>\n";
echo "</td>
</tr>
</table>\n";
}
?>
User info panelės plotas: