1) Users Online in Past Hour
http://www.phpbbhacks.com/viewhack.php?id=574
Code: Alles auswählen
#################################################################
## Mod Title: Users Online In Past Hour
## Mod Version: 1.0.0
## Author: Brandon < Webmaster@DcTalkFans.com > -
## Description: This Mod Will Change The Users Online At The Bottom of The Index Page From 5 Minutes To 1 Hour.
##
## Installation Level: (Easy)
## Installation Time: 5 Minutes
## Files To Edit: viewonline.php, language/lang_english/lang_main.php, includes/page_header.php, admin/index.php
## Included Files: (none needed)
#################################################################
##
## Author Note:
## If You Want It To Show Users In The Past 30 Minutes.. Or Past 5 Hours Simply Change The "3600" seconds (an hour) To Whatever Amount of Time You Wish.
##
##
#################################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
#################################################################
#
#-----[ OPEN ]------------------------------------------
#
viewonline.php
#
#-----[ FIND ]------------------------------------------
#
AND ( s.session_time >= ".( time() - 300 ) . "
#
#-----[ REPLACE WITH ]------------------------------------------
#
AND ( s.session_time >= ".( time() - 3600 ) . "
#
#-----[ FIND ]------------------------------------------
#
OR u.user_session_time >= " . ( time() - 300 ) . " )
#
#-----[ REPLACE WITH ]------------------------------------------
#
OR u.user_session_time >= " . ( time() - 3600 ) . " )
#
#-----[ OPEN ]------------------------------------------
#
language/lang_english/lang_main.php
#
#-----[ FIND ]------------------------------------------
#
$lang['Online_explain'] = "This data is based on users active over the past five minutes";
#
#-----[ REPLACE WITH ]------------------------------------------
#
$lang['Online_explain'] = "This data is based on users active over the past hour";
#
#-----[ OPEN ]------------------------------------------
#
includes/page_header.php
#
#-----[ FIND ]------------------------------------------
#
AND ( s.session_time >= ".( time() - 300 ) . "
OR u.user_session_time >= " . ( time() - 300 ) . " )
#
#-----[ REPLACE WITH ]------------------------------------------
#
AND ( s.session_time >= ".( time() - 3600 ) . "
OR u.user_session_time >= " . ( time() - 3600 ) . " )
#
#-----[ OPEN ]------------------------------------------
#
open admin/index.php
#
#-----[ FIND ]------------------------------------------
#
WHERE session_logged_in = 0
AND session_time >= " . ( time() - 300 ) . "
#
#-----[ REPLACE WITH ]------------------------------------------
#
WHERE session_logged_in = 0
AND session_time >= " . ( time() - 3600 ) . "
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
Die Zeit wird also einfach von 5 Minuten auf eine Stunde raufgesetzt. Das Problem ist: Ich möchte diese Zeit noch mehr erhöhen, aber es geht aus irgendeinem grund nur bis zu 7200 Sekunden, selbst wenn ich 90000 Sekunden eingebe wird die zeit nicht verlängert.
2) Gibts noch eine andere Möglichkeit? Es sollen immer Fake-Gäste oder Fake-User-Identitäten online sein, wenn jemand kommt- geht das?