Thread Verfasser: newgame
Thread ID: 1006
Thread Info
Es gibt 1 Beiträge zu diesem Thema, und es wurde 1676 Mal angesehen.
 Thema drucken
Wehr war on
newgame
Bau dir nen panel ,einbau das geht auch als on user mit refresh

Code
<style type="text/css">
/*<![CDATA[*/
.user-cell {
    float:left;
    text-align:center;
    width:100px;
    height:100px;
    margin:0 0.5em 2em 0;
    padding:0 0.5em;
    text-indent:-9999px;
}
.user-cell img {
    width:80px;
    height:80px;
    display:block;
    border: 3px solid #ccc;
    -webkit-border-radius: 80px;
    -khtml-border-radius: 80px;
    -moz-border-radius: 80px;
    border-radius: 80px;
}
.user-cell a {
    visibility:hidden;
}
.user-cell:hover, .user-cell:hover a{
    text-indent:0;
    visibility:visible;
}
.clear {
    clear:both;

/*]]>*/
</style>
 
<!-- CSS end here -->
 
<?php
$data = dbarray(dbquery("SELECT user_id, user_name, user_status FROM ".DB_USERS." WHERE user_status='0' ORDER BY user_joined DESC LIMIT 0,1"));
echo "         <br />\n".THEME_BULLET." <strong>Neu Dabei</strong> <span class='side'>".profile_link($data['user_id'], $data['user_name'], $data['user_status'])."</span>\n";
echo "      </td>\n";
echo "   </tr>\n<br /><br />";

$max = '200';//max users displayed
$timer = 86400;//time limit - 86400 s. == 24h == 1 day
$noavatar = 'noavatar100.png';//picture if no avatar selected
$locale['this_notfound'] = 'No users today.';//locales
$locale['this_avatar'] = 'Avatar';
$locale['this_nodata'] = 'no data';
//config end
 
$result = dbquery("SELECT user_id, user_name, user_status, user_lastvisit, user_avatar, user_level FROM ".DB_USERS." WHERE user_status='0' AND user_lastvisit>'".(time() - $timer)."'
    ORDER BY user_lastvisit DESC LIMIT 0,".$max);
if ($rows = dbrows($result)) {
 
    while ($data = dbarray($result)) {
        echo '<div class="user-cell" title="'.getuserlevel($data['user_level']).'">'.
            ($data['user_lastvisit']?showdate('shortdate', $data['user_lastvisit']):$locale['this_nodata']).
            '

<img  src="'.IMAGES.'avatars/'.($data['user_avatar']?$data['user_avatar']:$noavatar).'" alt="'.$locale['this_avatar'].'" />'.
            profile_link($data['user_id'], $data['user_name'], $data['user_status']).
            '</div>';
    }
    echo '<div class="clear"></div>';
}
else {
    echo '<p>Keiner war da</p>';}
 
?>
 
Springe ins Forum: