Simple text hit counter

All new MODs released in our MOD Database will be announced in here. All support for released MODs needs to take place in the Customisations Database.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

NOTICE: This forum is only for the announcement of new releases and/or updates of MODs. Any MOD support should be obtained through the Customisations Database in the support area designated for each MOD.

A direct link to support for each MOD is in the first post of the respective topic.
Extensions Robot
Extensions Robot
Extensions Robot
Posts: 28508
Joined: Sat Aug 16, 2003 7:36 am

Simple text hit counter

Post 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<--
Last edited by Extensions Robot on Mon Sep 14, 2020 12:37 pm, edited 10 times in total.
(this is a non-active account manager for the phpBB Extension Customisations Team)
User avatar
A_Jelly_Doughnut
Former Team Member
Posts: 34457
Joined: Sat Jan 18, 2003 1:26 am
Location: Where the Rivers Run
Contact:

Simple text hit counter

Post by A_Jelly_Doughnut »

Modification validated/released

Notes:
A Donut's Blog
"Bach's Prelude (Cello Suite No. 1) is driving Indiana country roads in Autumn" - Ann Kish
spyka
Registered User
Posts: 76
Joined: Fri Jul 13, 2007 6:16 pm

Simple text hit counter

Post by spyka »

Thanks =)
Last edited by spyka on Sat Aug 30, 2008 5:27 am, edited 1 time in total.
Plox
Registered User
Posts: 186
Joined: Mon Jul 07, 2008 8:40 pm

Re: Simple text hit counter

Post by Plox »

Nice. :)
Last edited by Plox on Mon Aug 18, 2008 4:11 pm, edited 1 time in total.
000webhost - Host your phpBB forum for free.
User avatar
DeathValley
Registered User
Posts: 16
Joined: Mon Aug 04, 2008 8:23 pm
Location: Pais de Llavallol

Re: Simple text hit counter

Post by DeathValley »

Thanks!
danswano
Registered User
Posts: 273
Joined: Sun Apr 06, 2008 10:43 pm

Re: Simple text hit counter

Post by danswano »

It's counting the new hits only, what about the old millions hits. :?
madtay
Registered User
Posts: 328
Joined: Tue Jun 27, 2006 10:27 pm
Contact:

Re: Simple text hit counter

Post 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
Crispy
Registered User
Posts: 30
Joined: Sat Aug 09, 2008 12:18 pm

Re: Simple text hit counter

Post by Crispy »

ty, works a treat mate :D
Put it in my statistics too. :D
g unit
Registered User
Posts: 28
Joined: Wed Jun 27, 2007 3:16 am
Location: Pennsylvania, USA
Contact:

Re: Simple text hit counter

Post 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
The Pub Playin Killas is a DOD:S and COD:WaW Team.
Abera
Registered User
Posts: 674
Joined: Mon Jan 15, 2007 1:26 am

Re: Simple text hit counter

Post 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.
iftitaj
Registered User
Posts: 638
Joined: Tue Jan 15, 2008 6:21 am
Location: Karachi, Pakistan

Re: Simple text hit counter

Post 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>
iftitaj
Registered User
Posts: 638
Joined: Tue Jan 15, 2008 6:21 am
Location: Karachi, Pakistan

Re: Simple text hit counter

Post by iftitaj »

Forgot to thanx spyka for a great MOD. :D
Abera
Registered User
Posts: 674
Joined: Mon Jan 15, 2007 1:26 am

Re: Simple text hit counter

Post 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.
ryan_46307
Registered User
Posts: 61
Joined: Sat Feb 23, 2008 2:29 am

Re: Simple text hit counter

Post 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?
iftitaj
Registered User
Posts: 638
Joined: Tue Jan 15, 2008 6:21 am
Location: Karachi, Pakistan

Re: Simple text hit counter

Post 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.
Locked

Return to “[3.0.x] MOD Database Releases”