chCounter für phpBB-Foren

Du hast Probleme beim Einbau oder bei der Benutzung eines Mods? In diesem Forum bist du richtig.
Forumsregeln
phpBB 2.0 hat das Ende seiner Lebenszeit überschritten
phpBB 2.0 wird nicht mehr aktiv unterstützt. Insbesondere werden - auch bei Sicherheitslücken - keine Patches mehr bereitgestellt. Der Einsatz von phpBB 2.0 erfolgt daher auf eigene Gefahr. Wir empfehlen einen Umstieg auf phpBB 3.0, welches aktiv weiterentwickelt wird und für welches regelmäßig Updates zur Verfügung gestellt werden.
Antworten
Benutzeravatar
Dominik Müller
Mitglied
Beiträge: 494
Registriert: 08.08.2004 19:04
Wohnort: Siegbach
Kontaktdaten:

chCounter für phpBB-Foren

Beitrag von Dominik Müller »

Hallo zusammen,

ich nutze für mein Forum den chCounter und habe ein Problem: Wenn ich mir die Statistiken ansehe, fällt auf, dass keine einzige Seite des Forums aufgelistet ist, sondern nur die Seiten aus dem Verzeichnis des Counters (wie /stats/counter.php oder Besucherdetails).

Woran liegt das? Ich will ja nicht wissen welche Seiten des Counters angeschaut wurden, sondern welche des Forums!

Grüße
Dominik
Benutzeravatar
Markus Wandel
Mitglied
Beiträge: 658
Registriert: 01.12.2003 18:13
Wohnort: Wuppertal
Kontaktdaten:

Beitrag von Markus Wandel »

HI,

hast Du auch diese Info die dabei ist gelesen ?

Code: Alles auswählen

##############################################################
## MOD Title: chCounter integration
## MOD Author: Christoph Bachner < webmaster@christoph-bachner.net > http://www.christoph-bachner.net
## MOD Description: Includes the chCouter into every phpBB page.
## MOD Version:  1.0.0
##
## Installation Level: easy
## Installation Time: 3 Minutes
## Files To Edit: (3)
##          page_header.php
##          overall_footer.tpl
##          simple_footer.php
##############################################################
### Author Notes:
##
##      This MOD is NOT EasyMod compatible.
##      The chCounter should be installed first.
##
###
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################


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

#
#-----[ FIND ]------------------------------------------
#
//
// The following assigns all _common_ variables that may be used at any point
// in a template.
//

#
#-----[ BEFORE, ADD ]------------------------------------------
#
//
// chCounter
//
ob_start();
$chCounter_force_new_db_connection = FALSE;
include( 'absolute_path_to_counter_directory/counter.php' );
$chCounter = ob_get_contents();
ob_end_clean();


#
#-----[ FIND ]------------------------------------------
#
	'SITENAME' => $board_config['sitename'],

#
#-----[ AFTER, ADD ]------------------------------------------
#
	'COUNTER' => $chCounter,



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

#
#-----[ IN-LINE FIND ]------------------------------------------
#
Powered by <a href="http://www.phpbb.com/" target="_phpbb" class="copyright">phpBB</a> {PHPBB_VERSION} &copy; 2001, 2002 phpBB Group<br />{TRANSLATION_INFO}</span>

#
#-----[ In-LINE AFTER, ADD ]------------------------------------------
#
<br />
{COUNTER}



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

#
#-----[ IN-LINE FIND ]------------------------------------------
#
Powered by <a href="http://www.phpbb.com/" target="_phpbb" class="copyright">phpBB</a> {PHPBB_VERSION} &copy; 2001,2002 phpBB Group</span>

#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
# 
<br />
{COUNTER}




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


#
# ADDITIONAL INSTRUCTIONS/HINTS
#
# 1. The chCounter must be installed first.
# 2. You must customize the path to the counter directory that is added to the file page_header.php.
# 3. The placeholder {COUNTER} _must_ be noted within the templates. To be able to count JavaScript and screen resolutions,
#    an (invisible) output of the counter has to be transferred to the visitors. But of course you can note this placeholder
#    whereever you like.
# 4. To pretend that the phpBB session IDs are stored by the counter (which would be a serious security issue),
#    you have to tell the counter to remove the "sid" variable (without quotes)
#    (Administration Area -> Settings -> Statistics -> Common -> Pages statistic: purge of the query string)
#    You may even add every GET variable that is used by phpBB to this list. The variables:
#    sid; mode; u; search_author; t; p; f; highlight; folder; logout; start; postdays; postorder; search_id; mark; view; agreed; vote; watch; unwatch; c; redirect; topicdays; coppa; order; 
#


# EoM
bye
Markus
WebMaster von: www.RoCoFa.de - Wir sind die RollerCoasterFans
Die Seite für Achterbahn- und Freizeitparkfans, kostenlose Mitgliedschaft, keine Verpflichtungen.
Benutzeravatar
Dominik Müller
Mitglied
Beiträge: 494
Registriert: 08.08.2004 19:04
Wohnort: Siegbach
Kontaktdaten:

Beitrag von Dominik Müller »

Ja, so hab ich es ja in meinem Board eingebaut: http://www.schildkroetenforum.net
Benutzeravatar
Markus Wandel
Mitglied
Beiträge: 658
Registriert: 01.12.2003 18:13
Wohnort: Wuppertal
Kontaktdaten:

Beitrag von Markus Wandel »

Hast du auch dieses Teil richtig angepaßt ?

Code: Alles auswählen

include( 'absolute_path_to_counter_directory/counter.php' );
da sollte man genau drauf achten. Mein mir läuft der Counter einwandfrei.
WebMaster von: www.RoCoFa.de - Wir sind die RollerCoasterFans
Die Seite für Achterbahn- und Freizeitparkfans, kostenlose Mitgliedschaft, keine Verpflichtungen.
Benutzeravatar
Dominik Müller
Mitglied
Beiträge: 494
Registriert: 08.08.2004 19:04
Wohnort: Siegbach
Kontaktdaten:

Beitrag von Dominik Müller »

Ist alles korrekt, sonst würde ja der Counter im Forum nicht angezeigt...
Antworten

Zurück zu „phpBB 2.0: Mod Support“