Pagina 1 van 2

totaal aantal bezoekers mod

Geplaatst: 01 feb 2004, 16:09
door guus100
Ik snap er niks van. Alles kan ik vinden :lol: behalve deze mod. En hij is nog wel zo simpel (denk ik). Ik wil gewoon onderaan mijn forum hebben hoeveel bezoekers er sinds ... geweest zijn.

Net zoals hier http://www.relaxuhforum.nl/forum.php

Zo moeilijk moet dat toch niet zijn, maar ik kan hem gewoon niet vinden.

Hoop een van jullie wel!

Geplaatst: 01 feb 2004, 16:14
door WebSiteNet

Geplaatst: 01 feb 2004, 17:11
door Leipo
Ze bedoelt ''Deze site heeft in het totaal 19755 bezoekers sinds Woensdag, December 24, 2003'' dit zinnetje denk ik :wink:

Geplaatst: 01 feb 2004, 17:30
door WebSiteNet

Geplaatst: 01 feb 2004, 20:00
door guus100
Ja die laatste is hem. BEDANKT!

Geplaatst: 01 feb 2004, 20:07
door LazyTiger
hm... heb hem ook geinstalleerd. maar volgens mij werkt hij bij mij niet...
maar ik zal het eerst fftjes zelf bekijken...

Geplaatst: 02 feb 2004, 10:14
door guus100
Ik heb net gekeken, maar volgens mij werkt hij prima bij jou hoor!

Geplaatst: 02 feb 2004, 10:54
door DimensioN
vet relaxed, ga ik ook installen :bier:

Geplaatst: 02 feb 2004, 12:49
door nilles
Die wil ik ook wel op het forum zetten alleen

http://smartor.is-root.com/viewtopic.php?t=2920 krijg ik niet te zien

ligt smartor.is-root.com eruit ?

Geplaatst: 02 feb 2004, 12:53
door Leipo
Yupz,

Geplaatst: 02 feb 2004, 12:56
door DraGonX
Leipo schreef:Yupz,
Alweer wat is er aan de hand met hun ze liggen er wel heel vaak uit he :cry:

Geplaatst: 02 feb 2004, 12:59
door Leipo
Denk dat ie nieuwe bandwich moet bestellen en dat zen portomonnee nogal leeg is :wink:

Geplaatst: 02 feb 2004, 13:10
door nilles
zou iemand de mod naar mij willen mailen :thumb:

Geplaatst: 02 feb 2004, 13:21
door DimensioN
nilles schreef:zou iemand de mod naar mij willen mailen :thumb:
ik heb hetzelfde request :oops:

Geplaatst: 02 feb 2004, 13:23
door DraGonX
Leipo schreef:Denk dat ie nieuwe bandwich moet bestellen en dat zen portomonnee nogal leeg is :wink:

hhaha zou kunnen ja.

En oja ken het ook naar mij gemaild worden :?:

Thx a Lot !

Geplaatst: 02 feb 2004, 16:06
door LazyTiger
guus100 schreef:Ik heb net gekeken, maar volgens mij werkt hij prima bij jou hoor!
hij doet het nu wel ja, vergeten db update door te voeren. stond onderaan.


diegene die hem willen installeren:

Code: Selecteer alles

##############################################################
## MOD Title: Text-based Visit Counter
## MOD Author: Smartor < smartor_xp@hotmail.com > (Hoang Ngoc Tu) http://smartor.is-root.com
## MOD Description:	This will add a visit counter into your phpBB. Use MySQL to store data
## MOD Version: 1.1.1
##
## Installation Level: easy
## Installation Time: 5 Minutes
## Files To Edit: 3
##	includes/page_header.php
##	language/lang_english/lang_main.php
##	templates/subSilver/index_body.tpl
##
## Included Files: N/A
##############################################################
## For Security Purposes, Please Check: http://www.phpbb.com/mods/downloads/ for the
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code
## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered
## in our MOD-Database, located at: http://www.phpbb.com/mods/downloads/
##############################################################
## Author Notes:
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
## Revision History:
##	v1.1.1:
##		+ now can count better on slow servers
##	v1.1.0:
##		+ improved performance
##		+ phpBB 2.0.4 compatible
##	v1.0.0:
##		+ initial
##############################################################


