zu meinem problem, habe das usergbook in seiner 1sten form.
habe eine login.php und boxes_login.htm angepasst um das man dirakt vom loginbereich in das eigene gbokk reinschauen kann,
so nun das eigentliche problem,
ich möchte, das in der loginbox eine anzeige für neue einträge drin ist, wie bei nachrichten
hier meine login.php
<?php # Copyright by Manuel # Support www.ilch.de defined ('main') or die ( 'no direct access' ); $tpl = new tpl ( 'user/boxen_logingw.htm' ); if ( loggedin() ) { if ( user_has_admin_right($menu,false) ) { $tpl->set ( 'ADMIN', '<a class="box" href="admin.php?admin" target="ali">'.$lang['adminarea'].'</a>' ); } else { $tpl->set ( 'ADMIN', '' ); } 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="box" href="index.php?forum-privmsg">'.$lang['messages'].'</a> ('.$check_pm.')<br>'; } else { $nachrichten_link = ''; } $abf = 'SELECT id, name, avatar FROM prefix_user WHERE name = "'.$_SESSION['authname'].'"'; $erg = db_query($abf); $row = db_fetch_object($erg); if ( file_exists($row->avatar)) { $avatar = '<br><img src="'.$row->avatar.'" border="0"><br>'; }else{ $avatar = ''; } $tpl->set ( 'ID' , $row->id ); $tpl->set ( 'AVATAR' , $avatar ); $tpl->set ( 'SID' , session_id() ); $tpl->set ( 'NACHRICHTEN' , $nachrichten_link ); $tpl->set ( 'NAME', $_SESSION['authname'] ); $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 ) { $regist = ' <a class="box" href="index.php?user-regist">Regist</a>'; } $tpl->set_ar_out ( array ( 'regist' => $regist, 'wdlink' => '?'.$allgAr['smodul'], 'PASS' => $_POST['login_pw'], 'NAME' => $_POST['login_name'] ) , 1 ); } unset($tpl); ?>
und hier meine veränderte boxes_login.htm
<head> <style type="text/css"> .style1 { color: #FFffff; } </style> </head> <table width="100%" border="0" cellspacing="0" cellpadding="10"> <tr font color="#ffffff"> <td align="center" font color="#ffffff"> <p id="logsmaster"></p> <font color="#ffffff"> Hallo <b>{NAME}</b> <br /> <br /> {NACHRICHTEN} <a class="box" href="index.php?user-3"><font color="#ffffff">{_lang_logout}</a> | <a class="box" href="index.php?user-8"><font color="#ffffff">{_lang_profil}</a> <br /><a class="box" href="index.php?user-usergallery-{ID}"><font color="#ffffff">Meine Gallery</a> <br /><a class="box" href="index.php?user-usergb-view-{ID}"><font color="#ffffff">Meine GBook</a> <br> <font color="#ffffff">{ADMIN}</font></font></font></font></font></font></td> </tr> </table> <font color="#ffffff"> {EXPLODE}</font> <table width="100%" border="0" cellspacing="0" cellpadding="10"> <tr> <td align="center"> <p id="logsmast"></p> <form method="POST"> <font color="#ffffff"> <input class="box" type="text" name="name" size="13" value="{NAME}" onFocus="if (value == '{NAME}') {value = ''}" onBlur="if (value == '') {value = '{NAME}'}" maxlength="50" style="margin-top:5px; " /><br /> <input class="box" type="password" size="13" value="{PASS}" onFocus="if (value == '{PASS}') {value = ''}" onBlur="if (value == '') {value = '{PASS}'}" maxlength="20" name="pass" style="margin-top:5px; " /><br /> <input class="box" type="hidden" name="wdlink" value="{wdlink}" /> <input class="box" type="submit" name="user_login_sub" value="Login" style="margin-top:5px; " /></font><font color="#ffffff"><span class="box">{regist}</span></font> </form> </td> </tr> </table>
für lösungsvorschläge wäre ich sehr verbunden
mfg wodan
verwendete ilchClan Version: 1.1
betroffene Homepage: externer Link