UBB.Dev
Posted By: LK [6.3.x] [beta] Hit Hack 2.0 - 05/09/2002 10:44 PM
Charles said that Hit Hack 1.07e is a danger to the environment, so I updated it to 2.0 on Jul 5. I really think it's faster now. smile

Download: ZIP File or MultiHack File
Demo: http://www.lkworld.com
Requirements: UBB(.classic)™ 6.3, Mod Wordlets .
Number of Downloads: [img]https://ubbdev.com/lk/num.php?s=hit2.zip,hit2.mhp[/img]
Thanks to: cal for JavaScript help, e@sy for Hit Hack 1.07e, Charles for suggesting me to update and qasic for PHP help. smile

Good luck! smile
Posted By: mark99 Re: [6.3.x] [beta] Hit Hack 2.0 - 05/10/2002 11:19 AM
How does it work with non-UBB PHP Accel based forums? In other words, does it screw up the cache or?
Posted By: LK Re: [6.3.x] [beta] Hit Hack 2.0 - 05/10/2002 11:27 AM
Before printing, it replaces ?php .... with the hit numbers. Makes reading cache slower, but really a little bit.
Posted By: Variables Re: [6.3.x] [beta] Hit Hack 2.0 - 05/10/2002 7:09 PM
In the chat mod. there is a similar line of code for the ubb_forum_summary.cgi:

&ServeFromCache("ubb_files/summary/summary.html");

This line is already comment if you do the chathack, but it put's another:

&ServeFromCache("ubb_files/summary/summary.html");
in it, a few further.

My question is if you must paste the new code over the already commented out line....or a few lines beneath where it isn't?
Posted By: Variables Re: [6.3.x] [beta] Hit Hack 2.0 - 05/10/2002 7:29 PM
Problem in the posting above is solved. But the hits don't count properly. They stay at the last number you visit a thread. If i empty the cache, it counts good...etc.
Posted By: LK Re: [6.3.x] [beta] Hit Hack 2.0 - 05/10/2002 7:37 PM
== you didn't solve it correctly wink

It should be: [code][/code]
Posted By: Variables Re: [6.3.x] [beta] Hit Hack 2.0 - 05/10/2002 7:48 PM
Yep, that was changed already LK. But the hits under the categoryname is updating correct while the hits in the threads stay thesame untill i empty the cache. (???)
Posted By: LK Re: [6.3.x] [beta] Hit Hack 2.0 - 05/10/2002 7:53 PM
So you mean it works in forum summary (category), but doesn't work in forum page? Rehack ubb_forum.cgi. Doesn't work in active topics? Rehack ubb_search.cgi. Still doesn't work? Post your AIM/MSN/ICQ
Posted By: Variables Re: [6.3.x] [beta] Hit Hack 2.0 - 05/10/2002 8:15 PM
I've rehacked ubb_forum.cgi and no result.

AIM: nuclion
Posted By: LK Re: [6.3.x] [beta] Hit Hack 2.0 - 05/10/2002 9:48 PM
We fixed it by rehacking ultimatebb.php
Posted By: Variables Re: [6.3.x] [beta] Hit Hack 2.0 - 05/10/2002 9:55 PM
Yes, great job. You rock LK (a lot) laugh
Posted By: Variables Re: [6.3.x] [beta] Hit Hack 2.0 - 05/12/2002 11:36 PM
Ow, one question remains. How can i remove the hits counting under the category names?
Posted By: mikeg001 Re: [6.3.x] [beta] Hit Hack 2.0 - 05/13/2002 2:56 AM
Ok someone please help iam very new to this hacking stuff but i want this hack but reviewing it i noticed the file ultimatebb.php i dont have it iam using ultimatebb.cgi and the files iam to look for in the ultimatebb.php are not in the ultimatebb.cgi some please help me with this Thanks.

