BRAUCHE DRINGEND HILFE!!! Ausgabe von reg. User und Gästen
Verfasst: 22.08.2003 13:34
//edit
siehe bitte unten letztes post! danke.
siehe bitte unten letztes post! danke.
phpBB.de - Die deutsche phpBB-Community
https://www.phpbb.de/community/
#################################################################
## Title: Who's Online MOD for phpBB 2.0.x (and optionally for Smartor's ezPortal http://smartor.is-root.com)
## Version: 1.0.0
## Author: ChrisA <admin@alanstudios.com> - http://www.alanstudios.com
## Description: This MOD just changes the way it looks mostly.
## and allows the ezPortal page to be not so cluttered
##
## Installation Level: Easy
## Installation Time: 5 Minutes
##
## Files To Edit: 2
## index.php
## templates/{your template}/index_body.tpl
##
## optional Files to Edit: 1
## templates/{your template}/portal_body.tpl
##
## Included Files: 0
## -
##
#################################################################
##
## Author Note:
##
## Copyright © ChrisA, 2003
##
## For any concerns please contact me at http://www.alanstudios.com
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up
## All Files Related To This MOD
#################################################################
##
## Revision History:
##
## v1.0.0
## - initial release
##
#################################################################
#
#-----[ OPEN ]------------------------------------------
#
index.php
#
#-----[ FIND ]-----------------------------------
#
'U_MARK_READ' => append_sid("index.$phpEx?mark=forums"))
#
#-----[ BEFORE, ADD ]---------------------------
#
// Who's Online and Where MOD by ChrisA
'L_VIEW_COMPLETE_LIST' => $lang['View_complete_list'],
#
#-----[ OPEN ]------------------------------------------
#
templates/{your template}/index_body.tpl
#
#-----[ FIND ]-----------------------------------
#
<td class="row1" align="left" width="100%"><span class="gensmall">{TOTAL_POSTS}<br />{TOTAL_USERS}<br />{NEWEST_USER}</span>
#
#-----[ REPLACE WITH ]---------------------------
#
<td class="row1" align="left" width="100%"><span class="gensmall">{TOTAL_POSTS}<br />{TOTAL_USERS}<br />{NEWEST_USER}<br />[ <a href="{U_VIEWONLINE}">{L_VIEW_COMPLETE_LIST}</a> ]</span>
#
#-----[ NEXT STEP IS OPTIONAL and is for Smartor's ezPortal ]------------------------------
#
#note that this mod for ezPortal combines the "Statistics" and "Who's Online" block
#as well as phpBB's "Who's Online" block into one and add's it to the portal
#you may delete those two block on ezPortal as it is no longer needed (less clutter for your main page)
#
#-----[ OPEN ]------------------------------------------
#
templates/{your template}/portal_body.tpl
#
#-----[ FIND ]-----------------------------------
#
<!-- END fetch_post_row -->
#
#-----[ AFTER, ADD ]---------------------------
#
<table width="100%" cellpadding="3" cellspacing="1" border="0" class="forumline">
<tr>
<td class="catHead" colspan="2" height="28"><span class="genmed"><b>{L_WHO_IS_ONLINE}</b></span></td>
</tr>
<tr>
<td class="row1" align="center" valign="middle" rowspan="2"><img src="templates/subSilver/images/whosonline.gif" alt="{L_WHO_IS_ONLINE}" /></td>
<td class="row1" align="left" width="100%"><span class="gensmall">{TOTAL_POSTS} {TOTAL_TOPICS}<br />{TOTAL_USERS}<br />{NEWEST_USER}<br />[ <a href="{U_VIEWONLINE}">{L_VIEW_COMPLETE_LIST}</a> ]</span></td>
</tr>
<tr>
<td class="row1" align="left"><span class="gensmall">{TOTAL_USERS_ONLINE} & [ {L_WHOSONLINE_ADMIN} ] & [ {L_WHOSONLINE_MOD} ]<br />{RECORD_USERS}<br />{LOGGED_IN_USER_LIST}</span></td>
</tr>
</table>
#
#--------------------------------------------------------------------
#
# EoM
ist das möglich?Insgesamt sind 2 Benutzer online: Ein registrierter, kein versteckter und ein Gast.
so und statt TOTAL_USERS_ONLINE sollen nur die Gäste mit Zahl erscheinen, aber ich bekomm das einfach nicht hin.<table width="95%" border="0" class="klein" valign="top">
<tr>
<td class="row1" align="left"><b>Zur Zeit online:</b><br><span class="klein">{LOGGED_IN_USER_LIST}, {TOTAL_USERS_ONLINE}</span></td>
</tr>
</table>