Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

where is the best place to count visitors with session?

Asked Modified Viewed 2,132 times
C
Catzenjaeger
C
  • Senior Member, joined since
  • Contributed 408 posts on the community forums.
  • Started 137 threads in the forums
  • Started this discussions
asked
Senior Member

i dont try the internal counter from my system ... so im looking for possibility count user with sessions in a simplet text counter
i bulit in but i get always the error seesion alreday startet

where i the best place to include the counter?
At the moment i have build in it in themes/templates/header.php

<?php
session_set_cookie_params(10800);
session_start();
?>

error:

templates/header.php
/site/infusions/figurelib/figures.php?figure_id=504
A session had already been started - ignoring session_start()
Line: 3

Run-time notices
templates/header.php
/site/infusions/figurelib/figures.php?figure_id=504
A session had already been started - ignoring session_start()
Line: 3
0 replies

10 posts

C
Chan
C
Chan 0
Lead Developer of PHP-Fusion
  • Super Admin, joined since
  • Contributed 3,842 posts on the community forums.
  • Started 232 threads in the forums
  • Answered 6 questions
answered
Super Admin

What is wrong with the system one?
0 replies
C
Catzenjaeger
C
  • Senior Member, joined since
  • Contributed 408 posts on the community forums.
  • Started 137 threads in the forums
  • Started this discussions
answered
Senior Member

i get many notices. (session already startet) when i add this in maincore some sites will not run .. why ever
0 replies
C
Catzenjaeger
C
  • Senior Member, joined since
  • Contributed 408 posts on the community forums.
  • Started 137 threads in the forums
  • Started this discussions
answered
Senior Member

include.php
/site_neu/home.php
Line: 78
13 seconds ago

Severity : Run-time notices
A non well formed numeric value encountered

HERE LINE 78 FROM THIS FILE
fseek($crazystat_logfile_handle,$crazystat_log[0]); // Do not start at beginning. Start where new hits began last time.
$crazystat_block=time()-$config_ip_block_time*60;// All hits after $crazystat_block are covered by IP blocking
$crazystat_counter_reload=false;
0 replies
C
Catzenjaeger
C
  • Senior Member, joined since
  • Contributed 408 posts on the community forums.
  • Started 137 threads in the forums
  • Started this discussions
answered
Senior Member

push smile
crazystat can you find here: http://www.christosoft.de/CrazyStat
0 replies
C
Chan
C
Chan 0
Lead Developer of PHP-Fusion
  • Super Admin, joined since
  • Contributed 3,842 posts on the community forums.
  • Started 232 threads in the forums
  • Answered 6 questions
answered
Super Admin

Again, what is wrong with the system one? They are just counters.
0 replies
C
Catzenjaeger
C
  • Senior Member, joined since
  • Contributed 408 posts on the community forums.
  • Started 137 threads in the forums
  • Started this discussions
answered
Senior Member

i get notices when i add this in header

include.php
/site_neu/home.php
Line: 78

Severity : Run-time notices
A non well formed numeric value encountered

HERE LINE 78 FROM THIS FILE
fseek($crazystat_logfile_handle,$crazystat_log[0]); // Do not start at beginning. Start where new hits began last time.
$crazystat_block=time()-$config_ip_block_time*60;// All hits after $crazystat_block are covered by IP blocking
$crazystat_counter_reload=false;
0 replies
C
Chan
C
Chan 0
Lead Developer of PHP-Fusion
  • Super Admin, joined since
  • Contributed 3,842 posts on the community forums.
  • Started 232 threads in the forums
  • Answered 6 questions
answered
Super Admin

0 replies
C
Catzenjaeger
C
  • Senior Member, joined since
  • Contributed 408 posts on the community forums.
  • Started 137 threads in the forums
  • Started this discussions
answered
Senior Member

you have answered but i see non content?
0 replies
F
Falk
F
Falk 146
Need help?, Having trouble?
• View our Documentation for Guides, Standards and Functions
• Name and Organize your Topics and Content correctly in the corresponding Forums for best support results
• Attaching Log Files and Screenshots when reporting issues will help
• Provide with an URL to live example if one exists
• Please read the How to Report an Error post
• Please read and comply with the Code of Conduct

(¯·._.·(¯°·._.·°º*[ Project Manager ]*º°·._.·°¯)·._.·¯)
  • Super Admin, joined since
  • Contributed 6,201 posts on the community forums.
  • Started 639 threads in the forums
  • Answered 12 questions
answered
Super Admin

The counter system you try to include need a decent port to Fusion standard first of all. There are other stats if you want more info like PD Stats for Fusion. But the best is really google stats and add their code to your footer_includes.php
0 replies
C
Catzenjaeger
C
  • Senior Member, joined since
  • Contributed 408 posts on the community forums.
  • Started 137 threads in the forums
  • Started this discussions
answered
Senior Member

thanx for your answers

Unfortunately google is not easy for germans because of our strict laws. That's my problem. PD Stats does not work perfectly and has only a few display options. I urgently need an overview of Refferers. I want to know who is the owner and who is robot. I would like to know from where my visitors come to optimize the site

here infos about google sorry in german but usw tranlator smile --> https://www.datenschutzbeauftragter-info.de/fachbeitraege/google-analytics-datenschutzkonform-einsetzen/
its really heavy
0 replies

Labels

None yet

Statistics

  • Views 0 views
  • Posts 10 posts
  • Votes 0 votes
  • Topic users 3 members

3 participants

F
F
Falk 146
Need help?, Having trouble?
• View our Documentation for Guides, Standards and Functions
• Name and Organize your Topics and Content correctly in the corresponding Forums for best support results
• Attaching Log Files and Screenshots when reporting issues will help
• Provide with an URL to live example if one exists
• Please read the How to Report an Error post
• Please read and comply with the Code of Conduct

(¯·._.·(¯°·._.·°º*[ Project Manager ]*º°·._.·°¯)·._.·¯)
  • Super Admin, joined since
  • Contributed 6,201 posts on the community forums.
  • Started 639 threads in the forums
  • Answered 12 questions
C
C
  • Senior Member, joined since
  • Contributed 408 posts on the community forums.
  • Started 137 threads in the forums
  • Started this discussions
C
C
Chan 0
Lead Developer of PHP-Fusion
  • Super Admin, joined since
  • Contributed 3,842 posts on the community forums.
  • Started 232 threads in the forums
  • Answered 6 questions

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet