|
Joined: May 2001
Posts: 1,042 Likes: 7
Moderator
|
Moderator
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.
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
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
|
|
|
|
Joined: May 2001
Posts: 1,042 Likes: 7
Moderator
|
Moderator
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.
|
|
|
|
Joined: May 2001
Posts: 6,708
Member
|
Member
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
Admin / Code Breaker
|
Admin / Code Breaker
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
|
|
|
|
Joined: May 2001
Posts: 1,042 Likes: 7
Moderator
|
Moderator
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...
|
|
|
|
Joined: Mar 2001
Posts: 326
Member
|
Member
Joined: Mar 2001
Posts: 326 |
Does this work then? Demo?
|
|
|
|
Joined: May 2001
Posts: 6,708
Member
|
Member
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
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
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
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
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
Joined: May 2001
Posts: 1,042 Likes: 7 |
Zip file updated. Hopefully it works this time
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
I don't see any difference *cough* check pms
|
|
|
|
Joined: May 2001
Posts: 1,042 Likes: 7
Moderator
|
Moderator
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
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
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
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
TorN, I don't think yahoo.com has a UBB, please change your homepage
|
|
|
|
Joined: May 2001
Posts: 6,708
Member
|
Member
Joined: May 2001
Posts: 6,708 |
Maybe his actual browser homepage is yahoo.com. BTW - Is anyone willing to fix this hack up?
|
|
|
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.
|
|
Posts: 1,157
Joined: July 2001
|
|
Forums63
Topics37,573
Posts293,925
Members13,849
|
Most Online5,166 Sep 15th, 2019
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|