ich habe mir vor ein paar tagen diesen Mod runtergeladen und installiert:
Der zeigt in der viewtopic den Online/Offline Status eines Users in form von Bildern an!Gibt es eine Möglichkeit den Online Status zusätzlich auch in der meberlist anzeigen zu lassen?So wie hier: http://mitglied.lycos.de/claneliteforce ... erlist.php########################################################
## Mod Title: online_status
## Mod Version: 1.0.0
## Author: Adam Ismay <mitsubishiuk@aol.com>
## Description: Says "online" if the user is actually online
## in topic view.
##
## Installation Level: easy
## Installation Time: 2-3 Minutes
## Files To Edit: 4
########################################################
## Notes: The template instructions are for Subilver, for
## other templates the template variable is:
## {postrow.POSTER_ONLINE}
#########################################################
#
#---- [Action: open viewtopic.php] --------
#
#
#------[ Find ] ------
#
//
// Go ahead and pull all data for this topic
//
$sql = "SELECT u.username, u.user_id, u.user_posts, u.user_from, u.user_website, u.user_email, u.user_icq, u.user_aim, u.user_yim, u.user_regdate, u.user_msnm, u.user_viewemail, u.user_rank, u.user_sig, u.user_sig_bbcode_uid, u.user_avatar, u.user_avatar_type, u.user_allowavatar, u.user_allowsmile, p.*, pt.post_text, pt.post_subject, pt.bbcode_uid
FROM " . POSTS_TABLE . " p, " . USERS_TABLE . " u, " . POSTS_TEXT_TABLE . " pt
WHERE p.topic_id = $topic_id
$limit_posts_time
AND pt.post_id = p.post_id
AND u.user_id = p.poster_id
ORDER BY p.post_time $post_time_order
LIMIT $start, ".$board_config['posts_per_page'];
#
#----- [ Replace with ] ------
#
$sql = "SELECT u.username, u.user_id, u.user_posts, u.user_from, u.user_website, u.user_email, u.user_icq, u.user_aim, u.user_yim, u.user_regdate, u.user_msnm, u.user_viewemail, u.user_rank, u.user_sig, u.user_sig_bbcode_uid, u.user_avatar, u.user_avatar_type, u.user_allowavatar, u.user_allowsmile, u.user_allow_viewonline, u.user_session_time, p.*, pt.post_text, pt.post_subject, pt.bbcode_uid
FROM " . POSTS_TABLE . " p, " . USERS_TABLE . " u, " . POSTS_TEXT_TABLE . " pt
WHERE p.topic_id = $topic_id
$limit_posts_time
AND pt.post_id = p.post_id
AND u.user_id = p.poster_id
ORDER BY p.post_time $post_time_order
LIMIT $start, ".$board_config['posts_per_page'];
#
#----[ Action find]------
#
'POSTER_FROM' => $poster_from,
'POSTER_AVATAR' => $poster_avatar,
#
#-----[ Action: AFTER ADD ] -----
#
'POSTER_ONLINE' => (($postrow[$i]['user_session_time'] >= ( time() - 300 )) && ($postrow[$i]['user_allow_viewonline'])) ? '<img src="images/online1.gif" />' : '<img src="images/offline.gif" />',
#
#---- [Action: open templates/subsilver/viewtopic_body.tpl ] --------
#
#
#----[ find in Line 29] -----
#
{postrow.POSTER_FROM}</span><br />
#
#---[ Replace with ] -----
#
{postrow.POSTER_FROM}<br />{postrow.POSTER_ONLINE}</span><br />
Gruß JLoop©