I guess you should know iam using Ultimate Bulletin Board 6.2.0
Posted By: LK Re: [6.3.x] [beta] Hit Hack 2.0 - 05/13/2002 2:26 PM
Mike, do you have ICQ, AIM or MSN?

Variables, unhack the public_forum_summary.pl part of after forumdesc or whatever.
Posted By: LK Re: [6.3.x] [beta] Hit Hack 2.0 - 05/17/2002 11:10 AM
Text/MHK files updated, please everybody rehack ubb_lib.cgi.
Posted By: caroth Re: [6.3.x] [beta] Hit Hack 2.0 - 05/18/2002 2:14 AM
If I hit the same post twice, I get:

Fatal error: Call to undefined function: hits() in C:websiteshack.turboford.orgcache-KEG2NBDTubb_filesforum_pageForum1forum1-1000.cgi on line 418

Forum summary fails as does the main page with this message:

Fatal error: Call to undefined function: hits() in C:websiteshack.turboford.orgcache-KEG2NBDTubb_filessummarysummary.html on line 378

Any ideas?

http://hack.turboford.org
Posted By: LK Re: [6.3.x] [beta] Hit Hack 2.0 - 05/19/2002 5:27 PM
Either you have "hits" instead of "Hits" in public_forum_summary.pl and public_forum_page.pl, or (probably) you didn't hack ultimatebb.php correctly.
Posted By: LK Re: [6.3.x] [beta] Hit Hack 2.0 - 05/19/2002 6:12 PM
Text/MHK files updated AGAIN, please rehack ubb_get_topic.cgi - it cleared cache after every cgi topic read (that's a lot of extra cpu usage tipsy ), fixed
Posted By: Mark Spivey Re: [6.3.x] [beta] Hit Hack 2.0 - 05/19/2002 6:13 PM
Hey - in your ubb_lib.cgi - you are doing

"if ($this_forum[6] eq 'private')" to get the exact path - should that be contains private since they have all those new possibilites in there?

Thanks,
Mark
Posted By: LK Re: [6.3.x] [beta] Hit Hack 2.0 - 05/19/2002 6:14 PM
yes, thanks smile
Posted By: Mark Spivey Re: [6.3.x] [beta] Hit Hack 2.0 - 05/19/2002 6:24 PM
I know you know it - but this is what I put in there - man did the counters shoot up laugh (For the people out there who dont know wink )

if ($this_forum[6] =~ m/private/)
Posted By: LK Re: [6.3.x] [beta] Hit Hack 2.0 - 05/19/2002 6:26 PM
Yes, I know that tipsy

Text/MHK files updated, rehack ultimatebb.php and ubb_lib.cgi
Posted By: Dragon Motorsports Re: [6.3.x] [beta] Hit Hack 2.0 - 06/04/2002 10:57 PM
I installed this with no errors with the Multi Hack file. Also updated the ubb.lib file just in case the MHP file wasnt updated. And it works just fine when I clear the cache. But when you return to the forum summary page the numbers for the amount of hits does not show up. Just the "hits" in my case, "views". Was wondering what might be up with this. Thanks in advance. My board can be viewed here: http://snow.prohosting.com/dms78363/cgi-bin/ultimatebb.cgi
Posted By: LK Re: [6.3.x] [beta] Hit Hack 2.0 - 06/05/2002 12:20 PM
Rehack ubb_forum_summary.cgi and ubb_lib.cgi.
Posted By: Ibane Serna Re: [6.3.x] [beta] Hit Hack 2.0 - 06/05/2002 6:29 PM
I have instaleld Hit Hack over UBB 6.3 and it's working but counts the hits very strange, each hit is counted as two and the summary page reveal son strange number. For example if the total hits on one forum is 30 the summary page shows 56.

The forum is here:

http://www.todopocketpc.com/cgi-bin/foro/ultimatebb.cgi

Thank you.
Posted By: LK Re: [6.3.x] [beta] Hit Hack 2.0 - 06/05/2002 7:44 PM
Seems like you hacked ultimatebb.php twice.
Posted By: Dragon Motorsports Re: [6.3.x] [beta] Hit Hack 2.0 - 06/06/2002 6:43 AM
Code
[/code]Instead of this:  
[code]
I kept that in and replaced the rest of it.

Hope we can figure this out. smile

Thanks.
Posted By: the_wiz Re: [6.3.x] [beta] Hit Hack 2.0 - 06/25/2002 7:13 PM
just wondering how can I get this to work with Jc Templates.. I am really like new and this is how it looks after going into the JC templates and adding this..

Click here to see the screen shot

thanks in advance
Posted By: the_wiz Re: [6.3.x] [beta] Hit Hack 2.0 - 06/27/2002 11:54 AM
hi was wondering if anyone would help me with this
Posted By: LK Re: [6.3.x] [beta] Hit Hack 2.0 - 06/27/2002 12:00 PM
If nobody helped yet, I don't know how much any bump can help. If you use JCTemplates, you have to know how to do it, otherwise it might be very difficult to install hacks.
Posted By: the_wiz Re: [6.3.x] [beta] Hit Hack 2.0 - 06/27/2002 1:17 PM
well thanks anyhow.. guess I wil forget this hack then..
Posted By: ryan11 Re: [6.3.x] [beta] Hit Hack 2.0 - 07/03/2002 2:30 PM
exercuse me,the "Hit" is counted by every click or by "IP"?
Posted By: LK Re: [6.3.x] [beta] Hit Hack 2.0 - 07/03/2002 2:38 PM
Every click.
Posted By: DGMayor Re: [6.3.x] [beta] Hit Hack 2.0 - 07/03/2002 2:45 PM
Quick question for ya LK..

After reading the second post in this thread and your reply:

quote:

How does it work with non-UBB PHP Accel based forums? In other words, does it screw up the cache or?

quote:

Before printing, it replaces ?php .... with the hit numbers. Makes reading cache slower, but really a little bit.

I was under the impression that the hack worked if the accelerator was turned off. I had it on for a while but it seemed to actually be slowing my test board down, so I switched it off. Now the hithack doesn't seem to function properly. I've noticed if I go to the board, it will update the hit the first viewing of the thread, but any subsequent viewings doesn't seem to effect the count.

Any ideas?

http://www.lmalla.com/swg/ubbcgi/ultimatebb.cgi

Link to my test board if you want to check it out for yourself.
Posted By: ryan11 Re: [6.3.x] [beta] Hit Hack 2.0 - 07/03/2002 2:48 PM
thank you for your answering

i have a question, after i installed this hack,
it can not count correctly,it just count the first time i click, and it will not count anymore after ""1 hit""

How to solve this problem?

can you help me???

thanks a lot

i am come from Hong Kong
Posted By: LK Re: [6.3.x] [beta] Hit Hack 2.0 - 07/03/2002 2:59 PM
DG, rehack ubb_get_topic?

ryan, rehack.. hmm.. everything and check permissions.
Posted By: ryan11 Re: [6.3.x] [beta] Hit Hack 2.0 - 07/03/2002 3:11 PM
sorry, LK

i don't know how to do this two steps to hack the
cp_prune.cgi

wt is the meaning of ""find : !prune by Date """ and """search again !prune by user!"""????

Can u help me?

####################
#cp_prune.cgi open #
####################

#########################
#find : !prune by Date #
#########################

# delete topic file
&Unlink("$vars_config{NonCGIPath}/$exact_path/$_.cgi");

###################
#BELOW that ADD:: #
###################

&Unlink("$vars_config{NonCGIPath}/$exact_path/$_.hit");

##############################
#search again !prune by user!#
##############################

#if this is the first post, blow away the thread
&Unlink("$vars_config{NonCGIPath}/$exact_path/$thread.cgi") or die "$! deleting $thread!";

###################
#BELOW that ADD:: #
###################

&Unlink("$vars_config{NonCGIPath}/$exact_path/$thread.hit");
Posted By: DGMayor Re: [6.3.x] [beta] Hit Hack 2.0 - 07/03/2002 3:12 PM
quote:
Originally posted by LK:
DG, rehack ubb_get_topic?

ryan, rehack.. hmm.. everything and check permissions.

no effect confused
Posted By: ryan11 Re: [6.3.x] [beta] Hit Hack 2.0 - 07/03/2002 3:38 PM
it is urgent
Posted By: LK Re: [6.3.x] [beta] Hit Hack 2.0 - 07/03/2002 3:50 PM
ryan, just ignore the notes tipsy

DG, check permissions.
Posted By: ryan11 Re: [6.3.x] [beta] Hit Hack 2.0 - 07/03/2002 3:52 PM
still can't......

wt happen.......

upset....
Posted By: DGMayor Re: [6.3.x] [beta] Hit Hack 2.0 - 07/03/2002 4:18 PM
Windows 2000/IIS server, permissions are fine.
Posted By: ryan11 Re: [6.3.x] [beta] Hit Hack 2.0 - 07/03/2002 4:28 PM
wt is the permission of ultimatebb.php and the ****.pl?

please help me ~~
Posted By: Variables Re: [6.3.x] [beta] Hit Hack 2.0 - 07/03/2002 11:34 PM
I think the code for public_daily_topics is returning blank daily topic pages.
Posted By: ryan11 Re: [6.3.x] [beta] Hit Hack 2.0 - 07/04/2002 3:32 AM
when i use "Guest" to click the topic

It shows

=================================
""Sorry, we have no one registered with that name. Use your browser's back button to try again.

» Please use your browser's back button to return."""

=================================

How To solve this problem??

i want ""Guest"" also can read the topic
Posted By: LK Re: [6.3.x] [beta] Hit Hack 2.0 - 07/04/2002 8:10 AM
ryan, this hack didn't cause it.
Variables, I don't think so tipsy
Posted By: LK Re: [6.3.x] [beta] Hit Hack 2.0 - 07/05/2002 10:43 PM
I updated hit hack to 2.0, please EVERYBODY with cache turned on upgrade. It restarts all the hits. To fix it, I added hitsave.cgi. Please read the "NOTE" part in the readme for instructions.

Rehack everything, upload ubb_hits.cgi to cgi-bin.
Posted By: LK Re: [6.3.x] [beta] Hit Hack 2.0 - 07/05/2002 11:41 PM
Oops, I forgot about a few files, the one who downloaded it - please hack cp_prune, ubb_edit_post and ubb_topic_maint.
Posted By: Variables Re: [6.3.x] [beta] Hit Hack 2.0 - 07/06/2002 12:10 AM
I've seen a lot of errors but the one i saw after re-installing this hack beats them all. The forumpages were errors from top to bottom. I will try to reproduce this tommorow and make a screenshot, it's amazing.
Posted By: LK Re: [6.3.x] [beta] Hit Hack 2.0 - 07/06/2002 12:32 AM
Also please try to download again before, you might've gotten an older version. But no version should've caused that many errors. (btw, I know what you mean - 50 errors)
Posted By: Variables Re: [6.3.x] [beta] Hit Hack 2.0 - 07/06/2002 12:34 AM
I shall install this again on a backup, i guess downgrading en upgrading is more tricky then i thought it would be. wink
Posted By: Luka-Kama Re: [6.3.x] [beta] Hit Hack 2.0 - 07/08/2002 11:41 AM
Humm i need the old code of hit1.07e.. i had format hd and now i can't find it anywere...
Can anyone send it to me?

My e-mail: [email protected]

Thanks
Posted By: Kwik Re: [6.3.x] [beta] Hit Hack 2.0 - 07/12/2002 6:11 PM
I am using Hit Hack 1.7e - got problems with counting and even my "daily topics" does not work for the "more"-function in there. This hack is the only one which modified sub get_daily in ubb_search.cgi. So I think the mistake is in this hack. But anyway, how do I upgrade to 2.0? Should I unhack 1.7e before, then install the new one and call http://www.url.com/cgi-bin/hitsave.cgi?f=FORUM_NUM? Just want to make sure... Thanks
Posted By: ShadowChaser Re: [6.3.x] [beta] Hit Hack 2.0 - 07/12/2002 9:42 PM
If you look at my forum summary , under the "Last Post" heading, the counter appears, but it's not counting. Seems to be working fine everywhere else though.

I used the MultiHack file and this was a clean install (not an upgrade).

Any ideas?
Posted By: Luka-Kama Re: [6.3.x] [beta] Hit Hack 2.0 - 07/12/2002 11:04 PM
Ok, Schäfer sent to me the code of 1.07e version laugh

TANKS! laugh
Posted By: Martin Björnström Re: [6.3.x] [beta] Hit Hack 2.0 - 07/13/2002 12:05 AM
Is it safe for me to install the Hithack 2.0? Seems to be a lot of problems in this thread.
Posted By: ShadowChaser Re: [6.3.x] [beta] Hit Hack 2.0 - 07/13/2002 1:38 AM
I think the hack works great. My "problem" is more of a "cosmetic blemish" than anything. wink
Posted By: LK Re: [6.3.x] [beta] Hit Hack 2.0 - 07/14/2002 7:04 PM
Luka, it's not suggested to install 1.07e at all. It might cause some serious CPU problems. BTW, its URL is www.ubbdev.com/lk/treffer1_07e.txt tipsy
Posted By: ShadowChaser Re: [6.3.x] [beta] Hit Hack 2.0 - 07/14/2002 7:20 PM
quote:
Originally posted by ShadowChaser:
If you look at my forum summary , under the "Last Post" heading, the counter appears, but it's not counting. Seems to be working fine everywhere else though.

I used the MultiHack file and this was a clean install (not an upgrade).

Any ideas?

Help? Please?
Posted By: LK Re: [6.3.x] [beta] Hit Hack 2.0 - 07/14/2002 8:11 PM
Hmm, I have no idea, maybe you used an old version... re-upload ubb_hits.cgi from the zip?
Posted By: e@sy Re: [6.3.x] [beta] Hit Hack 2.0 - 07/14/2002 10:10 PM
@ShadowChaser

If you switch in the CP to a own colum for the Hit's and not after the last message. Is there the problem too ? Test it,please.
Posted By: LK Re: [6.3.x] [beta] Hit Hack 2.0 - 07/14/2002 10:34 PM
I'm sorry e@sy, but I don't have this feature tipsy
Posted By: ShadowChaser Re: [6.3.x] [beta] Hit Hack 2.0 - 07/14/2002 11:14 PM
LK -

Tried uploading ubb_hits.cgi again. Didn't seem to make a difference. I think I'll try comparing the MultiHack file changes to the changes outlined in the Text file and see if maybe something didn't take or whatever.

e@sy - I don't have a CP entry for HitHack. Is this an indication that something may have been missed?

Worst case scenario, I'll just uninstall it and try fresh.

Thanks LK.
Posted By: LK Re: [6.3.x] [beta] Hit Hack 2.0 - 07/15/2002 8:06 AM
Okay, do you have ICQ, AIM, MSN or whatever?
Posted By: Kwik Re: [6.3.x] [beta] Hit Hack 2.0 - 07/16/2002 9:41 PM
I was using hithack 1.07e. Unhacked it and installed 2.0. Now my "Todays topic" works correctly again (yipieh). I converted the hits correctly, on the forum-summary are the hits correct, but when I go into a forum I can only see the colum "hits", but they are all empty. There is an "" inside which does display nothing. When I click on a topic it will be counted correctly. But I cant see how many...

Whats missing here?
Posted By: LK Re: [6.3.x] [beta] Hit Hack 2.0 - 07/16/2002 10:00 PM
A URL is what's missing here tipsy
Posted By: Kwik Re: [6.3.x] [beta] Hit Hack 2.0 - 07/16/2002 10:53 PM
LK helped me about this. Thanks, was my mistake.
Posted By: LK Re: [6.3.x] [beta] Hit Hack 2.0 - 07/16/2002 11:00 PM
Please everybody re-download the .ZIP or .MHP files and rehack ubb_forum_summary.cgi (found a bug thanks to Kwik)
Posted By: Variables Re: [6.3.x] [beta] Hit Hack 2.0 - 07/17/2002 12:19 AM
5 centuries ago, Variables said: "I think the code for public_daily_topics is returning blank daily topic pages" laugh

Anyway the re-hack is no success so far. I'll try again.
Posted By: LK Re: [6.3.x] [beta] Hit Hack 2.0 - 07/17/2002 12:54 AM
Variables, v2.0 doesn't touch these files. Please use clean ubb_search.cgi and public_daily_topics.pl.
Posted By: Variables Re: [6.3.x] [beta] Hit Hack 2.0 - 07/17/2002 4:30 PM
After removing the old hits i installed it again and this time i saw a javascript error. Altough i've removed the old hits...they're still visible??

Strange! I've reinstalled it and the javascript error is gone. I see the old hits though.
Posted By: quest1010 Re: [6.3.x] [beta] Hit Hack 2.0 - 07/21/2002 7:10 AM
question..

i do not have a vars_wordlets_mod.cgi, yet i do have ubb classic 6.3.1 beta 1

the hit counter is working, however, the columns are out of whack.

check it out here .

Please help LK. I tried looking for someone who has the same problem, but none such yet. ALSO, aside from column misalignment, the word 'hits' is no where to be found in any of the areas reporting the hits.

thanks for the help.
Posted By: AllenAyres Re: [6.3.x] [beta] Hit Hack 2.0 - 07/21/2002 7:38 AM
Hey quest smile

Check this forum for the mod wordlets modification. It's used in quite a few mods, so it would be a good idea to install it. smile

Also, 6.3.1 final is coming out in the next few days, it might not be good to spend a lotta time adding mods to the beta smile
Posted By: Luka-Kama Re: [6.3.x] [beta] Hit Hack 2.0 - 07/21/2002 1:41 PM
quote:
Originally posted by LK:
Luka, it's not suggested to install 1.07e at all. It might cause some serious CPU problems. BTW, its URL is www.ubbdev.com/lk/treffer1_07e.txt tipsy

I needed it for UnHack ^^
Posted By: Martin Björnström Re: [6.3.x] [beta] Hit Hack 2.0 - 07/21/2002 2:05 PM
I have installed HitHack on my UBB 6.3.1 forum without any installation problems. And it works - to 98%

The only problem I have is that some (not all!) discussions show "0 hits" on the forum summary - but when I click on the forum it shows that the discussion actually has 20+ hits.

Hmm. How do I fix this?
Posted By: LK Re: [6.3.x] [beta] Hit Hack 2.0 - 07/21/2002 3:15 PM
Martin, start by giving your board's URL tipsy
Posted By: PF Re: [6.3.x] [beta] Hit Hack 2.0 - 07/22/2002 4:18 PM
Just a quick question.

How does it store the hits?
Just wondering whether it'd be relatively easy to convert the hits from the 6.0x version to this one, or start them from scratch. smile

Of course I dont have 6.3.x yet, so can't check as easily smile
Posted By: LK Re: [6.3.x] [beta] Hit Hack 2.0 - 07/22/2002 5:14 PM
If you used hit hack 1.7e, just use the hitsave.cgi file.

It's stored in hits.cgi file of each forum directory, as a hash.
Posted By: PF Re: [6.3.x] [beta] Hit Hack 2.0 - 07/22/2002 5:32 PM
this is the one I used
From a quick look at the hitsave.cgi code, it looks like it will convert them. smile

Will have to give it a shot when we can get 6.3.x
Posted By: LK Re: [6.3.x] [beta] Hit Hack 2.0 - 07/22/2002 5:37 PM
It's exactly the same, just use hitsave.cgi smile
Posted By: Martin Björnström Re: [6.3.x] [beta] Hit Hack 2.0 - 07/26/2002 8:51 AM
My HitHack works now - I think it was a cache problem after installing. But, one question:

does the HitHack generate a lot more Perl .CGI requests? I have a problem with too much traffic on my server (1GHz P3 768MB RAM) and I need to streamline my forum as much as possible.
Posted By: Martin Björnström Re: [6.3.x] [beta] Hit Hack 2.0 - 07/26/2002 6:38 PM
Sometimes the ubbhits.cgi "freezes" the loading of a page for a couple of seconds - why?
Posted By: LK Re: [6.3.x] [beta] Hit Hack 2.0 - 08/02/2002 3:07 PM
1) 1 more .cgi file per forum summary/page visit, but it's not as massive as ultimatebb.cgi.

