dokładnie, po prostu problem wywaliłem opcje wyświetlania rozszerzonych PW
w pliku user_info_panel.php
mianowicie są to linijki:
$msg_count = dbcount("(message_id)", "messagesv5", "message_to='".$userdata['user_id']."' AND message_read='0'AND message_folder='0'");
if ($msg_count) echo "<center><b><a href='".FUSION_INFUSIONS."messagesv5/messages.php' class='side'>".sprintf(LAN_85, $msg_count).($msg_count == 1 ? LAN_86 : LAN_87)."</a></b></center>\n";
gdzie ona jest?
zupełnie na początku: zaznaczone na czerwono, należy usunąć :)
<?php
/*--------------------------------------------+
| PHP-Fusion 5 - Content Management System |
|---------------------------------------------|
| author: Nick Jones (Digitanium) © 2002-2005 |
| web: http://www.php-fusion.co.uk |
| email: |
|---------------------------------------------|
| Released under the terms and conditions of |
| the GNU General Public License (Version 2) |
+--------------------------------------------*/
@include FUSION_INFUSIONS."user_info_panel/lang/".$settings['language'].".php";
@include FUSION_INFUSIONS."user_info_panel/lang/English.php";
if (!defined("IN_FUSION")) { header("Location:../../index.php"); exit; }
if (iMEMBER) {
openside("".WWOLD_001." " .$userdata['user_name']);
[color=red][b]$msg_count = dbcount("(message_id)", "messagesv5", "message_to='".$userdata['user_id']."' AND message_read='0'AND message_folder='0'");
if ($msg_count) echo "<center><b><a href='".FUSION_INFUSIONS."messagesv5/messages.php' class='side'>".sprintf(LAN_85, $msg_count).($msg_count == 1 ? LAN_86 : LAN_87)."</a></b></center>\n";[/b][/color]
if (empty($lastvisited)) { $lastvisited = time(); }
$new_posts = dbcount("(thread_id)", "posts", "thread_id='".$userdata['user_id']."' and post_datestamp>'$lastvisited'");
if ($new_posts) echo "<center>".sprintf("".WWOLD_701."", $new_posts).($new_posts == 1 ? WWOLD_702 : WWOLD_703)."<br><a href='".FUSION_FORUM."index.php' class='side'>".WWOLD_704."</a></center>\n";
if ($userdata['user_avatar'] != "") {
echo "<br><center><img src='".FUSION_BASE."fusion_public/avatars/".$userdata['user_avatar']."'></center><br>\n";
} else {
echo "<br><center><img src='".FUSION_INFUSIONS."user_info_panel/images/brak.gif'></center><br>\n";
}
}
if (iMEMBER) {
echo "<script type='text/javascript' src='".FUSION_INFUSIONS."user_info_panel/javascript/menu.js' language='Javascript'></script><script type='text/javascript' src='".FUSION_INFUSIONS."user_info_panel/javascript/gpe.js' language='Javascript'></script><img src='".FUSION_INFUSIONS."user_info_panel/images/icon_members.gif'> <b>".WWOLD_002."</b><br><img src='".FUSION_THEME."images/bullet.gif'>
<a href='".FUSION_BASE."edit_profile.php'>".LAN_80."</a><br><img src='".FUSION_THEME."images/bullet.gif'> <a href='".FUSION_INFUSIONS."messagesv5/messages.php'>".LAN_81."</a><br><img src='".FUSION_THEME."images/bullet.gif'> <a href='".FUSION_BASE."members.php'>".LAN_82."</a><br>";
if (iADMIN) {
echo "<img src='".FUSION_THEME."images/bullet.gif'> <a href='".FUSION_ADMIN."index.php'>".LAN_83."</a><br>\n";
}
echo "<a onClick=\"expandcontent('add')\" style=\"cursor:hand; cursor:pointer\">
<img src='".FUSION_THEME."images/bullet.gif'> ".WWOLD_101."</span></a>
<div id=\"add\" class=\"switchcontent\"> <img src='".FUSION_THEME."images/bullet.gif'> <a href='".FUSION_BASE."submit.php?stype=n' class='side'>".WWOLD_102."</a><br> <img src='".FUSION_THEME."images/bullet.gif'> <a href='".FUSION_BASE."submit.php?stype=l' class='side'>".WWOLD_103."</a><br> <img src='".FUSION_THEME."images/bullet.gif'> <a href='".FUSION_BASE."submit.php?stype=a' class='side'>".WWOLD_104."</a></div><br>";
echo "<br><img src='".FUSION_INFUSIONS."user_info_panel/images/icon_community.gif'> <b>".WWOLD_003."</b>";
echo "<br><a onClick=\"expandcontent('top1')\" style=\"cursor:hand; cursor:pointer\">
<img src='".FUSION_THEME."images/bullet.gif'> ".WWOLD_201."</span></a>
<div id=\"top1\" class=\"switchcontent\"><br>";
include FUSION_INFUSIONS."user_info_panel/includes/top_downloads.php";
echo "</div>";
echo "<br><a onClick=\"expandcontent('top2')\" style=\"cursor:hand; cursor:pointer\">
<img src='".FUSION_THEME."images/bullet.gif'> ".WWOLD_301."</span></a>
<div id=\"top2\" class=\"switchcontent\"><br>";
include FUSION_INFUSIONS."user_info_panel/includes/top_weblinks.php";
echo "</div>";
echo "<br><a onClick=\"expandcontent('top3')\" style=\"cursor:hand; cursor:pointer\">
<img src='".FUSION_THEME."images/bullet.gif'> ".WWOLD_401."</span></a>
<div id=\"top3\" class=\"switchcontent\"><br>";
include FUSION_INFUSIONS."user_info_panel/includes/top_threads.php";
echo "</div>";
echo "<br><a onClick=\"expandcontent('top4')\" style=\"cursor:hand; cursor:pointer\">
<img src='".FUSION_THEME."images/bullet.gif'> ".WWOLD_501."</span></a>
<div id=\"top4\" class=\"switchcontent\"><br>";
include FUSION_INFUSIONS."user_info_panel/includes/top_users.php";
echo "</div>";
echo "<br><a onClick=\"expandcontent('top5')\" style=\"cursor:hand; cursor:pointer\">
<img src='".FUSION_THEME."images/bullet.gif'> ".WWOLD_601."</span></a>
<div id=\"top5\" class=\"switchcontent\"><br>";
include FUSION_INFUSIONS."user_info_panel/includes/top_news.php";
echo "</div><br><br>";
echo "<center><img src='".FUSION_THEME."images/bullet.gif'> <a href='".FUSION_BASE."setuser.php?logout=yes' class='side'> ".LAN_84." </span></a> <img src='".FUSION_THEME."images/bullet.gif'></center>\n";
closeside();
} else {
openside(LAN_60);
echo "<div align='center'>".(isset($loginerror) ? $loginerror : "")."
<form name='loginform' method='post' action='".FUSION_BASE."setuser.php'>
".LAN_61."<br>
<input type='text' name='user_name' class='textbox' style='width:100px'><br>
".LAN_62."<br>
<input type='password' name='user_pass' class='textbox' style='width:100px'><br>
<input type='checkbox' name='remember_me' value='y'>".LAN_63."<br><br>
<input type='submit' name='login' value='".LAN_64."' class='button'><br>
</form>
<br>\n";
if ($settings['enable_registration']) {
echo "<img src='".FUSION_THEME."images/bullet.gif'> <a href='".FUSION_BASE."register.php' class='side'>".LAN_65."</a><br>\n";
}
echo "<img src='".FUSION_THEME."images/bullet.gif'> <a href='".FUSION_BASE."lostpassword.php' class='side'>".LAN_66."</a>
</div>\n";
closeside();
}
?>
lub jeżeli nie chcesz się bawić w usuwanie, lub boisz się że usuniesz coś zanadto, skopiuj poniższy skrypt php do pliku user_info_panel.php zastępując wszystko:
<?php
/*--------------------------------------------+
| PHP-Fusion 5 - Content Management System |
|---------------------------------------------|
| author: Nick Jones (Digitanium) © 2002-2005 |
| web: http://www.php-fusion.co.uk |
| email: |
|---------------------------------------------|
| Released under the terms and conditions of |
| the GNU General Public License (Version 2) |
+--------------------------------------------*/
@include FUSION_INFUSIONS."user_info_panel/lang/".$settings['language'].".php";
@include FUSION_INFUSIONS."user_info_panel/lang/English.php";
if (!defined("IN_FUSION")) { header("Location:../../index.php"); exit; }
if (iMEMBER) {
openside("".WWOLD_001." " .$userdata['user_name']);
if (empty($lastvisited)) { $lastvisited = time(); }
$new_posts = dbcount("(thread_id)", "posts", "thread_id='".$userdata['user_id']."' and post_datestamp>'$lastvisited'");
if ($new_posts) echo "<center>".sprintf("".WWOLD_701."", $new_posts).($new_posts == 1 ? WWOLD_702 : WWOLD_703)."<br><a href='".FUSION_FORUM."index.php' class='side'>".WWOLD_704."</a></center>\n";
if ($userdata['user_avatar'] != "") {
echo "<br><center><img src='".FUSION_BASE."fusion_public/avatars/".$userdata['user_avatar']."'></center><br>\n";
} else {
echo "<br><center><img src='".FUSION_INFUSIONS."user_info_panel/images/brak.gif'></center><br>\n";
}
}
if (iMEMBER) {
echo "<script type='text/javascript' src='".FUSION_INFUSIONS."user_info_panel/javascript/menu.js' language='Javascript'></script><script type='text/javascript' src='".FUSION_INFUSIONS."user_info_panel/javascript/gpe.js' language='Javascript'></script><img src='".FUSION_INFUSIONS."user_info_panel/images/icon_members.gif'> <b>".WWOLD_002."</b><br><img src='".FUSION_THEME."images/bullet.gif'>
<a href='".FUSION_BASE."edit_profile.php'>".LAN_80."</a><br><img src='".FUSION_THEME."images/bullet.gif'> <a href='".FUSION_INFUSIONS."messagesv5/messages.php'>".LAN_81."</a><br><img src='".FUSION_THEME."images/bullet.gif'> <a href='".FUSION_BASE."members.php'>".LAN_82."</a><br>";
if (iADMIN) {
echo "<img src='".FUSION_THEME."images/bullet.gif'> <a href='".FUSION_ADMIN."index.php'>".LAN_83."</a><br>\n";
}
echo "<a onClick=\"expandcontent('add')\" style=\"cursor:hand; cursor:pointer\">
<img src='".FUSION_THEME."images/bullet.gif'> ".WWOLD_101."</span></a>
<div id=\"add\" class=\"switchcontent\"> <img src='".FUSION_THEME."images/bullet.gif'> <a href='".FUSION_BASE."submit.php?stype=n' class='side'>".WWOLD_102."</a><br> <img src='".FUSION_THEME."images/bullet.gif'> <a href='".FUSION_BASE."submit.php?stype=l' class='side'>".WWOLD_103."</a><br> <img src='".FUSION_THEME."images/bullet.gif'> <a href='".FUSION_BASE."submit.php?stype=a' class='side'>".WWOLD_104."</a></div><br>";
echo "<br><img src='".FUSION_INFUSIONS."user_info_panel/images/icon_community.gif'> <b>".WWOLD_003."</b>";
echo "<br><a onClick=\"expandcontent('top1')\" style=\"cursor:hand; cursor:pointer\">
<img src='".FUSION_THEME."images/bullet.gif'> ".WWOLD_201."</span></a>
<div id=\"top1\" class=\"switchcontent\"><br>";
include FUSION_INFUSIONS."user_info_panel/includes/top_downloads.php";
echo "</div>";
echo "<br><a onClick=\"expandcontent('top2')\" style=\"cursor:hand; cursor:pointer\">
<img src='".FUSION_THEME."images/bullet.gif'> ".WWOLD_301."</span></a>
<div id=\"top2\" class=\"switchcontent\"><br>";
include FUSION_INFUSIONS."user_info_panel/includes/top_weblinks.php";
echo "</div>";
echo "<br><a onClick=\"expandcontent('top3')\" style=\"cursor:hand; cursor:pointer\">
<img src='".FUSION_THEME."images/bullet.gif'> ".WWOLD_401."</span></a>
<div id=\"top3\" class=\"switchcontent\"><br>";
include FUSION_INFUSIONS."user_info_panel/includes/top_threads.php";
echo "</div>";
echo "<br><a onClick=\"expandcontent('top4')\" style=\"cursor:hand; cursor:pointer\">
<img src='".FUSION_THEME."images/bullet.gif'> ".WWOLD_501."</span></a>
<div id=\"top4\" class=\"switchcontent\"><br>";
include FUSION_INFUSIONS."user_info_panel/includes/top_users.php";
echo "</div>";
echo "<br><a onClick=\"expandcontent('top5')\" style=\"cursor:hand; cursor:pointer\">
<img src='".FUSION_THEME."images/bullet.gif'> ".WWOLD_601."</span></a>
<div id=\"top5\" class=\"switchcontent\"><br>";
include FUSION_INFUSIONS."user_info_panel/includes/top_news.php";
echo "</div><br><br>";
echo "<center><img src='".FUSION_THEME."images/bullet.gif'> <a href='".FUSION_BASE."setuser.php?logout=yes' class='side'> ".LAN_84." </span></a> <img src='".FUSION_THEME."images/bullet.gif'></center>\n";
closeside();
} else {
openside(LAN_60);
echo "<div align='center'>".(isset($loginerror) ? $loginerror : "")."
<form name='loginform' method='post' action='".FUSION_BASE."setuser.php'>
".LAN_61."<br>
<input type='text' name='user_name' class='textbox' style='width:100px'><br>
".LAN_62."<br>
<input type='password' name='user_pass' class='textbox' style='width:100px'><br>
<input type='checkbox' name='remember_me' value='y'>".LAN_63."<br><br>
<input type='submit' name='login' value='".LAN_64."' class='button'><br>
</form>
<br>\n";
if ($settings['enable_registration']) {
echo "<img src='".FUSION_THEME."images/bullet.gif'> <a href='".FUSION_BASE."register.php' class='side'>".LAN_65."</a><br>\n";
}
echo "<img src='".FUSION_THEME."images/bullet.gif'> <a href='".FUSION_BASE."lostpassword.php' class='side'>".LAN_66."</a>
</div>\n";
closeside();
}
?>
ps. niebawem do downloadu dodam jeszcze bardziej rozszerzony panel usera, taki jak można zobaczyć u mnie na stronie po zalogowaniu |