![]() |
Show all hits on Forumhome
First,
I am Geman. My English is not very well and this is my first little hack. If there a other kind of this hack, sorry. What's it do? This hack shows the sum of all hits in the Forum Statistics. Files to edit. index.php Template: FORUMHOME Add one new Phrase PcFreak |
great hack :)
|
Just a question what you mean by HIt you mean Thread View count? I'm just a little confused.
|
is it possible to insert comma's in the number?
2,134,114 instead of 2134114 |
Quote:
One "View" is one "Hit". (In Geman we call it Hit) @hitmanuk2k Sorry, i?m shure that is possible. But I don?t know how. PcFreak |
Use this code to get commas in high numbers:
PHP Code:
|
Quote:
|
Quote:
PHP Code:
|
clicks install thx for the hack, and thx for the mod Boofo
|
this is awesome! thanks!
|
Quote:
|
I used the Vb3 "comma code", but no commas? Any help Boofo???
Thanks... |
You need to add that code right under this line:
PHP Code:
|
Quote:
|
Didn't work for me either boofo...made it worse. I think I'll just stick with no commas...
Thanks for trying.... |
I've been all wrong on this guys. Dohh!!! Here is the code you need for the commas. ;)
PHP Code:
|
As a replacement or an addition???
|
Quote:
|
Quote:
|
Doesn't seem to work for me :/
|
Thanks Boofo :) and addon makerer thingy guy (Y)
Installed :) |
I'm getting an sql error.
Database error in vBulletin 3.0.3: Invalid SQL: SELECT COUNT(*) , SUM(views) AS hits FROM 600rr_ thread mysql error: Table database.600rr_' doesn't exist mysql error number: 1146 Date: Thursday 22nd of July 2004 12:52:54 PM Script: http://www.miami600rr.com/forums/? |
Quote:
I get this on my page: Total Hits: 250726 = vb_number_format(250726); Otherwise this works like a charm - thanks! |
Nevermind!! I was adding in the template, not my index.php
Thanks Boofo - works! |
Qusetion - is this hits or visits? Daily? I have that many hits a day so I'm curious.
Thanks! (jeez I'm about to flood this thread) |
Quote:
Code:
// ### Anzeige aller Hits START ### |
how the phrase is added.
_______________ Add a new phrase _______________ totalhits = Totalhits |
lolz i got it done....i almost forgotten it before.thanks for the hack its great.
|
Anyone know how to fix this to work in 3.0.3?
|
Quote:
|
Quote:
|
I am getting the same thing.
|
well, i got the hit counts to show up, but apparently, it won't update. it just stays frozen as 58,199 hits. i tried refreshing my page, but nope, still 58,199 -_-
|
From reading this thread and without looking at the code, I surmise that this totals up all the threadviews, not site hits.
As such, if you've set threadviews in your Admin CP to NOT update in real-time to conserve server load, this number will not update until your threadviews update. This is just a guess anyway. :) |
From looking at the query it is indeed thread views not site hits, as Erwin posted.
|
So is there any way to have the hits based on site hits since midnight on a daily basis???
No that would make this hake awsum :) |
Quote:
This kind of mod needs special counter (more querys) and a new field in the thread tabel. May a crownjob to deleted the old entries. That would be my solution. PcFreak |
I have 3.05 and it does give a db error. cannot find vb3_ jabbedabi
Allthough it seems a great hack I pass, I got my index page down 3 times, which is not good |
Quote:
Sorry for my noob question.. :rolleyes: EDIT: I found it.. sorry guys :o |
Worked great for me, although the number seems a little high.. nearly 2,000,000.
|
All times are GMT. The time now is 08:50 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|