Hallo
ich habe folgendes problem auf
unserer HP und zwar bekommen
ich keine popups für private nachrichten.
woran kann das liegen???
gruß marvman
verwendete ilchClan Version: 1.1
betroffene Homepage: externer Link
Hier kann eine Notiz zum Merk-Eintrag hinzugefügt werden (optional)
Geschlossen |
if ( $allgAr['Fpmf'] == 1 ) { $erg = db_query("SELECT COUNT(id) FROM `prefix_pm` WHERE gelesen = 0 AND status < 1 AND eid = ".$_SESSION['authid']); $check_pm = db_result($erg,0); $nachrichten_link = '<a class="ead" href="index.php?forum-privmsg">'.$lang['messages'].'</a> ('.$check_pm.')<br>'; if ($check_pm >0) { $nachrichten_link = '<a class="ead" href="index.php?forum-privmsg">'.$lang['message'].'</a>('.$check_pm.') <script language="JavaScript" type="text/javascript"><!-- function closeNewPMdivID () { document.getElementById("newPMdivID").style.display = "none"; } //--></script> <div id="newPMdivID" style="position:absolute; top:200px; left:300px; display:inline; width:200px;"> <table width="100%" class="border" border="0" cellspacing="1" cellpadding="4"> <tr> <td class="Cdark" align="left"> <a href="javascript:closeNewPMdivID()"><img style="float:right; border: 0" src="include/images/icons/del.gif" alt="schliessen" title="schliessen"></a> <b>neue private Nachricht</b> bitte deinen <a href="?forum-privmsg">Posteingang</a> kontrolieren. Damit dieses Fenster dauerhaft verschwindet musst du alle neuen Nachrichten lesen, oder die Option in deinem <a href="?user-profil">Profil</a> abschalten. </td> </tr> </table> </div> <br>'; } } else { $nachrichten_link = ''; }
$tpl->set ( 'POPUP', check_for_pm_popup() );
{POPUP}
# opt_pm_popup if (1 == db_result(db_query("SELECT COUNT(*) FROM prefix_user where id = ".$_SESSION['authid']." AND opt_pm_popup = 1"),0,0) AND 1 <= db_result(db_query("SELECT COUNT(*) FROM prefix_pm WHERE gelesen = 0 AND status < 1 AND eid = ".$_SESSION['authid'] ),0)
# opt_pm_popup if ($GLOBALS["incdatei"] != 'privmsg.php' AND 1 == db_result(db_query("SELECT COUNT(*) FROM prefix_user where id = ".$_SESSION['authid']." AND opt_pm_popup = 1"),0,0) AND 1 <= db_result(db_query("SELECT COUNT(*) FROM prefix_pm WHERE gelesen = 0 AND status < 1 AND eid = ".$_SESSION['authid'] ),0)
Ich hab jetzt in der include/boxes/login.php über $tpl->out (0); bei mir Code: $tpl->set ( 'POPUP', check_for_pm_popup() ); und in der include/templates/user/boxen_login.htm erste Zeile Code: {POPUP} eingefügt und das funktioniert auch. Der Dank gebührt Samo.
{POPUP} <table width="100%" border="0" cellspacing="0" cellpadding="2"> <tr> <td> <div class="boxes_na">User Name: <b>{NAME}</b> </div> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td><div class="boxes_lo" align="center"><span class="floatlogin"><a href="?search-aeit"><img src="include/designs/neXorAD_01/img/loginicons/beitrage.png" border="0" /></a><br /> Your<br /> forumposts</span></div></td> <td><div class="boxes_lo" align="center"><span class="floatlogin"><a href="?forum-privmsg"><img src="include/designs/neXorAD_01/img/loginicons/nachrichten.png" border="0" /></a><br /> Private<br /> Message</span></div></td> </tr> <tr> <td><div class="boxes_lo" align="center"><span class="floatlogin"><a href="?user-8"><img src="include/designs/neXorAD_01/img/loginicons/profil.png" border="0" /></a><br /> Your<br /> Profile</span></div></td> <td><div class="boxes_lo" align="center"><span class="floatlogin"><a href="?user-3"><img src="include/designs/neXorAD_01/img/loginicons/logout.png" border="0" /></a><br /> fast<br /> Exit! </span></div></td>
$tpl->set ( 'SID' , session_id() ); $tpl->set ( 'NACHRICHTEN' , $nachrichten_link ); $tpl->set ( 'NAME', $_SESSION['authname'] ); $tpl->set ( 'POPUP', check_for_pm_popup() ); $tpl->out (0); } else { if (empty($_POST['login_name'])) { $_POST['login_name'] = 'Nickname'; } if (empty($_POST['login_pw'])) { $_POST['login_pw'] = 'ääääääää'; } $regist = ''; if ( $allgAr['forum_regist'] == 1 ) {
<label style="float:left; width:35%;">{_lang_privatemessages}<span class="smalfont"> {_lang_popupbynewmsg}?</span></label><input id="opt_pm_popup1" type="radio" value="1" name="opt_pm_popup" {opt_pm_popup1} /><label for="opt_pm_popup1"> {_lang_yes}</label>, <input id="opt_pm_popup0" type="radio" value="0" name="opt_pm_popup" {opt_pm_popup0} /><label for="opt_pm_popup0"> {_lang_no}</label><br style="fclear:both;" /><br />
opt_pm_popup = '".escape($_POST['opt_pm_popup'], 'string')."',ändern in
opt_pm_popup = '1',
if ( $row['opt_pm_popup'] == 1 ) { $row['opt_pm_popup1'] = 'checked'; $row['opt_pm_popup0'] = ''; } else { $row['opt_pm_popup1'] = ''; $row['opt_pm_popup0'] = 'checked'; }
function check_for_pm_popup () { # opt_pm_popup if ($GLOBALS["incdatei"] != 'privmsg.php' AND 1 == db_result(db_query("SELECT COUNT(*) FROM prefix_user where id = ".$_SESSION['authid']." AND opt_pm_popup = 1"),0,0) AND 1 <= db_result(db_query("SELECT COUNT(*) FROM prefix_pm WHERE gelesen = 0 AND status < 1 AND eid = ".$_SESSION['authid'] ),0) ) { $x = <<< html <script language="JavaScript" type="text/javascript"><!-- function closeNewPMdivID () { document.getElementById("newPMdivID").style.display = "none"; } //--></script> <div id="newPMdivID" style="position:absolute; top:200px; left:300px; display:inline; width:200px;"> <table width="100%" class="border" border="0" cellspacing="1" cellpadding="4"> <tr> <td class="Cdark" align="left"> <a href="javascript:closeNewPMdivID()"><img style="float:right; border: 0" src="include/images/icons/del.gif" alt="schliessen" title="schliessen"></a> <b>neue private Nachricht</b> bitte deinen <a href="?forum-privmsg">Posteingang</a> kontrolieren. Damit dieses Fenster dauerhaft verschwindet musst du alle neuen Nachrichten lesen, oder die Option in deinem <a href="?user-profil">Profil</a> abschalten. </td> </tr> </table> </div> html; return ($x); } }
<b>new private message</b> You have a new message. Please check your <a href="?forum-privmsg">inbox</a>.
db_query("INSERT INTO prefix_user (name,pass,recht,regist,llogin,email,status,opt_mail,opt_pm) VALUES('".$name."','".$md5_pass."',-1,'".time()."','".time()."','".$mail."',1,1,1)");suchen und durch
db_query("INSERT INTO prefix_user (name,pass,recht,regist,llogin,email,status,opt_mail,opt_pm,opt_pm_popup) VALUES('".$name."','".$md5_pass."',-1,'".time()."','".time()."','".$mail."',1,1,1,1)");ersetzen. Du siehst glaube ich was da gemacht wird, muss man bei beiden Dateien machen.
Geschlossen | ||
Zurück zu Fehlersuche und Probleme |