Hit Counter
|
Posted
#4710
(In Topic #960)
|
|
|---|---|
|
Fan in training |
Hit CounterI was thinking about hacking one together, but don't see any need to reinvent the wheel. Thanks, James
|
|
Posted
|
|
|
ocStaff (admin) |
|
|
Posted
|
|
|
Fan in training |
N…
Ultimatech Computer Consultancy:Website Design Aspen
The Graphic Design Resource:Graphic Design Forums, Photoshop Training |
|
Posted
|
|
|
Fan in training |
However, what I was looking for more was a public style hit counter. What I envisioned was like block_side_hitbox. Add it to the main page and at each load it would check the IP number against all ip's that had visited in, say, the last 24hours or that day (not sure about the coding and system hit for each). If it is a new ip, log it so it knows it counted it and increment the hit score. If the same ip revisits the same day (or within 24hours) it doesn't get counted again. I like the page views with like the news and stuff, but the numbers are a little misleading. If I click on the view news it adds another count to it, and then the numbers become misleading. I've been reading though the dev guide and it doesn't seem like it would be very hard. The ocP dev team did a great job of including 99.9% of the functions that I would otherwise have to hand code. I'll play around with it for a bit, as soon as I have a stable beta I'll post it here (if that's ok???). Thanks, James
|
|
Posted
|
|
|
ocStaff (admin) |
If I answered something that you think should be in the documentation, please take the initiative and add it to the community documentation. We really need people to help out here and build a well-organised large support resource. |
|
Posted
|
|
|
Fan in training |
I have 2 quick questions though: 1) using ocp_query_value is there a way for that function to return rows that are equal to or less than a specified value? If so can someone give me an example? What I am looking to do is if the counter is configured to only count an IP number if it has not visited in past 24 hours is query a table to return rows where time => the currentime - 24 hours. 2) This is for all the readers of the forums: My current plan for my hit counter is to operate in 3 modes: Hour mode: Only count people that have not visited within the past X hours Daily Mode: Count an IP only once per day Simple Mode: Count every page load, no matter how many times from the same IP number. Using one of these tree modes will give the most flexability for count hits, if you only want IP numbers that are new in the past X hours or that day you can limit it. This gives (IMHO) a more accurate count of visitors. If you do, however, want to count each and every page load, it will do that as well. Now for the question: are there any other features anyone would like me to implement and/or comments about layout on the page? I was planning on a block_side type of lay out that would be very close to the Nuke layout: +—————-+ | Hit Counter | +—————-+ | 256 Hits Since | | November 2004 | | | | 2 Hits Today | +—————-+ OK so the drawing is a little crude, but you get the idea. Thanks, James
|
|
Posted
|
|
|
Fan in training |
I am still looking for sugestions on the Hit Counter though if anyone has any. Also, if anyone would like to beta test for me (I currently only have Windows IIS Machines that I can test on) please PM or E-Mail me. Thanks, James
|
|
Posted
|
|
|
Community saint |
|
|
Posted
|
|
|
Fan in training |
Please see the Hit Box for ocPortal.txt file for more information. Thanks, James ** EDIT: Uploaded new zip file. I had a small upper/lower case issues in the php file. ** EDIT: Uploaded new zip file. Made major changes
|
|
Posted
|
|
|
Honoured member |
im working on the Dutch Trans. for OCP with Flyber How many of you believe in telekinesis? Raise my hand.
|
|
Posted
|
|
|
Community saint |
|
|
Posted
|
|
|
Well-settled |
The Last Outpost - Entertainment news, reviews, previews & interviews. No holds barred - big boys' language in use!
|
|
Posted
|
|
|
Honoured member |
How many of you believe in telekinesis? Raise my hand.
|
|
Posted
|
|
|
Community saint |
|
|
Posted
|
|
|
Honoured member |
How many of you believe in telekinesis? Raise my hand.
|
|
Posted
|
|
|
Fan in training |
|
|
Posted
|
|
|
Well-settled |
-Aaron
-Aaron / PoliticalVoice
"Some mornings it just doesn't seem worth it to gnaw through the leather straps." - Emo Phillips "Really don't mind if you sit this one out. My word's but a whisper, your deafness a SHOUT. I may make you feel, but I can't make you think." - From the album Thick as a Brick by Jethro Tull (written by Ian Anderson) |
|
Posted
|
|
|
Fan in training |
Jim
|
1 guests and 0 members have just viewed this: None
Control functions:








