die meisten machen es dennoch

Auf einem Bezahlserver ist sowas im Allgemeinen offiziell genehmigt.
lg
4seven
Ich habe jetzt mal den Counter testweise auf meinem localhost eingebaut, er zählt auch schön, aber es wird keine Statistik im footer angezeigt. Laut Anleitung muss da nur {COUNTER} eingetragen werden. Bei mir wird an dieser Stelle dann nur 1 ausgegeben, sonst weiter nichts. Hast du sonst noch irgendwelche Anpassungen für phpBB3 gemacht?4seven hat geschrieben:Einbindung im phpbb3 ist easy:
Öffne
includes/functions.php
An groß formatierter Stelle einbinden./**
* Generate page header
*/
function page_header($page_title = '', $display_online_list = true)
{
global $db, $config, $template, $SID, $_SID, $user, $auth, $phpEx, $phpbb_root_path;
// 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();
//
if (defined('HEADER_INC'))
Fettmarkiertes (korrekt) an Pfad anpassen (sonst Fehlermeldung)
Wichtig
Einloggen unter
http://www.deinforum.de/pfad_zum_chcoun ... /index.php
und dann manövriere > [Einstellungen] > Statistiken > • Einstellungen > Seitenstatistik: Query-String-Bereinigung..
Dort in die Textbox folgende Strings eingeben (ggf. vorhandene überschreiben)
Erstens dient es der Sicherheit und nur so wird in der Statistik auch der Seitentitel aller Seiten, die gelesen, besucht etc. wurden, korrekt ausgegeben.Code: Alles auswählen
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;
Sonstiger Einbau nach (normaler) Anleitung![]()
have fun
4seven
- Die "normale" Anleitung 100% 1zu1 ausgeführt? (ggf. nochmal checken)Helmut hat geschrieben:Ich habe jetzt mal den Counter testweise auf meinem localhost eingebaut, er zählt auch schön, aber es wird keine Statistik im footer angezeigt. Laut Anleitung muss da nur {COUNTER} eingetragen werden. Bei mir wird an dieser Stelle dann nur 1 ausgegeben, sonst weiter nichts. Hast du sonst noch irgendwelche Anpassungen für phpBB3 gemacht?
Code: Alles auswählen
URLs
URL der Website: http://sekuro.se.funpic.de/phpbb3
URL des Counter-Verzeichnisses: http://sekuro.se.funpic.de/count
Code: Alles auswählen
chc_access
chc_config
chc_counted_users
chc_data
chc_downloads_and_hyperlinks
chc_downloads_and_hyperlinks_logs
chc_ignored_users
chc_locale_information
chc_log_data
chc_online_users
chc_pages
chc_referrers
chc_screen_resolutions
chc_search_engines
chc_user_agents
Code: Alles auswählen
// loggen
if( $_CHC_CONFIG['status_logs'] == '1' )
{
$_CHC_DB->query(
'INSERT INTO `'.CHC_DATABASE .'`.`'. CHC_TABLE_LOG_DATA."`
(nr, ip, host, user_agent, is_robot, http_accept_language, timestamp, referrer)
VALUES
('". $_CHC_VALUES['besucher_gesamt']."', '". $chC_REMOTE_ADDR ."', '". $chC_host ."', '". $_CHC_DB->escape_string ( $chC_HTTP_USER_AGENT )."', ". $_CHC_VALUES['is_robot'] .", '". $chC_HTTP_ACCEPT_LANGUAGE ."', ".CHC_TIMESTAMP.", '". $_CHC_DB->escape_string ( $chC_HTTP_REFERER )."')"
);
}
Code: Alles auswählen
// loggen
if( $_CHC_CONFIG['status_logs'] == '1' )
{
$_CHC_DB->query(
'INSERT INTO `'.CHC_DATABASE .'`.`'. CHC_TABLE_LOG_DATA."`
(nr, ip, host, user_agent, is_robot, http_accept_language, timestamp, referrer, seiten, downloads, hyperlinks)
VALUES
('". $_CHC_VALUES['besucher_gesamt']."', '". $chC_REMOTE_ADDR ."', '". $chC_host ."', '". $_CHC_DB->escape_string ( $chC_HTTP_USER_AGENT )."', ". $_CHC_VALUES['is_robot'] .", '". $chC_HTTP_ACCEPT_LANGUAGE ."', ".CHC_TIMESTAMP.", '". $_CHC_DB->escape_string ( $chC_HTTP_REFERER )."', '','','')"
);
}
Code: Alles auswählen
chCounter: MySQL error!
SQL query:
* INSERT INTO `db7_****_****`.`chc_pages` (wert, homepage_id, counter_verzeichnis, titel, timestamp, monat, anzahl, anzahl_einstiegsseite, anzahl_ausgangsseite ) VALUES ( '/index.php', 1, 0, 'Foren-Übersicht', 1205178089, 200803, 1, 0, 1 )
Error number: 1406
Data too long for column 'titel' at row 1
Script stopped.
Code: Alles auswählen
<?xml version="1.0" encoding="ISO-8859-1"?>
Code: Alles auswählen
ü –> ü
Öffne<!-- IF NEWEST_USER -->
<h3>{L_STATISTICS}</h3>
{TOTAL_POSTS} • {TOTAL_TOPICS} • {TOTAL_USERS} • {NEWEST_USER}
<!-- ENDIF -->
<h3>Counter</h3>{COUNTER}
<!-- INCLUDE overall_footer.html -->
Zu guter Letzt:<!-- IF S_DISPLAY_BIRTHDAY_LIST -->
<br clear="all" />
<table class="tablebg" width="100%" cellspacing="1">
<tr>
<td class="cat" colspan="2"><h4>{L_BIRTHDAYS}</h4></td>
</tr>
<tr>
<td class="row1" align="center" valign="middle"></td>
<td class="row1" width="100%"><p class="genmed"><!-- IF BIRTHDAY_LIST -->{L_CONGRATULATIONS}: <b>{BIRTHDAY_LIST}</b><!-- ELSE -->{L_NO_BIRTHDAYS}<!-- ENDIF --></p></td>
</tr>
</table>
<!-- ENDIF -->
<br clear="all" />
<table class="tablebg" width="100%" cellspacing="1">
<tr>
<td class="cat" colspan="2"><h4>{L_STATISTICS}</h4></td>
</tr>
<tr>
<td class="row1" rowspan="2" width="46" nowrap align="center" valign="middle"></td>
<td class="row1" rowspan="2">
{TOTAL_POSTS} • {TOTAL_TOPICS} • {TOTAL_USERS}
• {NEWEST_USER} {LAST_POST_ON_INDEX}
</td>
</tr>
</table>
<br clear="all" />
<table class="tablebg" width="100%" cellspacing="1">
<tr>
<td class="cat" colspan="2"><h4>Counter</h4></td>
</tr>
<tr>
<td class="row1" rowspan="2" width="46" nowrap align="center" valign="middle"></td>
<td class="row1" rowspan="2">
{COUNTER}
</td>
</tr>
</table>
<!-- IF not S_USER_LOGGED_IN -->
<br clear="all" />
<form method="post" action="{S_LOGIN_ACTION}">
<table class="tablebg" width="100%" cellspacing="1">
<tr>
<td class="cat"><h4><a href="{U_LOGIN_LOGOUT}">{L_LOGIN_LOGOUT}</a></h4></td>
</tr>
<tr>
Code: Alles auswählen
Besuche insgesamt <b>{V_TOTAL_VISITORS}</b> • Heute <b>{V_VISITORS_TODAY}</b>
• Gestern <b>{V_VISITORS_YESTERDAY}</b> • Aufrufe insgesamt <b>{V_TOTAL_PAGE_VIEWS}</b> • Heute <b>{V_PAGE_VIEWS_TODAY}</b>
• Gestern <b>{V_PAGE_VIEWS_YESTERDAY}</b>