2) never happened here confused
Posted By: mark99 Re: [6.3.x] [beta] Hit Hack 2.0 - 08/07/2002 1:12 PM
Is this working for v6.3.1?

Also it seems to cause more of this annoying 'Execution' errors that UBB6.3.1 spits out on its v6.3.x series now.
Posted By: LK Re: [6.3.x] [beta] Hit Hack 2.0 - 08/07/2002 1:29 PM
I have NO idea what you're talking about. tipsy
Posted By: mark99 Re: [6.3.x] [beta] Hit Hack 2.0 - 08/07/2002 2:37 PM
If a forum summary page takes too long to load then it now spits out an execution error, I believe the time period can be set somewhere although I haven't found it and UBB seems to default to 30 seconds. UBBDev's been throwing it up a bit today as well.. just a little.. very variable. Obviously Hit-Hack adds to the loading of long summaries = more common problem, not your scripts fault.

That aside and does this Hit Hack support v6.3.1, or don't you have any idea what that is? =)
Posted By: LK Re: [6.3.x] [beta] Hit Hack 2.0 - 08/07/2002 4:15 PM
Obviously not, since 2.0 uses ubb_hits.cgi.

Edit: and yeah, it works on 6.3.1 tipsy
Posted By: LK Re: [6.3.x] [beta] Hit Hack 2.0 - 08/08/2002 10:45 PM
Files updated - important bugfix. Overwrite ubb_hits.cgi.
Posted By: mark99 Re: [6.3.x] [beta] Hit Hack 2.0 - 08/09/2002 11:33 AM
Bug (using updated v2): Double Counting

Firstly after having installed it and timing the before and after loading time of forum and topic summaries I did find that it added about 1 second to the topic loading times. Nothing big, but when a summary loads in 1 second, 2 full seconds is twice as slow =).

Anyway, I've found on my beta board (with only me testing) that if you enter a topic and then click back to the topic summary it counts in multiples of two and now 1? Thus 1 visit = 2 and 2 visits to the topic = 4.

Try for yourself:
http://www.ispreview.co.uk/ubb/ultimatebb.php?ubb=forum;f=1

Also, doesn't this affect cache since its more dynamic and therfore must update more often? I removed it from the forum summary pages since there was no need, so if you note that then it's not a bug, just my own preference.
Posted By: LK Re: [6.3.x] [beta] Hit Hack 2.0 - 08/09/2002 2:10 PM
1: double counting - if you access PHP page but the cache is cleared, it counts once for PHP and once for CGI - twice. I guess I'll fix that by writing the last number (or IP) to view the topic soon.

2: cache/time - it uses a different file (ubb_hits.cgi), so it can't slow it down unless you count the time until the other file is loaded, which is from