BBCodeBox3

prosilver | subsilver2

Willkommen und Gute Nacht, Guest  Beim nächsten Piep ist es zwischen 23:00 und 0:00 Uhr

It is currently Sun 23. Feb 2025, 00:54

All times are UTC + 1 hour [ DST ]




Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
PostPosted: Sun 29. Jun 2008, 18:15 
Administrator
User avatar

Posts: 427

Last 3 Topics:
Tabmenu Test
[Snippet] Avatar Ev...
[DEV] Zero and X-P...

Joined:
Sun 13. Jan 2008, 23:44

Die Einbindung des ChCounter in phpbb3 ist easy:

Öffne

includes/functions.php

Finde

Quote:
/**
* Generate page header
*/
function page_header($page_title = '', $display_online_list = true)
{
global $db, $config, $template, $SID, $_SID, $user, $auth, $phpEx, $phpbb_root_path;


Dahinter füge ein

Quote:
// chCounter
ob_start();
$chCounter_force_new_db_connection = FALSE;
$chCounter_page_title = $page_title;
include( 'pfad_zum_counter/counter.php' );
$chCounter = ob_get_contents();
ob_end_clean();
// chCounter


Fettmarkiertes (korrekt) an Pfad anpassen (sonst gibt es eine Fehlermeldung)


Finde

Code:
          // The following assigns all _common_ variables that may be used at any point in a template.
       $template->assign_vars(array(


Dahinter füge ein

Code:
           'COUNTER'                       => $chCounter,



Wichtig

Einloggen unter

Code:
http://www.deinforum.de/pfad_zum_chcounter/administration/index.php


und dann manövriere > [Einstellungen] > Statistiken > • Einstellungen > Seitenstatistik: Query-String-Bereinigung..

Dort in die Textbox folgende Strings eingeben (ggf. vorhandene überschreiben)

Code:
latest; top; sort_by; sort_order; distr_type; distr_of; d_day; d_month; d_year; d_type; m_month; m_year; m_type; w_month; w_year; w_type; y_year; y_type; l_last; l_type; lang; type; clh; homepage_id; kp; month; p_month; d_month; h_month; ref_month; refdom_month; kp_month; se_month; b_month; os_month; r_month; clh_month; res_month; PHPSESSID; sid; search_author; highlight; folder; logout; search_id; mark; view; agreed; vote; watch; unwatch; redirect; topicdays; coppa; order; is_robot; c;


Erstens dient es der Sicherheit und nur so wird in der Statistik auch der Seitentitel aller Seiten, die gelesen, besucht etc. wurden, korrekt ausgegeben.

Sonstiger Einbau nach (normaler) Anleitung :wink:

----------------------------

Um die Counter Anzeige wie hier im Forum zu haben..

Öffne

counter/templates/counter.tpl.html
(Datei vorher sichern)

Ersetze Originalinhalte mit:

Code:
    Besuche insgesamt <b>{V_TOTAL_VISITORS}</b> &bull; Heute <b>{V_VISITORS_TODAY}</b>
    &bull; Gestern <b>{V_VISITORS_YESTERDAY}</b> &bull; Aufrufe insgesamt <b>{V_TOTAL_PAGE_VIEWS}</b> &bull; Heute <b>{V_PAGE_VIEWS_TODAY}</b>
    &bull; Gestern <b>{V_PAGE_VIEWS_YESTERDAY}</b>


(oder beliebigen anderen Variablen des Counters)

Alle Board- und Browser-Caches leeren


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 10 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
cron
POWERED_BY
[ Time : 0.012s | 15 Queries | GZIP : Off | Board-Version: 3.0.7 PL1 ]