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.
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.
Good luck!
How does it work with non-UBB PHP Accel based forums? In other words, does it screw up the cache or?
Before printing, it replaces ?php .... with the hit numbers. Makes reading cache slower, but really a little bit.
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?
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.
== you didn't solve it correctly
It should be: [code][/code]
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. (???)
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
I've rehacked ubb_forum.cgi and no result.
AIM: nuclion
We fixed it by rehacking ultimatebb.php
Yes, great job. You rock LK (a lot)
Ow, one question remains. How can i remove the hits counting under the category names?
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
Mike, do you have ICQ, AIM or MSN?
Variables, unhack the public_forum_summary.pl part of after forumdesc or whatever.
Text/MHK files updated, please everybody rehack ubb_lib.cgi.
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
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.
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
), fixed
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
yes, thanks
I know you know it - but this is what I put in there - man did the counters shoot up
(For the people out there who dont know
)
if ($this_forum[6] =~ m/private/)
Yes, I know that
Text/MHK files updated, rehack ultimatebb.php and ubb_lib.cgi
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
Rehack ubb_forum_summary.cgi and ubb_lib.cgi.
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.
Seems like you hacked ultimatebb.php twice.
[/code]Instead of this:
[code]
I kept that in and replaced the rest of it.
Hope we can figure this out.
Thanks.
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
hi was wondering if anyone would help me with this
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.
well thanks anyhow.. guess I wil forget this hack then..
exercuse me,the "Hit" is counted by every click or by "IP"?
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.
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
DG, rehack ubb_get_topic?
ryan, rehack.. hmm.. everything and check permissions.
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");
quote:
Originally posted by LK:
DG, rehack ubb_get_topic?
ryan, rehack.. hmm.. everything and check permissions.
no effect
ryan, just ignore the notes
DG, check permissions.
still can't......
wt happen.......
upset....
Windows 2000/IIS server, permissions are fine.
wt is the permission of ultimatebb.php and the ****.pl?
please help me ~~
I think the code for public_daily_topics is returning blank daily topic pages.
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
ryan, this hack didn't cause it.
Variables, I don't think so
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.
Oops, I forgot about a few files, the one who downloaded it - please hack cp_prune, ubb_edit_post and ubb_topic_maint.
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.
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)
I shall install this again on a backup, i guess downgrading en upgrading is more tricky then i thought it would be.
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
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
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?
Ok, Schäfer sent to me the code of 1.07e version
TANKS!
Is it safe for me to install the Hithack 2.0? Seems to be a lot of problems in this thread.
I think the hack works great. My "problem" is more of a "cosmetic blemish" than anything.
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
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?
Hmm, I have no idea, maybe you used an old version... re-upload ubb_hits.cgi from the zip?
@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.
I'm sorry e@sy, but I don't have this feature
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.
Okay, do you have ICQ, AIM, MSN or whatever?
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?
A URL is what's missing here
LK helped me about this. Thanks, was my mistake.
Please everybody re-download the .ZIP or .MHP files and rehack ubb_forum_summary.cgi (found a bug thanks to Kwik)
5 centuries ago, Variables said: "I think the code for public_daily_topics is returning blank daily topic pages"
Anyway the re-hack is no success so far. I'll try again.
Variables, v2.0 doesn't touch these files. Please use clean ubb_search.cgi and public_daily_topics.pl.
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.
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.
Hey quest
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.
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
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
I needed it for UnHack ^^
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?
Martin, start by giving your board's URL
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.
Of course I dont have 6.3.x yet, so can't check as easily
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.
this is the one I used From a quick look at the hitsave.cgi code, it looks like it will convert them.
Will have to give it a shot when we can get 6.3.x
It's exactly the same, just use hitsave.cgi
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.
Sometimes the ubbhits.cgi "freezes" the loading of a page for a couple of seconds - why?
1) 1 more .cgi file per forum summary/page visit, but it's not as massive as ultimatebb.cgi.
2) never happened here
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.
I have NO idea what you're talking about.
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? =)
Obviously not, since 2.0 uses ubb_hits.cgi.
Edit: and yeah, it works on 6.3.1
Files updated - important bugfix. Overwrite ubb_hits.cgi.
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.
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