|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
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! 
|
|
|
|
Joined: Mar 2001
Posts: 326
Member
|
Member
Joined: Mar 2001
Posts: 326 |
How does it work with non-UBB PHP Accel based forums? In other words, does it screw up the cache or?
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
Before printing, it replaces ?php .... with the hit numbers. Makes reading cache slower, but really a little bit.
|
|
|
|
Joined: Dec 2000
Posts: 371
Member
|
Member
Joined: Dec 2000
Posts: 371 |
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?
|
|
|
|
Joined: Dec 2000
Posts: 371
Member
|
Member
Joined: Dec 2000
Posts: 371 |
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.
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
== you didn't solve it correctly It should be: [code][/code]
|
|
|
|
Joined: Dec 2000
Posts: 371
Member
|
Member
Joined: Dec 2000
Posts: 371 |
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. (???)
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
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
|
|
|
|
Joined: Dec 2000
Posts: 371
Member
|
Member
Joined: Dec 2000
Posts: 371 |
I've rehacked ubb_forum.cgi and no result.
AIM: nuclion
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
We fixed it by rehacking ultimatebb.php
|
|
|
|
Joined: Dec 2000
Posts: 371
Member
|
Member
Joined: Dec 2000
Posts: 371 |
Yes, great job. You rock LK (a lot) 
|
|
|
|
Joined: Dec 2000
Posts: 371
Member
|
Member
Joined: Dec 2000
Posts: 371 |
Ow, one question remains. How can i remove the hits counting under the category names?
|
|
|
|
Joined: Mar 2002
Posts: 9
Junior Member
|
Junior Member
Joined: Mar 2002
Posts: 9 |
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
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
Mike, do you have ICQ, AIM or MSN?
Variables, unhack the public_forum_summary.pl part of after forumdesc or whatever.
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
Text/MHK files updated, please everybody rehack ubb_lib.cgi.
|
|
|
|
Joined: May 2001
Posts: 58
Member
|
Member
Joined: May 2001
Posts: 58 |
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
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
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.
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
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
|
|
|
|
Joined: Apr 2002
Posts: 11
Junior Member
|
Junior Member
Joined: Apr 2002
Posts: 11 |
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
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
yes, thanks 
|
|
|
|
Joined: Apr 2002
Posts: 11
Junior Member
|
Junior Member
Joined: Apr 2002
Posts: 11 |
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/)
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
Yes, I know that Text/MHK files updated, rehack ultimatebb.php and ubb_lib.cgi
|
|
|
|
Joined: Dec 2001
Posts: 16
Junior Member
|
Junior Member
Joined: Dec 2001
Posts: 16 |
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
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
Rehack ubb_forum_summary.cgi and ubb_lib.cgi.
|
|
|
|
Joined: Mar 2002
Posts: 9
Junior Member
|
Junior Member
Joined: Mar 2002
Posts: 9 |
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.
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
Seems like you hacked ultimatebb.php twice.
|
|
|
|
Joined: Dec 2001
Posts: 16
Junior Member
|
Junior Member
Joined: Dec 2001
Posts: 16 |
[/code]Instead of this: [code] I kept that in and replaced the rest of it. Hope we can figure this out. Thanks.
|
|
|
|
Joined: Dec 2001
Posts: 26
Junior Member
|
Junior Member
Joined: Dec 2001
Posts: 26 |
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
|
|
|
|
Joined: Dec 2001
Posts: 26
Junior Member
|
Junior Member
Joined: Dec 2001
Posts: 26 |
hi was wondering if anyone would help me with this
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
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.
|
|
|
|
Joined: Dec 2001
Posts: 26
Junior Member
|
Junior Member
Joined: Dec 2001
Posts: 26 |
well thanks anyhow.. guess I wil forget this hack then..
|
|
|
|
Joined: May 2001
Posts: 17
Junior Member
|
Junior Member
Joined: May 2001
Posts: 17 |
exercuse me,the "Hit" is counted by every click or by "IP"?
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
|
|
|
|
Joined: May 2001
Posts: 47
Member
|
Member
Joined: May 2001
Posts: 47 |
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.
|
|
|
|
Joined: May 2001
Posts: 17
Junior Member
|
Junior Member
Joined: May 2001
Posts: 17 |
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
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
DG, rehack ubb_get_topic?
ryan, rehack.. hmm.. everything and check permissions.
|
|
|
|
Joined: May 2001
Posts: 17
Junior Member
|
Junior Member
Joined: May 2001
Posts: 17 |
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");
|
|
|
|
Joined: May 2001
Posts: 47
Member
|
Member
Joined: May 2001
Posts: 47 |
quote: Originally posted by LK: DG, rehack ubb_get_topic?
ryan, rehack.. hmm.. everything and check permissions.
no effect 
|
|
|
|
Joined: May 2001
Posts: 17
Junior Member
|
Junior Member
Joined: May 2001
Posts: 17 |
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
ryan, just ignore the notes DG, check permissions.
|
|
|
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: 449
Joined: February 2008
|
|
Forums63
Topics37,575
Posts293,930
Members13,823
|
Most Online6,139 Sep 21st, 2024
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|