Was ist hier los?
BenediktRB.de

Verändeter Willkommensheader für Gäste und User

Der Willkommensheader zeigt ein Übersicht, über diverse Informationen (PN, Neue Beiträge, etc).

Suche in der index folgendes:

<if($wbbuserdata['userid']==0)> <then> <tr> <td class="tablea" align="left"><span class="normalfont"><b>{$lang->items['LANG_START_WELCOME_TITLE']}</b></span></td> </tr> <tr> <td class="tableb" align="left" style="text-align: justify"><span class="smallfont">{$lang->items['LANG_START_WELCOME']}</span></td> </tr> </then> <else> <tr> <td class="tablea"><table style="width:100%" cellspacing="0" cellpadding="0" border="0"> <tr class="tablea_fc"> <td align="left"><span class="smallfont">{$lang->items['LANG_START_WELCOMEBACK']} <b>$usercbar_username</b> <a href="logout.php{$SID_ARG_1ST}">{$lang->items['LANG_START_LOGOUT']}</a><br /><b><a href="search.php?action=new{$SID_ARG_2ND}">{$lang->items['LANG_START_NEWPOSTS']} $lastvisitdate <span class="time">$lastvisittime</span>.</span></td> <td align="right"><span class="smallfont">{$lang->items['LANG_START_CURRENTTIME']} <span class="time">$currenttime</span>.<br />{$lang->items['LANG_START_TIMEZONE']}</span></td> </tr> </table></td> </tr> </else> </if>

und überschreibe es mit folgendem:

