Page 1 of 6

Simple text hit counter

Posted: Sun Aug 17, 2008 10:51 pm
by Extensions Robot
Modification name: Simple text hit counter
Author: spyka
Modification description: Adds a text hit counter to the footer of your forum. Formatted output, e.g.: 10,000. Hits stored in phpBB config table
Modification version: 1.0.1
Tested on phpBB version: 3.0.2

Download file: phpbb-text-hit-counter-1.0.1.zip
File size: 29.17 KiB

Modification overview page: View

The phpBB Team is not responsible nor required to provide support for this modification. By installing this MOD, you acknowledge that the phpBB Support Team or phpBB Extension Customisations Team may not be able to provide support.

-->Modification support<--

Simple text hit counter

Posted: Sun Aug 17, 2008 10:51 pm
by A_Jelly_Doughnut
Modification validated/released

Notes:

Simple text hit counter

Posted: Sun Aug 17, 2008 10:51 pm
by spyka
Thanks =)

Re: Simple text hit counter

Posted: Mon Aug 18, 2008 3:21 am
by Plox
Nice. :)

Re: Simple text hit counter

Posted: Mon Aug 18, 2008 4:05 pm
by DeathValley
Thanks!

Re: Simple text hit counter

Posted: Mon Aug 18, 2008 4:32 pm
by danswano
It's counting the new hits only, what about the old millions hits. :?

Re: Simple text hit counter

Posted: Mon Aug 18, 2008 8:50 pm
by madtay
Cool mod and so simple to install :D tyvm

I actually took it a step further and added it to the forum statistics :mrgreen:

Image

Re: Simple text hit counter

Posted: Tue Aug 19, 2008 7:50 pm
by Crispy
ty, works a treat mate :D
Put it in my statistics too. :D

Re: Simple text hit counter

Posted: Wed Aug 20, 2008 12:45 am
by g unit
madtay wrote:Cool mod and so simple to install :D tyvm

I actually took it a step further and added it to the forum statistics :mrgreen:

Image
Me too... good idea, great little mod ;)

Image

Re: Simple text hit counter

Posted: Wed Aug 20, 2008 2:32 am
by Abera
madtay wrote:Cool mod and so simple to install :D tyvm

I actually took it a step further and added it to the forum statistics :mrgreen:

Image
This is what I'm showing:

Statistics
Total posts 7 • Total topics 5 •
11 Views Total members 8 • Our newest member TagL


This is the syntax in my styles/prosilver/template/index_body.html:

<!-- IF NEWEST_USER -->
<h3>{L_STATISTICS}</h3>
<p>{TOTAL_POSTS} &bull; {TOTAL_TOPICS} &bull; {L_VIEWS} {TOTAL_PAGE_VIEWS} {HITS} &bull; {TOTAL_USERS} &bull; {NEWEST_USER}</p>
<!-- ENDIF -->


Where am I wrong? I just see "Views" not "Page Views" as in the quote and it's dropped to the next line.

Re: Simple text hit counter

Posted: Wed Aug 20, 2008 5:16 pm
by iftitaj
@Abera:
For prosilver, try making it:

Code: Select all

	<p>{TOTAL_POSTS} &bull; {TOTAL_TOPICS} &bull; {TOTAL_USERS} &bull; {L_VIEWS} <strong>{HITS}</strong> &bull; {NEWEST_USER}</p>
This will remove any "dropped to next line" thing.

For exact "Page View" ... I'm telling you hard-coded way, which is of course bad-practice for multi-lingual boards:

Code: Select all

	<p>{TOTAL_POSTS} &bull; {TOTAL_TOPICS} &bull; {TOTAL_USERS} &bull; Page views <strong>{HITS}</strong> &bull; {NEWEST_USER}</p>

Re: Simple text hit counter

Posted: Wed Aug 20, 2008 5:18 pm
by iftitaj
Forgot to thanx spyka for a great MOD. :D

Re: Simple text hit counter

Posted: Thu Aug 21, 2008 5:16 am
by Abera
iftitaj wrote:@Abera:
For prosilver, try making it:

Code: Select all

	<p>{TOTAL_POSTS} &bull; {TOTAL_TOPICS} &bull; {TOTAL_USERS} &bull; {L_VIEWS} <strong>{HITS}</strong> &bull; {NEWEST_USER}</p>
This will remove any "dropped to next line" thing.

For exact "Page View" ... I'm telling you hard-coded way, which is of course bad-practice for multi-lingual boards:
<p>{TOTAL_POSTS} &bull; {TOTAL_TOPICS} &bull; {TOTAL_USERS} &bull; Page views <strong>{HITS}</strong> &bull; {NEWEST_USER}</p>


Thanks. That worked.

Re: Simple text hit counter

Posted: Thu Aug 21, 2008 7:25 am
by ryan_46307
I have had this on my site for maybe an hour so far and the hit counter is up to like 621 views and its 2:25 in the morning. My site does not get THAT many visitors at the wee hours of the morning. Any idea why the count it going up so high so fast?

Re: Simple text hit counter

Posted: Thu Aug 21, 2008 8:56 am
by iftitaj
ryan_46307 wrote:I have had this on my site for maybe an hour so far and the hit counter is up to like 621 views and its 2:25 in the morning. My site does not get THAT many visitors at the wee hours of the morning. Any idea why the count it going up so high so fast?
I think it counts pageviews not unique hits. Secondly there is very much possibility that some BOTs are there scrolling many pages very quickly. :!:
Do you have any Stats software on your server ... if so check it out to see actual pageviews & compare them.