Seite 1 von 1

IMMER irgendwer online auf der hauptseite?

Verfasst: 02.09.2004 10:45
von austrian-i
da mein forum relativ neu ist, möchte ich, dass immer wer online ist, wenn gäste das board besuchen, damit es nicht leer aussieht. dazu gibt es folgende möglichkeiten

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?

Verfasst: 02.09.2004 13:17
von danysahne333
zu 2.) beim wbb2 board gibt es so einen bot-mod. da.h. es ist immer dieser botonline. und begrüsst , die , die sich neue angemeldet haben mit einer pn und einem post.

obs sowas auch fürs phpbb2 board gibt weiss ich nicht :-?

Verfasst: 02.09.2004 14:36
von TheRealKoston
Ich denke, der Lastvisit Mod könnte dein Freund sein:
http://mods.db9.dk/viewforum.php?f=1

Verfasst: 02.09.2004 23:07
von austrian-i
sonst ideen noch?