COUNTER NODIG
Forumregels
Sinds 1 januari 2009 wordt phpBB2 niet meer ondersteund.
Onderstaande informatie is verouderd en dient uitsluitend als archief.
Sinds 1 januari 2009 wordt phpBB2 niet meer ondersteund.
Onderstaande informatie is verouderd en dient uitsluitend als archief.

-
- Berichten: 286
- Lid geworden op: 10 apr 2003, 16:32
- Contacteer:
COUNTER NODIG
eey phpbb-nl waar kan ik die mod vinden van die counter keb al gezocht maar nog nie gevonden kvind dat wel handig wat telt hij de hits of unieke bezoekers per dag ???
Greetz webmaster http://www.inline-boarden.tk
http://www.linkpiramide.nl/?208
meld je aan en krijg 100,000 unieke bezoekers
http://www.linkpiramide.nl/?208
meld je aan en krijg 100,000 unieke bezoekers
naar wat ben je precies op zoek? de counter die je hieronder ziet telt het aantal pageviews
-----------------------------------8<------(Hierlangs Afknippen)----------------------------------
Gebruik altijd de supporttemplate ! Deze is er niet voor niets !
! Geen support via pb, tenzij ik zelf anders aangeef !
Gebruik altijd de supporttemplate ! Deze is er niet voor niets !
! Geen support via pb, tenzij ik zelf anders aangeef !
-
- Berichten: 286
- Lid geworden op: 10 apr 2003, 16:32
- Contacteer:
ja die zoek ik weet je waar ik die kan vinden
Greetz webmaster http://www.inline-boarden.tk
http://www.linkpiramide.nl/?208
meld je aan en krijg 100,000 unieke bezoekers
http://www.linkpiramide.nl/?208
meld je aan en krijg 100,000 unieke bezoekers
Misschien is het niet eens een phpBB mod maar gewoon ingebouwde code, zou allebei kunnen. Maar je kan ook gewoon een tellertje van Nedstat nemen en die in je index of overall_footer zetten, ik kan je zelfs laten zien hoe je dat dingetje onzichtbaar maakt. En dan houdt hij ook nog veel extra dingen voor je bij als hits in de afgelopen weken/maanden, resolutie, plugins, browser, afkomst en nog veel meer. :thumb:
##############################################################
## 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
## 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
-
- Berichten: 286
- Lid geworden op: 10 apr 2003, 16:32
- Contacteer:
THNX bruno ga ermee aan de slag !!
Greetz webmaster http://www.inline-boarden.tk
http://www.linkpiramide.nl/?208
meld je aan en krijg 100,000 unieke bezoekers
http://www.linkpiramide.nl/?208
meld je aan en krijg 100,000 unieke bezoekers
-
- Berichten: 286
- Lid geworden op: 10 apr 2003, 16:32
- Contacteer:
wat mo ik eigenlijk doen met dat SQL query want hij telt nu nog nie op bij mij !!
Greetz webmaster http://www.inline-boarden.tk
http://www.linkpiramide.nl/?208
meld je aan en krijg 100,000 unieke bezoekers
http://www.linkpiramide.nl/?208
meld je aan en krijg 100,000 unieke bezoekers
-
- Berichten: 286
- Lid geworden op: 10 apr 2003, 16:32
- Contacteer:
hoe kan ik dingen toevoegen in mijn database //???
Greetz webmaster http://www.inline-boarden.tk
http://www.linkpiramide.nl/?208
meld je aan en krijg 100,000 unieke bezoekers
http://www.linkpiramide.nl/?208
meld je aan en krijg 100,000 unieke bezoekers
-
- Berichten: 286
- Lid geworden op: 10 apr 2003, 16:32
- Contacteer:
Greetz webmaster http://www.inline-boarden.tk
http://www.linkpiramide.nl/?208
meld je aan en krijg 100,000 unieke bezoekers
http://www.linkpiramide.nl/?208
meld je aan en krijg 100,000 unieke bezoekers