Pagina 1 van 1
wie is online aanpassen
Geplaatst: 31 jan 2006, 08:21
door Tiger
Support template:
- Wat is het probleem? ik wil het venster van wie is online minuten naar 1 minuut zetten ipv 5 minuten
Wanneer ontstond het probleem?
Adres van je forum: http://www.up-downs.com/forum
Geïnstalleerde mods: geen
Huidige template: softblue
phpBB versie: 2.0.19
Host: powergate
Heb je onlangs een mod of stijl geïnstalleerd? nee
Heb je gezocht naar een antwoord?
ja maar bij pagina 16 heb ik het opgegeven
Overige opmerkingen:
ja ik heb dit aangepast
Code: Selecteer alles
// Get user list
//
$sql = "SELECT u.user_id, u.username, u.user_allow_viewonline, u.user_level, s.session_logged_in, s.session_time, s.session_page, s.session_ip
FROM ".USERS_TABLE." u, ".SESSIONS_TABLE." s
WHERE u.user_id = s.session_user_id
AND s.session_time >= ".( time() - 500 ) . "
ORDER BY u.username ASC, s.session_ip ASC";
if ( !($result = $db->sql_query($sql)) )
{
veranderd naar
AND s.session_time >= ".( time() - 60 ) . "
maar nu blijft ie in dat venster aangeven wie er de laatste 5 minuten online waren maar wil graag dat dat veranderd naar 1 minuut.
iemand een idee
alvast bedankt Tiger
Geplaatst: 31 jan 2006, 09:17
door brandsrus
In de lang_main.php moet je
Code: Selecteer alles
$lang['Online_explain'] = 'Deze lijst geeft de gebruikers weer die actief waren in de laatste %s minuten';
$lang['Forum_Location'] = 'Forum locatie';
De %s ff veranderen naar je eigen keuze dus in jouw geval.
Code: Selecteer alles
$lang['Online_explain'] = 'Deze lijst geeft de gebruikers weer die actief waren in de laatste 1 minuut';
$lang['Forum_Location'] = 'Forum locatie';
Geplaatst: 31 jan 2006, 13:47
door Tiger
en moet ik dat eerste getal weer terug zetten naar 500 in vieuwonline.php?
Geplaatst: 31 jan 2006, 15:17
door brandsrus
Ik heb al iets opgezocht wat je zou kunnen doen, makkelijker in te stellen.
Er is een mod "Online Time" genaamd die is bijgeleverd in de map "contrib" van Online/Offline/Hidden mod.
Hierbij de codechanges.
Code: Selecteer alles
##############################################################
## MOD Title: Online Time
## MOD Author: kooky < [nospam]kooky@altern.org > (n/a) http://www.myphpbb.zaup.org
## MOD Description: This mod will base online time in index and viewonline
## on the online status time.
## MOD Version: 1.0.1
##
## Installation Level: Easy
## Installation Time: 2-5 Minutes
## Files To Edit: 5
## index.php
## viewonline.php
## admin/index.php
## includes/page_header.php
## language/lang_english/lang_main.php
## Included Files: N/A
##
## License: http://opensource.org/licenses/gpl-license.php GNU General Public License v2
##############################################################
## For security purposes, please check: http://www.phpbb.com/mods/
## for the latest version of this MOD. Although MODs are checked
## before being allowed in the MODs Database there is no guarantee
## that there are no security problems within the MOD. No support
## will be given for MODs not found within the MODs Database which
## can be found at http://www.phpbb.com/mods/
##############################################################
## Author Notes:
##
## 1. Copyright and special thanks!
## -----------
## This program is free software, you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
## the Free Software Foundation.
##
## If you want to add this Mod to any database, please don't add
## my e-mail address to a topic, just point to my website (see above).
## (for spamming prevention)
##
## 2. Feature list
## -----------
## MOD Required: Online/Offline/Hidden
## kooky < [nospam]kooky@altern.org > (n/a) http://www.myphpbb.zaup.org/
##
## This MOD tries to enhance the online time.
## You need the Online/Offline/Hidden Mod to make this add-on working.
##
## 3. Compatibility / EasyMOD
## -----------
## This MOD is compatible with phpBB 2.0.3 - 2.0.18
##
## It is also compatible with EasyMOD of Nuttzy and can be
## installed by it but is not yet certified EMC (EasyMOD Compliant)!
## http://area51.phpbb.com/phpBB22/viewforum.php?sid=&f=15
##
## 4. Official last version link
## -----------
## Contact with email address quoted above without [nospam]
## Check this official link for latest updates...
## http://www.myphpbb.zaup.org/
##
##############################################################
## MOD History:
##
## 2005/11/07 - Version 1.0.1
## - Updated code
##
## 2004/02/14 - Version 1.0.0
## - Final Release
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ OPEN ]------------------------------------------
#
language/lang_english/lang_main.php
#
#-----[ FIND ]------------------------------------------
#
$lang['Online_explain'] = 'This data is based on users active over the past five minutes';
#
#-----[ IN-LINE FIND ]------------------------------------------
#
five
#
#-----[ IN-LINE REPLACE WITH ]------------------------------------------
#
%s
#
#-----[ OPEN ]------------------------------------------
#
index.php
#
#-----[ FIND ]------------------------------------------
#
'L_ONLINE_EXPLAIN' => $lang['Online_explain'],
#
#-----[ IN-LINE FIND ]------------------------------------------
#
$lang['Online_explain']
#
#-----[ IN-LINE REPLACE WITH ]------------------------------------------
#
sprintf($lang['Online_explain'], ($board_config['online_time']/60)%60)
#
#-----[ OPEN ]------------------------------------------
#
viewonline.php
#
#-----[ FIND ]------------------------------------------
#
'L_ONLINE_EXPLAIN' => $lang['Online_explain'],
#
#-----[ IN-LINE FIND ]------------------------------------------
#
$lang['Online_explain']
#
#-----[ IN-LINE REPLACE WITH ]------------------------------------------
#
sprintf($lang['Online_explain'], ($board_config['online_time']/60)%60)
#
#-----[ FIND ]------------------------------------------
#
$sql = "SELECT u.user_id, u.username
FROM ".USERS_TABLE." u, ".SESSIONS_TABLE." s
WHERE u.user_id = s.session_user_id
AND s.session_time >= ".( time() - 300 ) . "
#
#-----[ IN-LINE FIND ]------------------------------------------
#
300
#
#-----[ IN-LINE REPLACE WITH ]------------------------------------------
#
$board_config['online_time']
#
#-----[ OPEN ]------------------------------------------
#
admin/index.php
#
#-----[ FIND ]------------------------------------------
#
$sql = "SELECT u.user_id, u.username
FROM " . USERS_TABLE . " u, " . SESSIONS_TABLE . " s
WHERE s.session_logged_in = " . TRUE . "
AND u.user_id = s.session_user_id
AND u.user_id <> " . ANONYMOUS . "
AND s.session_time >= " . ( time() - 300 ) . "
#
#-----[ IN-LINE FIND ]------------------------------------------
#
300
#
#-----[ IN-LINE REPLACE WITH ]------------------------------------------
#
$board_config['online_time']
#
#-----[ OPEN ]------------------------------------------
#
includes/page_header.php
#
#-----[ FIND ]------------------------------------------
#
$sql = "SELECT u.username
FROM ".USERS_TABLE." u, ".SESSIONS_TABLE." s
WHERE u.user_id = s.session_user_id
AND s.session_time >= ".( time() - 300 ) . "
#
#-----[ IN-LINE FIND ]------------------------------------------
#
300
#
#-----[ IN-LINE REPLACE WITH ]------------------------------------------
#
$board_config['online_time']
#
#-----[ SAVE/CLOSE ALL FILES ]----------------------------------------
#
# EoM
PS. Het benodigd de online/offline/hidden mod.
Geplaatst: 31 jan 2006, 16:35
door Paul
Die zoekt hij dus niet, hij zoekt er een voor de whoisonline