#
#-----[ OPEN ]----------------------------------------
#
language/lang_english/lang_main.php

#
#-----[ FIND ]-----------------------------------
#
//
// That's all, Folks!


#
#-----[ BEFORE ADD ]-----------------------------
#
// Visit Counter
$lang['Visit_counter'] = 'This board has <b>%d</b> visitors in total since Sunday, March 16, 2003';

#
#-----[ OPEN ]------------------------------------------
#
includes/page_header.php

#
#-----[ FIND ]------------------------------------------
#
//
// Parse and show the overall header.
//
$template->set_filenames(array(
	'overall_header' => ( empty($gen_simple_header) ) ? 'overall_header.tpl' : 'simple_header.tpl')
);

#
#-----[ BEFORE ADD ]-------------------------------------
#
//
// Smartor's Visit Counter MOD
//
$visit_counter = $board_config['visit_counter'];

if( $userdata['session_start'] >= (time() - 1) )
{
	$sql = "UPDATE " . CONFIG_TABLE . "
			SET config_value = '" . ($visit_counter + 1) . "'
			WHERE config_name = 'visit_counter'";
	if( !($result = $db->sql_query($sql)) )
	{
		message_die(GENERAL_ERROR, 'Could not update counter information', '', __LINE__, __FILE__, $sql);
	}

	$visit_counter++;
}
// ------------------------------------
//


#
#-----[ FIND ]-------------------------------------------
#
	'NAV_LINKS' => $nav_links_html)

#
#-----[ BEFORE ADD ]------------------------------------
#
	// Counter MOD
	'VISIT_COUNTER' => sprintf($lang['Visit_counter'], $visit_counter),

#
# You completed the PHP part. To put the counter on your board you could
# place {VISIT_COUNTER} anywhere you want in any template files. For example:
#-----[ OPEN ]---------------------------------
#
templates/subSilver/index_body.tpl

#
#-----[ FIND ]---------------------------------
#
<td class="row1" align="left" width="100%"><span class="gensmall">{TOTAL_POSTS}<br />{TOTAL_USERS}<br />{NEWEST_USER}

#
#-----[ INLINE-AFTER ADD ]-------------------
#
<br />{VISIT_COUNTER}

#
#-----[ SQL QUERY ]-------------------------------------
# Replace phpbb_ with your table prefix
# Replace '1' with your wised starting value
#
INSERT INTO phpbb_config (config_name, config_value) VALUES ('visit_counter', '1');


#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM

Geplaatst: 02 feb 2004, 16:07
door DimensioN
thx ik ga het installen!! :thumb:

edit:

Code: Selecteer alles

#-----[ OPEN ]--------------------------------- 
# 
templates/subSilver/index_body.tpl 

# 
#-----[ FIND ]--------------------------------- 
# 
<td class="row1" align="left" width="100%"><span class="gensmall">{TOTAL_POSTS}<br />{TOTAL_USERS}<br />{NEWEST_USER} 

# 
#-----[ INLINE-AFTER ADD ]------------------- 
# 
<br />{VISIT_COUNTER} 
hier gaat het fout, die regel vind ik niet...komt waarschijnlijk omdat ik zonecopper gebruik en geen subsilver, is er tog een manier deze counter te installen nu...kep wel al andere 2 dingen aangepast

Geplaatst: 02 feb 2004, 22:46
door nilles
Thanx P.T. ik ga hem morgen in mijn forum zetten.

DimensioN je kunt ook zoeken naar een deel van de regel als je een ander template hebt, dat is bij mij ook het geval.

Geplaatst: 02 feb 2004, 22:47
door DimensioN
nilles schreef:Thanx P.T. ik ga hem morgen in mijn forum zetten.

DimensioN je kunt ook zoeken naar een deel van de regel als je een ander template hebt, dat is bij mij ook het geval.
kep elk deel gezocht...vind NIX

Geplaatst: 02 feb 2004, 23:45
door nilles
ik heb het Appalachia template en heb het gevonden nu even kijken of hij ook werkt