Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: May 2001
Posts: 1,042
Likes: 7
Moderator
Moderator
Offline
Joined: May 2001
Posts: 1,042
Likes: 7
Name: Hit Counter

Description: Counters the number of total hits to a topic, although it's in there it will also count the number of dynamic hits. The difference between other counters is that the counter processor is in it's own file instead of being imbedded into the ubb which is a cache killer.

Download: Use Other Counter

note: I'm still waiting on my server setup, so this is untested. Install at your own risk. Please report any bugs. Thanks.

Sponsored Links
Joined: Mar 2001
Posts: 7,394
LK Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
I'm pretty sure it doesn't work, but here's my suggestion:
1. make counter.cgi print out Content-type before anything else.
2. use , because you can't use exec in perl files.

Good job tho smile

Joined: May 2001
Posts: 1,042
Likes: 7
Moderator
Moderator
Offline
Joined: May 2001
Posts: 1,042
Likes: 7
Ack, forgot about that. I updated the zip with those two fixes.

I don't really expect it to work, it's just something i thought of within the hour out. Worth a shot though. laugh

Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
Just unless it doesn't cause any long-time board trouble I can test it later.

Joined: Mar 2001
Posts: 7,394
LK Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
One more suggestion: use the full path before counter.cgi in forum_page - $vars_config{CGIURL}/counter.cgi, in case that ultimatebb.php is used or there is base href

Sponsored Links
Joined: May 2001
Posts: 1,042
Likes: 7
Moderator
Moderator
Offline
Joined: May 2001
Posts: 1,042
Likes: 7
This hack has no way of damaging the board in any way.

I went through the cgi file and straightened up a few things, everything looks like it should work....hopefully... shocked

Joined: Mar 2001
Posts: 326
Member
Member
Offline
Joined: Mar 2001
Posts: 326
Does this work then? Demo?

Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
It's untested, thats why you need to TEST it to see if it works.

Joined: Dec 2000
Posts: 371
Member
Member
Offline
Joined: Dec 2000
Posts: 371
It doesn't work on 6.3.1.0 The forumpage opens very very slow and it counts no hits at all.

Joined: Feb 2002
Posts: 76
Member
Member
Offline
Joined: Feb 2002
Posts: 76
Well on 6.3.0 I tried it and it works fine except for the fact it doesnt count hits on private lounges... even ones i have access to

Sponsored Links
Joined: Mar 2001
Posts: 7,394
LK Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
Big bug: it only adds more hits when the topic is LISTED in forum page, not viewed.

Fix: seperate the ++ code and the print one, then use ++ in get_topic and print in forum_page.

Joined: May 2001
Posts: 1,042
Likes: 7
Moderator
Moderator
Offline
Joined: May 2001
Posts: 1,042
Likes: 7
Zip file updated.

Hopefully it works this time wink

Joined: Mar 2001
Posts: 7,394
LK Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
I don't see any difference confused

*cough* check pms wink

Joined: May 2001
Posts: 1,042
Likes: 7
Moderator
Moderator
Offline
Joined: May 2001
Posts: 1,042
Likes: 7
I changed the filehandling part to say if $in{hits} eq 'yes' then update hits else just read from it.

EDIT: Just updated again with some fixes that i forgot. Now it should work.

Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
I just tried it, didn't work. It also made my topic listing/topic pages load alot slower. Something is wrong.

Joined: Jun 2001
Posts: 56
Member
Member
Offline
Joined: Jun 2001
Posts: 56
quote:
Originally posted by Lord Dexter:
I just tried it, didn't work. It also made my topic listing/topic pages load alot slower. Something is wrong.

Same here...Also, the hits column displays nothing.. Same thing with LK's version..I'm batting zero with these Hit hacks...I have 8 other hacks successfully installed and one of them may be interfering with the 'hits' field which shows nothing but an empty field for all threads; no counts at all..

Last reply
Newsfader
Mods wordlets
Thinking clock
Recent Visitors status effect
CP mod addon
Memberlist
Calendar
Ely_M's upload
10 mod hack

Joined: Mar 2001
Posts: 7,394
LK Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
TorN, I don't think yahoo.com has a UBB, please change your homepage wink

Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
Maybe his actual browser homepage is yahoo.com. tipsy

BTW - Is anyone willing to fix this hack up?


Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
isaac
isaac
California
Posts: 1,157
Joined: July 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20240430)