[EF IV] Panel Usera w Skórce - Nie wyświetla nowych PW
|
Szapko |
Dodany dnia 30.06.2008 18:32:45
|
Bywalec
Postów: 888 Pomógł: 66
Data rejestracji: 19.08.2007 19:49
|
Witam!
Mam mały problem z wiadomościami PW.
Skórka zrobiona na zamówienie, ale nic nie zmieniałem.
Nie działa wyświetlanie nowych PW.
Kod Panelu Usera:
<?php
include LOCALE.LOCALESET."global.php";
if (!defined("IN_FUSION")) { header("Location:../../index.php"); exit; }
if (iMEMBER) {
echo "<div align='center' style='margin-left:10px;margin-top:0px;margin-bottom:8px;'>";
//wiadomosci
$msg_count = dbcount("(message_id)", "messages", "message_to='".$userdata['user_id']."' AND message_read='0'AND message_folder='0'");
if ($msg_count > "0")
{
// Get folder size restrictions (room for future option to restrict number of pm's for a specific user)
$pw_user = $userdata['user_id'];
$limit = dbarray(dbquery("SELECT * FROM ".$db_prefix."messages_options WHERE user_id='0'"));
$limit_inbox = $limit['pm_inbox'];
// Set display of top bar
$how = dbquery("SELECT count(message_to) FROM ".$db_prefix."messages WHERE message_to='$pw_user' AND message_folder='0'");
if ($limit_inbox != "0") { $inbox_display = " ".$locale['on133']." [<b>".dbresult($how, 0)." / ".$limit_inbox."</b>]"; } else { $inbox_display = " (".$cnt_inbox.")"; }
}
//koniec wiadomosci
echo "<a href='".BASEDIR."user/index.php' class='subheader'>Panel Usera</a> |
<a href='".BASEDIR."messages.php' class='subheader'>".$locale['081']."$inbox_display</a> |";
if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) {
echo "<a href='".ADMIN."index.php?aid=".iAUTH."' class='subheader'>".$locale['083']."</a> | \n";
}
echo "<a href='".BASEDIR."setuser.php?logout=yes' class='subheader'><b><span style='color: red'>".$locale['084']."</span></b></a>";
echo "</div>";
} else {
echo "
<div align='center'>".(isset($loginerror) ? $loginerror : "")."
<form name='loginform' method='post' action='".BASEDIR."setuser.php'>
Login
<input type='text' name='user_name' class='textbox1'>
".$locale['062']."
<input type='password' name='user_pass' class='textbox1'>
<input type='checkbox' name='remember_me' value='y'>".$locale['063']."
<input type='submit' name='login' value='' class='button1'> \n";
if ($settings['enable_registration']) {
echo " ".$locale['065']." | \n";
}
echo "".$locale['066']."";
}
echo "</form></div>\n";
?>
Co jest nie tak w tym kodzie?
Edytowane przez Pieka dnia 30.06.2008 19:05:00
|
|
|
|
Wścibski Gość |
Dodany dnia 25.11.2024 11:53:06
|
Pan Kontekstualny
Postów: n^x
Data rejestracji: Zawsze
|
|
IP: localhost |
|
|
kefirek |
Dodany dnia 30.06.2008 18:46:24
|
Zaawansowany
Postów: 1191 Pomógł: 418 Ostrzeżeń: 1
v6.00.xxx Data rejestracji: 06.04.2008 21:59
|
Nie sprawdzałem ale powinno działać do katalogu images u siebie na serwerze wrzuć obrazek co dałem w załączniku
<?
include LOCALE.LOCALESET."global.php";
if (!defined("IN_FUSION")) { header("Location:../../index.php"); exit; }
if (iMEMBER) {
echo "<div align='center' style='margin-left:10px;margin-top:0px;margin-bottom:8px;'>";
//wiadomosci
$msg_count = dbcount("(message_id)", "messages", "message_to='".$userdata['user_id']."' AND message_read='0'AND message_folder='0'");
if ($msg_count > "0") {
echo "<b><a href='".BASEDIR."messages.php?folder=inbox' class='side'><center><img border='0' src='".BASEDIR."images/newpm.gif'></a></b></center><br>\n";
echo "<center><b>".$userdata['user_name']."</b>, ".$locale['on129']."<br>[<b>";
echo "<a href='".BASEDIR."messages.php?folder=inbox' class='side'>";
echo "".sprintf($locale['on132'], $msg_count).($msg_count == 1 ? $locale['on134'] : $locale['on135'])."</a></b>] <br>w Twojej";
// Get folder size restrictions (room for future option to restrict number of pm's for a specific user)
$pw_user = $userdata['user_id'];
$limit = dbarray(dbquery("SELECT * FROM ".$db_prefix."messages_options WHERE user_id='0'"));
$limit_inbox = $limit['pm_inbox'];
//koniec wiadomosci
echo "<a href='".BASEDIR."user/index.php' class='subheader'>Panel Usera</a> |
<a href='".BASEDIR."messages.php' class='subheader'>".$locale['081']."$inbox_display</a> |";
if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) {
echo "<a href='".ADMIN."index.php?aid=".iAUTH."' class='subheader'>".$locale['083']."</a> | \n";
}
echo "<a href='".BASEDIR."setuser.php?logout=yes' class='subheader'><b><span style='color: red'>".$locale['084']."</span></b></a>";
echo "</div>";
} else {
echo "
<div align='center'>".(isset($loginerror) ? $loginerror : "")."
<form name='loginform' method='post' action='".BASEDIR."setuser.php'>
Login
<input type='text' name='user_name' class='textbox1'>
".$locale['062']."
<input type='password' name='user_pass' class='textbox1'>
<input type='checkbox' name='remember_me' value='y'>".$locale['063']."
<input type='submit' name='login' value='' class='button1'> \n";
if ($settings['enable_registration']) {
echo " ".$locale['065']." | \n";
}
echo "".$locale['066']."";
}
echo "</form></div>\n";
?>
kefirek dodał/a następującą plik:
Edytowane przez Pieka dnia 30.06.2008 19:05:14
|
|
|
|
Szapko |
Dodany dnia 30.06.2008 23:11:08
|
Bywalec
Postów: 888 Pomógł: 66
Data rejestracji: 19.08.2007 19:49
|
Wysklakuje Błąd:
Parse error: syntax error, unexpected $end in /home/lsfan/domains/lsfan.vot.pl/public_html/themes/LsFan/logowanie.php on line 53
Może to jakieś zmiene trzeba dodać do theme.php? |
|
|
|
wlodekp |
Dodany dnia 30.06.2008 23:56:07
|
Weteran
Postów: 3101 Pomógł: 29
Data rejestracji: 21.05.2005 22:27
|
<?php
include LOCALE.LOCALESET."global.php";
if (!defined("IN_FUSION")) { header("Location:../../index.php"); exit; }
if (iMEMBER) {
echo "<div align='center' style='margin-left:10px;margin-top:0px;margin-bottom:8px;'>";
//wiadomosci
$msg_count = dbcount("(message_id)", "messages", "message_to='".$userdata['user_id']."' AND message_read='0'AND message_folder='0'");
if ($msg_count > "0") {
echo "<b><a href='".BASEDIR."messages.php?folder=inbox' class='side'><center><img border='0' src='".BASEDIR."images/newpm.gif'></a></b></center><br>\n";
echo "<center><b>".$userdata['user_name']."</b>, ".$locale['on129']."<br>[<b>";
echo "<a href='".BASEDIR."messages.php?folder=inbox' class='side'>";
echo "".sprintf($locale['on132'], $msg_count).($msg_count == 1 ? $locale['on134'] : $locale['on135'])."</a></b>] <br>w Twojej";
// Get folder size restrictions (room for future option to restrict number of pm's for a specific user)
$pw_user = $userdata['user_id'];
$limit = dbarray(dbquery("SELECT * FROM ".$db_prefix."messages_options WHERE user_id='0'"));
$limit_inbox = $limit['pm_inbox'];
//koniec wiadomosci
echo "<a href='".BASEDIR."user/index.php' class='subheader'>Panel Usera</a> |
<a href='".BASEDIR."messages.php' class='subheader'>".$locale['081']."$inbox_display</a> |";
if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) {
echo "<a href='".ADMIN."index.php?aid=".iAUTH."' class='subheader'>".$locale['083']."</a> | \n";
echo "<a href='".BASEDIR."setuser.php?logout=yes' class='subheader'><b><span style='color: red'>".$locale['084']."</span></b></a>";
}
echo "</div>";
} else {
echo "
<div align='center'>".(isset($loginerror) ? $loginerror : "")."
<form name='loginform' method='post' action='".BASEDIR."setuser.php'>
Login
<input type='text' name='user_name' class='textbox1'>
".$locale['062']."
<input type='password' name='user_pass' class='textbox1'>
<input type='checkbox' name='remember_me' value='y'>".$locale['063']."
<input type='submit' name='login' value='' class='button1'> \n";
if ($settings['enable_registration']) {
echo " ".$locale['065']." | \n";
}
echo "".$locale['066']."";
}
}
echo "</form></div>\n";
?>
To jest ten kefirkowy tylko bez błędu &end a czy działa nie wnikam w szczegóły.
|
|
|
|
jantom |
Dodany dnia 01.07.2008 00:09:16
|
Weteran
Postów: 3460 Pomógł: 123
Data rejestracji: 31.03.2005 20:10
|
Strzelam w ciemno, że nie masz zmiennej $userdata w global w render_header w theme.php. |
|
|
|
Szapko |
Dodany dnia 01.07.2008 01:15:17
|
Bywalec
Postów: 888 Pomógł: 66
Data rejestracji: 19.08.2007 19:49
|
Dzięki. Działa po dodaniu tej zmiennej |
|
|