Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Keri'o klausimai.

Parašė Mandello· 2010 Geg. 1 23:05:24
#29

Gal kas turit arba galit prisegti user_info_panel ?
Man reikia v6 fusion.
Pavizdys:




Buciau labai dekingas.
Arba galbut galit pritaikyti ant v6?
Kodas:
openside("Vartotojo zona");

if (!defined("IN_FUSION")) { die("Access Denied"); }
if (iMEMBER) {

$msg_count = dbcount("(message_id)", DB_MESSAGES, "message_to='".$userdata['user_id']."' AND message_read='0'AND message_folder='0'");

echo "<p style='text-align:center; margin:5px;'>";
echo ($userdata['user_avatar'] ? "<a href='".BASEDIR."edit_profile.php'><img src='".IMAGES."avatars/".$userdata['user_avatar']."' width='100' hight='100' border='0' alt='' title='".$locale['global_120']."' /></a>" : "<a href='".BASEDIR."edit_profile.php'><img src='".BASEDIR."/images/noav.gif' width='100' hight='100' border='0' alt='' title='".$locale['global_120']."' /></a>");
echo "</p>";

echo THEME_BULLET." <a href='".BASEDIR."edit_profile.php' class='side'>".$locale['global_120']."</a><br />\n";
echo THEME_BULLET." <a href='".BASEDIR."messages.php' class='side'>".$locale['global_121']."</a><br />\n";
echo THEME_BULLET." <a href='".BASEDIR."members.php' class='side'>".$locale['global_122']."</a><br />\n";
if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) {
echo THEME_BULLET." <a href='".ADMIN."index.php".$aidlink."' class='side'>".$locale['global_123']."</a><br />\n";
}
echo THEME_BULLET." <a href='".BASEDIR."setuser.php?logout=yes' class='side'>".$locale['global_124']."</a>\n";

if ($msg_count) { echo "<br /><br /><div style='text-align:center'><strong><a href='".BASEDIR."messages.php' class='side'>".sprintf($locale['global_125'], $msg_count).($msg_count == 1 ? $locale['global_126'] : $locale['global_127'])."</a></strong></div>\n"; }
} else {

echo "<div style='text-align:center'>\n";
echo "<form name='loginform' method='post' action='".FUSION_SELF."'>\n";
echo $locale['global_101']."<br />\n<input type='text' name='user_name' class='textbox' style='width:100px' /><br />\n";
echo $locale['global_102']."<br />\n<input type='password' name='user_pass' class='textbox' style='width:100px' /><br />\n";
echo "<input type='checkbox' name='remember_me' value='y' title='".$locale['global_103']."' style='vertical-align:middle;' />\n";
echo "<input type='submit' name='login' value='".$locale['global_104']."' class='button' /><br />\n";
echo "</form>\n<br />\n";
if ($settings['enable_registration']) {
echo "".$locale['global_105']."<br /><br />\n";
}
echo $locale['global_106']."\n</div>\n";
}

closeside();



Redagavo Mandello· 2010 Geg. 1 23:05:27