Die is te vinden op phpbbhacks.com

Geplaatst: 01 feb 2006, 01:33
door Tiger
ff kijken hoor wat ik bedoel is welke users waneer online zijn en dan de tijd ervan
Code: Selecteer alles
In total there are 3 users online :: 3 Registered, 0 Hidden and 0 Guests [ Administrator ] [ Moderator ]
Most users ever online was 23 on 18 Jan 2006 04:53 pm
Registered Users: c3p0, demyk, Tiger-X
[b]This data is based on users active over the past five minutes[/b]
en dan gaat het over de vet gedrukte letters, die wil ik op 1 minuut hebben.
Geplaatst: 01 feb 2006, 11:05
door Nymphy
misschien heb je hier wat aan :
http://phpbbhacks.com/download/1156
ik weet alleen niet of hij dit ook dan op de index doet

en of hij compatible is met 2.0.19

Geplaatst: 02 feb 2006, 04:34
door Tiger
ik ga het gewoon proberen ff de boel backupen en gaan met die banaan, bedankt voor je hulp, wist echt niet waar ik naar moest zoeken namelijk.
Groetjes Tiger
Geplaatst: 02 feb 2006, 04:48
door Tiger
was vrij makkelijk instaleren, heb echt geen idee of hij werkt hij doet niet wat me bedoeling was, volgens mij refresht ie nou elke 30 sec. de aantaal aanwezzigge users, maar het gaat erom dat ie het neerzet wie er online was de laatste minuut.
hier de install file die ik nu heb gedaan
Code: Selecteer alles
#
#-----[ Upload ]------------------------------------------
#
whoisonline_header.tpl > /templates/subsilver/whoisonline_header.tpl
wio_header.php > /includes/wio_header.php
#
#-----[ OPEN ]------------------------------------------
#
viewonline.php
#
#-----[ FIND ]------------------------------------------
#
include($phpbb_root_path . 'includes/page_header.'.$phpEx);
#
#-----[ REPLACE WITH ]------------------------------------------
#
include($phpbb_root_path . 'includes/wio_header.'.$phpEx);
#
#-----[ IF ]------------------------------------------
#
# If you are using another template besides subsilver or have edited your header template contunue. If not
# You are done.
# If you have edited your header, Make a copy of it and name it whoisonline_header.tpl . Replace the one that
# Is included in the script with the new copy by re uploading the file. Then follow the next steps.
#
#-----[ OPEN ]------------------------------------------
#
templates/subsilver/whoisonline_header.tpl
#
#-----[ FIND ]------------------------------------------
#
</head>
#
#-----[ BEFORE, ADD ]------------------------------------------
#
<meta http-equiv="refresh" content="30;url=viewonline.php">
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM