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.4,
Mod Wordlets .
Number of Downloads: [img]https://ubbdev.com/lk/num.php?s=hit64.zip,hit64.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!
What did he say?
J/k sorta. I know you are well respected and all. But can we get a plain english interpretation too?
You mean Charles Capps? He said Hit Hack 1.07e might cause some preformance problems with the UBB, because it requires modification of servefromcache sub, it has a different file for each hit (just think about it, another 30 files are opened for each forum visit).....
thanks LK
I needed this to fix the lazy port I did a while back
Great work, LK! No problems at all with the install.
Works well with IE but there is a problem with Opera 6.04. In ths version the hits will not be shown. I guess its a Java problem.
The hack itself is great work. :top:
This worked perfectly for me on the first forum page. However, in public_forum_summary, there is no number under the hits column. I viewed the source of the page, and it said the following:
<td valign="top" bgcolor="#dedfdf" align="center">
<font size="2" face="Verdana, Helvetica, sans-serif">
<span id="hit000001"></span>
</font<
I assume that the relevant code that generates this is:
$ForumDesc<span id="hitf$x"></span>
Unfortunately, this does not translate to a number of hits on my 6.4 board.
I wanted to check your site but then I figured that you hid its URL
:rolleyes:
It's a test forum at
http://www.roxydollboard.com/cgi-bin/ultimatebb.cgi Any help would be appreciated!
quote:
Re: this is a great board (Ellen)
January 26, 2003 06:28 PM (75 hits)
I think "(75 hits)" is the number of hits
No, that's the page that works. If you go to
http://www.roxydollboard.com/cgi-bin/ultimatebb.cgi?ubb=forum;f=1
you will see that there is no number in the hits column
Re-"modify" ubb_forum.cgi...
LK, you ever try to see the Hits with Opera V6.x ? The hack still works and display hits in a forum with IE6.x well but with Opera the hit field is still empty.
Example: http://www.dragonclan-forum.de/cgi-bin/ultimatebb.cgi?ubb=forum;f=23;DaysPrune=45
Thanks to your help, LK, I found the error of my ways. Much appreciated, and thanks for the great modification!
This hack aint working for me. I get a syntax error... could anyone please tell me what I did wrong
http://apoforce.hypermart.net/cgi-bin/ultimatebb.cgi
It's because Hypermart adds advertizements
use a real host if you want to use this hack
thanks for your quick reply! Hope i have enough money soon to buy one
MySiteSpacePro.Com host for $36.00 annually & accept PayPal.
Hi,
does this hack works with UBB-Classic 6.5.0? At my board, at the forumspage i saw no hits, only the column....
What can I do?
thanks
d-talk
Is there nobody with an idea, why it does not work with 6.5?
thanks
d-talk
it works on my 6.5 (see sig) - I can post the mhp later tonight if you need.
Oh yeahhhhhhh, pleas post it!!! Thank you very much!!!!
Do you have a zip-file for mee?
d-talk
i (still) got a strange error message if I enable the php accelerator on my own root-server:
quote:
Accelerator Error:
I can't seem to open the existing hits file (
/home/www/web1/html/ubb/Forum1/hits.cgi
)
Check that its parent directory exists. Perhaps the path is incorrect?
any ideas ?
I think it's a permission problem of ultimatebb.php
yeah I checked the permissions from the hit files and set them to 777 put always they are set back to sth. weird that the accelerator cant access them
so now I cant use the acc.
just forget about it, i disbled the safe mode on the server and now it works
I've same problem like "Ellen".
I see the hits in the forum sumary:
http://www.rztpower.de/ubb/ultimatebb.php but
not on next page:
http://www.rztpower.de/ubb/ultimatebb.php?ubb=forum;f=1
I've checked all files 2 times. Don't find the problem.
Can anyone help me, please?
Hanjo
=========================
|
try to rehack ubb_forum.cgi... the part of:[code][/code]make sure you add ABOVE and not below...
hmmm... that maybe part of one reason why the hits didn't work in our /db files
Hi,
it looks like:
[code][/code]UBB 6.5
This isn't the problem.
More ideas?
Hanjo
Thank you!
[code][/code]is correct and works fine ;-)
German UBB 6.5
Hanjo
danke
I'll update the original files tomorrow
quote:
Originally posted by AllenAyres:
danke I'll update the original files tomorrow *still waiting* :-)
chris
http://technoforum.de
does anyone else do have problems importing this hack thru multihack2 in a 6.5 system? i do have :-/, an error occurs...
chris
http://technoforum.de
quote:
Originally posted by technoforum.de:
*bump*
*looks at your board* *sees the hit hack working*
what was the error? I didn't get an error importing it, I had one error installing it cause of all the hacks I have installed already, but I fixed that
2weirdal,
actually you saw my board running on 6.01 - so, i wanted to upgrade today and started the multihack2.0-utility, imported the multihackfile hit64.mhp, hitted the 'install'-button and following error occurs:
ubb_forum.cgi - Add Before - Applying Mod - ERROR
occured.
all other import-lines do apprear with an 'mod applied successfully'-term, just at line 11 of the installation log the error is mentioned. :-/
quote:
Originally posted by technoforum.de:
2weirdal,
actually you saw my board running on 6.01 - so, i wanted to upgrade today and started the multihack2.0-utility, imported the multihackfile hit64.mhp, hitted the 'install'-button and following error occurs:
ubb_forum.cgi - Add Before - Applying Mod - ERROR
occured.
all other import-lines do apprear with an 'mod applied successfully'-term, just at line 11 of the installation log the error is mentioned. :-/
do this...
[code][/code]
*blush* - thanks! :-)
chris
http://technoforum.de
mhn, doesn't work as well the the im-hack: i did upload the additional files from this hack as well as the im-hack using ssh and we figured eben out with all files from the ubb6.5-package that carriagereturn_tags were included, so, maybe both of these hacks do not work because of the same error? both hacks do use additonal files (yeah, i set 'em to 755) and maybe they do not work because of the same problem including the carriagereturn-tags i cannot even see using ultraEdit? weird... any ideas concerning these both hacks?
chris
p.s. i did hack the engine manually using the .txt.manual, figured out too many errors using multihack2
hmmm... I'll post a 6.5 mhk tonight if LK isn't able to get to it
would be very nice, to i just would use your 6.5mhk to check if i patched all things in a correct way... :-)
Has anyone monitored the cpu usage with this hack? UBB foolishly says they will never add this feature due to server issues. As someone who generates $ based on website hits I can tell you that this feature is extremely important. A topic might be replied to only 1 time but if it gets 3000 views it shows that the website is generating readers.
Im going to try this on version 6.5 on a cobalt server
what if I do not have ultimate.php?
Has anybody done the hack for ultimate.cgi?
Thanks
lol, it'll work on both. most use cgi anyway
Hello! (sorry for my english)
You modified file ultimatebb.php
What me do if I do not use this file? My forum used cgi-bin/ultimatebb.cgi only
and where I can download Multihack program?
tnx!
welcome to our little community paul
if you don't use ultimatebb.php, ignore the steps which this hack asks you to modify...
multihack url -
http://nomadsoft.net/multihack.nomadsoft.net/download.shtml
Thnx for help me.
This link not working.
http://www.nomadsoft.net/cgi-bin/dlcount/clickmanager.cgi?dl=12 i see: Invalid ID or URL
https://www.ubbdev.com/mhp/mhack2.msi LK, I'd think you'd know that didn't work by now
sorry
This program only for Windows?
Hmm I just installed the mod. I seee the hit colum but with no numbers.
What did i do wrong??
quote:
Originally posted by schumster:
Hmm I just installed the mod. I seee the hit colum but with no numbers.
What did i do wrong??
I see them fine. There is a known bug with Opera, where you can't see them
This may sound dumb, but I don't have:
vars_wordlets_mods.cgi
It seems like it was something that was in use with 6.1 / 6.3. I'm working on 6.5 at the moment. So far the board still seems to work after I've hand edited in the mods, I'm using a bsd server so multihack is out of the question.
Anyone know what I'm missing here?
Another question, there's a bit a discrepancy with one of the mod's.
$ grep -in "ThisHTML .= " ubb_forum.cgi
399: $ThisHTML .= &page_top; # some HTML
400: $ThisHTML .= &topic_table_header; # table top HTML
539: $ThisHTML .= &topic_row;
543: $ThisHTML .= &page_bottom($had_stickies, $had_polls, $had_hots, $had_moves, $had_locks);
544: $ThisHTML .= $Footer;
Whereas, according to hit2.txt:
Find: (~500)
=====
}
$ThisHTML .= &page_bottom; # some HTML
Any suggestion here?
Thanks,
Brian
https://ubbdev.com/ubbcgi/ultimatebb.cgi?ubb=get_topic;f=33;t=000018;p=3
look at hanjo's post
Got it.
Got the 'hits' column right now, no other labeling though.. no digits, but it seems to be registering hits within the Forum directory. I've already cleaned up one error but I'm still digging through it.
Do I have to do anything else after I modify everything, ie rebuild anything etc?
Thanks,
Brian
Hi Guys!
I installed this hack but once I had I realised it gives you the number of visits to a forum as well as the number of visits to a topic.
I don't want this.
I just want to know how many times a topic has been visited.
I tried skipping out the part below but it also removed the number of visits to the last post column on the forum summary.
quote:
********************************
* Open public_forum_summary.pl *
********************************
Find: (~125)
=====
$ForumDesc
Replace with:
=============
$ForumDesc
How can I remove the number of visits to the forum from the forum summary, or even better how can I stop it counting the number of visits to a forum at all?
Thanks in advance.
*Bump*
Can anyone help me with this?
Works fine with me [6.5]
But there were some problem in the summary page due to other language encoding or might be from the news fader hack, I'm not sure.
Since I need it only for forum pages, I unhacked public_forum_summary. Now it is working great for me. Thanks.
Anyone try this with 6.6.1 yet?
will tonight. I had it running on 6.6 Beta Release if I remember correctly
I tried it this morning, no luck, will try to work with it again this weekend.
Hopefully I can work on this again tonight to try to get it working with 6.6, haven't had time since last week.
Here's the updated install instructions for 6.6:
https://www.ubbdev.com/ubb/upload/00000494/hit66.txt not much has changed, just a few bits and pieces here and there...
(RequireVars) NonCGIPath/Forum1/hits.cgi: Can't locate NonCGIPath/Forum1/hits.cgi in @INC (@INC contains: ./Modules . /usr/lib/perl5/5.8.0/i586-linux-thread-multi /usr/lib/perl5/5.8.0 /usr/lib/perl5/site_perl/5.8.0/i586-linux-thread-multi /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl) at CGIPath/ubb_lib.cgi line 836.
Hi Allen i get this error after hacking...
Did you upload the ubb_hits.cgi file from the original zip?
Yes, I upload the ubb_hits.cgi
your permissions on your forum folders are 777?
and is the php accelerator turned on?
Yes it is,
when I go to CP I get at many times now:
RequireCode) /home/www/web19/html/cgi-bin/cp2_content.cgi: Global symbol "%hits" requires explicit package name at /home/www/web19/html/cgi-bin/cp2_content.cgi line 1081. Global symbol "%hits" requires explicit package name at /home/www/web19/html/cgi-bin/cp2_content.cgi line 1082. Compilation failed in require at /home/www/web19/html/cgi-bin/ubb_lib.cgi line 815. Stack trace: (RequireCode) /home/www/web19/html/cgi-bin/cp2_content.cgi: Global symbol "%hits" requires explicit package name at /home/www/web19/html/cgi-bin/cp2_content.cgi line 1081. Global symbol "%hits" requires explicit package name at /home/www/web19/html/cgi-bin/cp2_content.cgi line 1082. Compilation failed in require at /home/www/web19/html/cgi-bin/ubb_lib.cgi line 815. main::LoadCPTemplate() called at /home/www/web19/html/ubb/Templates/cp2_styles.pl line 11 main::cp2_template_styles_init called at /home/www/web19/html/cgi-bin/cp2_lib.cgi line 118 main::LoadCPTemplate() called at /home/www/web19/html/cgi-bin/cp2_lib.cgi line 154 main::CanAutoHandle called at cp.cgi line 476
in cp2_content.cgi:
find:
use strict;
#use warnings;
add below:
use vars qw(
%hits
);
that should fix the above error.
(RequireVars) NonCGIPath/Forum1/hits.cgi: Can't locate NonCGIPath/Forum1/hits.cgi in @INC (@INC contains: ./Modules . /usr/lib/perl5/5.8.0/i586-linux-thread-multi /usr/lib/perl5/5.8.0 /usr/lib/perl5/site_perl/5.8.0/i586-linux-thread-multi /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl) at CGIPath/ubb_lib.cgi line 836.
same error.... :-( but cp works now...
until I can figure out the problem, the easiest way to fix this is upload a blank text file called hits.cgi into each forum and set its permissions to 777.
*shrugs* works for me, but I only changed one of your steps which I noticed wasn't updated.
v I used that code v
quote:
Originally posted by hanjo:
Thank you!
$ThisHTML .= &topic_row;
$topicnums .= "$one|";
}
$ThisHTML .= &page_bottom($had_stickies, $had_polls, $had_hots, $had_moves, $had_locks, $topicnums);
$ThisHTML .= $Footer;
is correct and works fine ;-)
German UBB 6.5
Hanjo
Hi Allen,
blank hits.cgi did not work too...
RequireVars) NonCGIPath/Forum1/hits.cgi: NonCGIPath/Forum1/hits.cgi did not return a true value at CGIPath/ubb_lib.cgi line 836.
this may be a stretch... but you did upload ubb_hits.cgi, right?
Yes, I uploaded it to the cgi-bin folder
Can somebody have a look at my ftp files? I have rehacked it several times...
quote:
Originally posted by d-talk:
Can somebody have a look at my ftp files? I have rehacked it several times... it seems you are missing the hits files just add them manually
Hi charles, a blank hit.cgi does also not work... can you have a look at my files... / sorry I know you have no time, but a forum wihtout hits is not possible for me...
create a hit.cgi with the following in it...
%hits = (
q!forum! => q!>>THE NUMBER OF THE FORUM<<!,
);
1;
where if you were making this Forum1/hits.cgi, the number of the forum is 1.
try that
after FTPing to d-talks test board, I fixed his problem. for anyone else who experiences the File doesn't exist error, do this...
In ubb_forum.cgi
FIND:
&RequireVars("$vars_config{NonCGIPath}/$exact_path/hits.cgi");
REPLACE WITH:
if (&FileExists("$vars_config{NonCGIPath}/$exact_path/hits.cgi")) {
&RequireVars("$vars_config{NonCGIPath}/$exact_path/hits.cgi");
}
For those of whom don't get an error, but the numbers still won't show...
$ThisHTML .= &topic_row;
$topicnums .= "$one|";
}
$ThisHTML .= &page_bottom($had_stickies, $had_polls, $had_hots, $had_moves, $had_locks, $topicnums);
# $ThisHTML .= $Footer;
that's what lines ~ 548 - ~552 should look like it was an error in the install txt
Thanks Weird Al, I got it working with your code.
Hi Lk,
can you post the modifications for 6.7, you haa changed my files at my testboard...
The only changes were in ultimatebb.php, where you hacked incorrectly, and ubb_hits.cgi...
Thank you LK!!!
What changes were needed for ubb_hits.cgi?
I'm not seeing any errors, but I'm not seeing the hits either
http://www.praisecafe.org/thelink/cgi/ultimatebb.cgi?ubb=forum;f=3
allen, you might need to add the use vars (40 lines of variables); line like in the shoutbox
that's fixed it.
Thanks.
When I turn on the php accelerator I get a runtime error... something with the javascript in ubb_hits.cgi is buggin - are there updated instructions maybe?
hmmmm.. ok, seems to be worked out now
Maybe I should post the new files. I'll get it if LK doesn't have time in the next couple of days
quote:
Software error:
Undefined subroutine &main::InitImportantStuff called at ubb_hits.cgi line 66.
For help, please send mail to the webmaster (
[email protected]), giving this error message
and the time and date of the error.
Allen, that's the error being returned, can you make heads or tails of it?
where are you seeing that?
I got it, but it cleared up once I moved the initimportantstuff line below the require ubb_lib.cgi line
Mozilla Firebird gives the most amazing js errors, none of that "something went wrong" errors IE gives you
yeah, this ms script debugger is pretty good too
Having the same prob that Ellen and Hanjo had. Using 6.5 and hit column remains empty. I can't seem to isolate what they did to get it to work. I am using IE and added the $topicnums .= "$one|"; above and also added , $topicnums at the end of the HTML string.
Any help would be appreciated.
Which version of this mod are you using?
The one from the first page of this post. hit64.zip version 2.0
Allen, Ian
I have the same problem, it doesn't show any hits
http://romanianational.com/ubb/ultimatebb.php/ubb/forum/f/7 I hacked everything like 4 times, same thing.
in in ubb_forum I have:
$ThisHTML .= &topic_row;
}
$ThisHTML .= &page_bottom; # some HTML
which I modified to:
$ThisHTML .= &topic_row;
$topicnums .= "$one|";
}
$ThisHTML .= &page_bottom($topicnums); # some HTML
and still doesnt work. also the color of the background of the last colums is ..something wrong with it. I looked at PraiseCafee and LKworld to see the difference, they look cool.
Can you tell me what is wrong?
Thank you,
Felix
did you CHMOD ubb_hits.cgi to 755?
Yes I did. Actually I even tried 777, same thing
Something strange....today, the hits showed, without doing absolutelly anything! ?? last night didn't work, this morning didn't work. All of a sudden today, the page took longer to load and when it did it showed the Hits. crazy...
Ian, do you know what should I do about that last column? the background color I mean.
Thank you,
Felix
see if you have something like
my $cols = ($vars_display{LastPostColOpt} eq "OFF" ? 5 : 6);
in your ubb_forum.cgi. if so, increase each number by 1
It was actually in in "public_pntf_summary.pl"
quote:
I chaneged to number 6 to accomodate the new column. Love that stuff!
Thanks Ian, Felix
Sorry Ian, I must have been editing the post while you were reading it. I appreciate the you promptitude, you are always on the ball Felix
just in case somebody else needs it. you have to add " ($topicnums);" to the original script: $ThisHTML .= &topic_row; $topicnums .= "$one|"; } $ThisHTML .= &page_bottom; # some HTML so it will look like this: $ThisHTML .= &topic_row; $topicnums .= "$one|";
} $ThisHTML .= &page_bottom($topicnums); # some HTML Felix
When I turn on the Accelerator I get this error:
"Accelerator Error: I can't seem to open the existing hits file (
/home/cash/public_html/ubb/ubb/Forum12/hits.cgi ) Check that its parent directory exists. Perhaps the path is incorrect?"
Path is correct, the hits.cgi are set at 777 and ultimatebb.php permission is at 646. Any ideas? this error is also mentioned on page 2 of this thread, but I could not see a solution.
Cash, first of all be sure that the path is exact, with "/ubb/ubb". If it is correct, try to change ultimatebb.php's permission to 777, 755, 644, etc.
Yep, looks like it worked. I changed ultimate.php s permission to 644 ( don't know why it was on 646) and that solved it
|