<if($wbbuserdata['userid']==0)> <then> <tr> <td class="tablea" align="left" colspan="2"><span class="normalfont"><b>{$lang->items['LANG_START_WELCOME_TITLE']}</b></span></td> </tr> <tr> <td class="tableb" align="left" style="text-align: justify;width:70%;" valign="top"> <p style="background:white; border:1px dotted grey;padding:4px; margin:2px;"> <span class="smallfont"> {$lang->items['LANG_START_SHOWUSERONLINE']}<br /> <span class="smallfont">{$lang->items['LANG_START_STATISTIC_MEMBERS']} $stats[usercount] | {$lang->items['LANG_START_STATISTIC_THREADS']} $stats[threadcount] | {$lang->items['LANG_START_STATISTIC_POSTS']} $stats[postcount] ({$lang->items['LANG_START_STATISTIC_AVERAGE']} $postperday {$lang->items['LANG_START_STATISTIC_POSTPERDAY']})<br /> {$lang->items['LANG_START_STATISTIC_NEWESTMEMBER']} <a href="profile.php?userid=$stats[lastuserid]{$SID_ARG_2ND}">$stats[username]</a>.</span> </span></p> </td> <td class="tablea"> <if($wbbuserdata['userid']==0)> <then> <a name="login" id="login"></a> <if($allowloginencryption==1)><then> <script type="text/javascript" src="js/sha1.js"></script> <script type="text/javascript" src="js/crypt.js"></script> </then></if> <form method="post" action="login.php" name="loginform"<if($allowloginencryption==1)><then> onsubmit="return encryptlogin(this);"</then></if>> <input type="hidden" name="send" value="send" /> <input type="hidden" name="sid" value="$session[hash]" /> <if($allowloginencryption==1)><then> <input type="hidden" name="authentificationcode" value="$session[authentificationcode]" /> <input type="hidden" name="crypted" value="false" /></then></if> <table cellpadding="0" cellspacing="0" border="0" style="width:{$style['tableinwidth']}" class="tableinborder"> <tr> <td class="tablea"><table cellpadding="0" cellspacing="5" align="left" class="tableb_fc"> <tr> <td><span class="smallfont">{$lang->items['LANG_START_USERNAME']} <input type="text" name="l_username" maxlength="50" size="20" class="input" tabindex="1" /> <a href="forgotpw.php{$SID_ARG_1ST}">{$lang->items['LANG_START_LOSTPW']}</a></span> </td> </tr> <tr> <td><span class="smallfont">{$lang->items['LANG_START_PASSWORD']}: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="password" name="l_password" maxlength="30" size="20" class="input" tabindex="2" /></span> <input type="submit" value="{$lang->items['LANG_START_LOGIN']}" class="input" tabindex="3" /></td> </tr> <tr> <if($allowloginencryption==1)><then> <td><span class="smallfont"><label for="checkbox1">{$lang->items['LANG_GLOBAL_ENCRYPT_TRANSFER']}</label></span></td> <td><span class="smallfont"><input type="checkbox" id="checkbox1" name="activateencryption" onclick="activate_loginencryption(document.loginform);" />&nbsp;&nbsp;&nbsp;&nbsp;</span></td></then></if> <td></td> </tr> </table></td> </tr> </table></form> <if($allowloginencryption==1)><then> <script type="text/javascript"> <!-- activate_loginencryption(document.loginform); //--> </script></then></if> </then> </if> </then> <else> <tr> <td class="tablea" align="left" colspan="2"><span class="normalfont"><b>Informationen</b></span></td> </tr> <tr> <td class="tableb" align="center" style="text-align: center; width:150px;" valign="top"> <p style="margin-top:10px,">$avatar</p> </td> <td class="tablea"> <table cellpadding="0" cellspacing="0" border="0" style="width:{$style['tableinwidth']}" class="tableinborder"> <tr> <td class="tablea"><table cellpadding="0" cellspacing="5" align="left" class="tableb_fc"> <tr> <p style="background:white; border:1px dotted grey;padding:4px; margin:2px;"> <span class="smallfont">{$lang->items['LANG_START_WELCOMEBACK']} <b>$usercbar_username</b> <a href="logout.php{$SID_ARG_1ST}">{$lang->items['LANG_START_LOGOUT']}</a> - <b><a href="search.php?action=new{$SID_ARG_2ND}">{$lang->items['LANG_START_NEWPOSTS']} $lastvisitdate <span class="time">$lastvisittime</span>.</span><br /> <span class="smallfont"><b><a href="pms.php{$SID_ARG_1ST}">{$lang->items['LANG_START_PMIN']}</a></b><br />{$lang->items['LANG_START_PMS']}</span> </p> <p style="background:white; border:1px dotted grey;padding:4px; margin:2px;"> <span class="smallfont"> {$lang->items['LANG_START_SHOWUSERONLINE']}<br /> <span class="smallfont">{$lang->items['LANG_START_STATISTIC_MEMBERS']} $stats[usercount] | {$lang->items['LANG_START_STATISTIC_THREADS']} $stats[threadcount] | {$lang->items['LANG_START_STATISTIC_POSTS']} $stats[postcount] ({$lang->items['LANG_START_STATISTIC_AVERAGE']} $postperday {$lang->items['LANG_START_STATISTIC_POSTPERDAY']})<br /> {$lang->items['LANG_START_STATISTIC_NEWESTMEMBER']} <a href="profile.php?userid=$stats[lastuserid]{$SID_ARG_2ND}">$stats[username]</a>.</span> </span></p> </tr> </table> </table> </td> </else> </if>

Suche in der index.php

if ($showuseronlineinboard == 2) {

Und füge darüber ein:

/* avatar */ if($wbbuserdata['userid']) { $avatar = $db->query_first("SELECT avatarid FROM bb".$n."_users WHERE userid = '$wbbuserdata[userid]'"); if ($avatar[avatarid]) { $ainfo = $db->query_first("SELECT * FROM bb".$n."_avatars WHERE avatarid = '$avatar[avatarid]'"); $avatar = "<img src=\"images/avatars/avatar-".$ainfo[avatarid].".".$ainfo[avatarextension]."\" border=\"0\" alt=\"\" />"; } else { $avatar = "<img src=\"{$style['imagefolder']}/noavatar.gif\" border=\"0\" alt=\"\" />"; } }

Nun noch ein noavatar.gif Bild in den Image-Ordner laden und dann sollte alles funktionieren.