Seite 1 von 2

BRAUCHE DRINGEND HILFE!!! Ausgabe von reg. User und Gästen

Verfasst: 22.08.2003 13:34
von niffi
//edit

siehe bitte unten letztes post! danke.

Verfasst: 22.08.2003 13:37
von Henne
Schau dir mal die Quellen vom eZPortal von Smartor an http://smartor.is-root.com

Der hat doch so eine Box auch eingebaut.

Verfasst: 22.08.2003 13:39
von niffi
ja so ungefähr nur wenn ich mir die quelle ansehe, zeigt er doch nur den html code, nicht aber den php code.

Verfasst: 22.08.2003 13:41
von Henne
Das Paket gibt es auch zum runterladen :)

http://smartor.is-root.com/downloads/ezportal_v218.zip

Verfasst: 22.08.2003 13:42
von niffi
hab ich gefunden, und komischerweise gibts für alles den code, nur für die "online user" nicht :cry:

Verfasst: 22.08.2003 13:45
von niffi
glaube hab doch was gefunden:
#################################################################
## 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

Verfasst: 22.08.2003 14:06
von Elvis
und was ist das :roll:

Code: Alles auswählen

{L_WHO_IS_ONLINE}

Verfasst: 22.08.2003 14:08
von niffi
danke... klappt!!! :grin:

Verfasst: 22.08.2003 17:44
von niffi nochmal!
leider hatte es doch nicht ganz den erwünschten erfolg, ich möchte nämlich gern das nur die namen der eingeloggten user und die anzahl der gäste erscheinen und nicht immer folgender gesamt text:
Insgesamt sind 2 Benutzer online: Ein registrierter, kein versteckter und ein Gast.
ist das möglich?

hier nochmal mein quellcode
<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>
so und statt TOTAL_USERS_ONLINE sollen nur die Gäste mit Zahl erscheinen, aber ich bekomm das einfach nicht hin.

Zum besseren verständnis die homepage

danke für eure hilfe

Verfasst: 23.08.2003 09:13
von niffi
hat keiner von euch ne idee wie das gehen könnte?