UBB.Dev
Hi again!
- This new beta is more ubb-compatible , it supports moving/deleting/pruning threads. Using cookies, I've designed the hack to count one thread view per browser session. Which means that we need to update the counter file only once!

- To download it: Click here

Best Regards
sweet, ill look into using this
does the [modified] mean the codes been modified since v1.0? And the ones with nothing don't need to be touched?

Thanks
Hey is possible put the view also in forum summary page between posts and last posts?
Very nice work JB007, I am glad you got all the cookie issues solved. smile
few things...
its installed on ubb6.02.
when i just view the topic. it gets 2 views.
after i view on topic on a single browser session it wont add any views to any other topics i view, un till i restart my browser.
??
Yeah, that's happening because there was an error in the instructions file in the first few minutes, the error was in ubb_get_topic.cgi. Re Dowanload hitscounter4.txt and apply the modifications in ubb_get_topic.cgi.

saehoon, yes the [modified] tag means that there are changes since the last beta [1.3].

prova, I'll try to do it if I have the time but that will also increase the load on the server, so I'm going to give an optional instructions for that.

[ April 09, 2001: Message edited by: JB007 ]
just redownloaded. used a new ubb_get_topic.cgi file

and same problem occurs
The mod installed without problem but when I go through the threads, only the first thread I click on gets counted. SO that if I goto Thread 1, its counter goes up by 1 but if i then goto Thread 2 or Thread 3, their counters do not go up. Any ideas??
What version of UBB are you running it on? I'm running UBB 6.03 with not problems.

[ April 10, 2001: Message edited by: JB007 ]
Same prob with me. 6.03
Sorry guys smile , there was a minor problem in the hitscounter4.txt , all you've to do is to re-paste the code in ubb_get_topic.cgi , so download the file again!
The details:
In the first few minutes there was a small error in the file so I quickly edited the code in the file without testing it, unfortunatly, I did not write it correctly, however I inserted the right code in ubb_get_topic.cgi file later so I was not able to track the problem until I reinstalled UBB and the hack using the instructions.

Best Regards
thanks for the update smile
yo JB007 is there a way to call this on the topic pages?
Works fine now JB. Nice work.
Nice Job indeed..
installed and working ..

thnx.

i'm getting a white page thought when going to a forum with more then 1 page!!

[ April 10, 2001: Message edited by: Compboy ]
that fixed one problem, but i keep getting double view counts..
if i just click the topic then hit back then refresh the view counter goes up by 2
on every topic i view
yea just added it lookin nice!
MasterMind, thanks smile

ta twam asi, and Compboy .. can you give me the url to your boards?

Jigga-Master, I've done what you requested but I need to write a upgrade file and modify the instructions file.
the fix worked. thanks for the help. keep up the good work.
- Okay, the files are ready now, the update file is located here .

- I've added optional instructions to show views in the Active Topic's hack.

Hop you enjoy it!
I installed this on my test board this afternoon, and it appears to work fine, except that I cannot reply to any of my threads now. I just get a "Zero byte data error" in Netscape.

Any ideas?
http://www.3drealms.com/cgi-bin2/ultimatebb.cgi
Joe Siegler, Can you access the log files? I'm running UBB 6.03/Linux with no problems.
Yeah, I can. What am I looking for?

BTW, I noticed you registered on the test board, JB007. That "big red notice" doesn't apply to you. That applies to the goobers who are on my forums who like to cause trouble, and would disregard a "please don't post here" notice unless it was big and red like that. smile
Good, so you can see the latest error in the log files, what does it say? Anyway I'm gonna try using UBB 6.04 today ..
I can, but I won't be able to look at that till tomorrow. The log file is massive (over 10megs), and on my 56k dialup at home here, I'm not gonna attempt to go to the bottom of the thing. smile

I'll look at it tomorrow when I can access it with my office T1. smile
hey jb is difficult hack for view in forum summary? Pls this hack for view in forum summary is very good. Thanks for your work!
I'm running the log file through a processor now for yesterday. (It was 13.5Megs Gzipped, something like 190Mb raw).

Anyway, what am I looking for?

I'm also going to try putting this hack in on default code. I put it in on already hacked code, so I wonder if other hacks I have are causing this problem.
If you can view the latest records then maybe we can get some more information about the problem.
Well, I just put the hack in a stock 6.04 code, and the problem still exists. There is a problem with your cp_lib.cgi instructions with 6.04, though.

### FIND:
print FILE qq!FloodCheckSpan => q~$FloodCheckSpan~n!;

### REPLACE WITH:
print FILE qq!FloodCheckSpan => q~$FloodCheckSpan~,n!;
print FILE qq!count_views => '$in{count_views}',n!;
print FILE qq!show_topics_views => '$in{show_topics_views}'n!;

The problem is that FoodCheckSpan is not the last variable anymore. If you replace FloodCheckSpan as instructed, the new runon limit variable in 6.04 is the last one. I've found that if you replace these as instructed, the board won't run at all, because the variables are out of order. If you put your two new ones here after the new one from Infopop,

print FILE qq!runOnLimit => q~$runOnLimit~,n!;

then the board will run. However, I still have the reply problem. I find it hard to believe that this is the cause, but it's the only irregularity that I've found putting this in 6.04.

Also, the log file doesn't appear to show errors, at least I can't tell by looking at it. Due to the fact that my log is 185Mb (raw), the text editors I've tried looking at it with crash. If you could tell me what I should look try and look for, I could search for it.
i ran into the same problem joe experienced with 6.04a, i couldnt find the sentence in cp_lib.cgi, its like this now

print FILE qq!FloodCheckSpan => q~$FloodCheckSpan~,n!;

so i halted the modification after reading his reply problem. im waiting eagerly for you guys to upgrade this.
Hi ppl

Great hack JB007 laugh

Yep I had the same problem in 6.04a so played around a little and its working great now.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
to get it to work try this

+++++++++++++++++++++++++++++++++++++++++++
5. cp_lib.cgi

### OLD FIND:
print FILE qq!FloodCheckSpan => q~$FloodCheckSpan~n!;

++++ NEW FIND:
print FILE qq!FloodCheckSpan => q~$FloodCheckSpan~,n!;

### OLD REPLACE WITH:
print FILE qq!FloodCheckSpan => q~$FloodCheckSpan~,n!;
print FILE qq!count_views => '$in{count_views}',n!;
print FILE qq!show_topics_views => '$in{show_topics_views}'n!;


++++++ NEW REPLACE WITH:
print FILE qq!FloodCheckSpan => q~$FloodCheckSpan~,n!;
print FILE qq!count_views => '$in{count_views}',n!;
print FILE qq!show_topics_views => '$in{show_topics_views}',n!;

+++++++++++++++++++++++++++++++++++++++++

Hope this helps ppl

Wheelie
I'll try it again with this modification, but does this solve the "can't reply" problem?

I had it working fine insofar as the thread counting goes. However, I could NOT get it to reply to any message, though. frown
ok

but this hack working with ubb4.06a
who tested?
Quote
quote:
Yes Joe everything seems to be working great
No , still having problem with 6.04a even after doing AceWheelie edit .

it worked great until i add a reply ,
First: the following appeared in all Topic pages
Quote
quote:
Second: the counter increased by 4 , then by 1 if you Refreshed the page or even you used the back and forward buttons , and it will keep increasing , not just one time in the browsing season .

[ April 16, 2001 04:48 PM: Message edited by: Wanted ]
Quote
quote:
Second: the counter increased by 4 , then by 1 if you Refreshed the page or even you used the back and forward buttons , and it will keep increasing , not just one time in the browsing season .

[ April 16, 2001 04:48 PM: Message edited by: Wanted ][/b][/QUOTE]

I dont understand why its seems to work fine on my test board go try it yourself

My Test Board

It may have something to do with the fact that I did a complete reinstall of all hacks when I upgraded to UBB 6.04a I dont know?

Wheelie
Hey, so far... wink It looks like it is working here:
https://www.ubbdev.com/db/cgi/ultimatebb.cgi?ubb=forum&f=20

Thanks for the nice modification.
AllenAyres ,,, The problem appears only after the First reply .
before the reply it was working great .


anyway , i'll try to reinstall it again and we will see
Hi

is there a revised version of this hack to download that is compatible with ubb versions 6.04, 6,04a?

TIA
I've been fiddleing with this hack for the last couple hours. I finially got a .shw file written. The one problem I'm getting is nothing updating on the forum pages. No numbers being displayed at all. The script seems to be counting. (you can see the number in the topic header when clicked on) You can view my board here: http://tattlerboard.cjb.net

I'm running 6.03. Any ideas as to what's causing that? Template maybe?
Thanks for a great hack!
O.K ,,, this hack will not works well with LOGIN.CGI hack ,, else its perfect
" i'm talking about 6.04a "

it will works good with the LOGIN.CGI , but after adding any reply to any topic in any forum this will appear in the top of every topic page :
Quote
quote:
also the counter will increase if you refresh the topic page , if you used you back & forward buttons .

i guess JB007 you have to work again on this great hack , it worth to re-modify it bcause LOGIN.CGI hack is really one of the most important hacks available ..

Keep the good work

[ April 17, 2001 09:39 PM: Message edited by: Wanted ]
Quote
quote:

::sniff:: anyone? frown confused
Quote
quote:
is it working with 6.04a? people out there who had it installed already ?

anyway - far as I can see: good job JB, good boy ! wink
Oh, I'm sorry for being too late .. anyway the hack is working without any problems on 6.04 , and yes .. there are some changes in the cp_lib.cgi file in that version and they were mentioned by AceWheelie ( Thanks ! ) , however.
I'll try to prepare optional instructions add the hits counter anywhere on your UBB.
Quote
quote:
is there a revised installation text available for this hack for UBB 6.04 ?

thanks.
Well, now that I got it working I took notice that Netscape doesn't like the forum summary pages. The top headers load and then netscape just freezes and won't load any other pages until reboot. (a common netscape crash when something is coded funny) Everything works fine in MSIE. I not completely sure it's this hack but it started after I installed it.

My best guess is something in the template.. maybe the table layout? I know how they behave differently in netscape and MSIE.. any ideas?

[ April 19, 2001 04:47 PM: Message edited by: tpearl5 ]
Quote
quote:
6.04a : DANGEROUS - DON´T DO THIS AT HOME !
Warning to 6.04a-users !

on our site we have a 6.04a version running including the hacks Lastusertpost, Who´s online and ICQ-PopUp v1.5.

the counter hack could be included straight forward. but as we started the cp and turned the counter (just in the forum summary) on and changed to this site all what has shown up was a ugly and unfriendly error 500.

okay..we double-checked all files, had seen no typos , new upload in ASCII, cleared the cache and the problem changed to

Error including required files: No such file or directory in Ultimatebb.cgi and every bookmarked link into a forum has shown up blank sites in MSIE (Netscape said "The server has sent an empty file. Please contact the webmaster.")

we tried to figure out what went wrong checked the files again and with 8 eyes - but nothing.

after a whole day trying to get this hack (and our board) back working, we considered that there is something incompatible in our hack-constellation. we tried to unhack our modified files but we had to found out, that this hack is causing to many changes in to many other files which we hadn´t modified by ourselfes - guess the hack did it while he was trying to work. that´s what he should do - but the result is, that we had to reinstall a ubb "out of the box" `cause our backup-files coudn´t solve that problem. okay..the Error-Msg disappeared - but all what came up was blank sites or an Error 500.

in our reinstall in a new DIR we included the same hacks again in that row : Who´s online, Lastusertopost, ICQ-PopUp v1.5 and then again this hit-counter.
I´m really sorry to say that - but after modifying the files for the hits-counter, who´s online was gone to hell and totally disappeared from our site and beside that - the hit-hack isn`t working at all. (Table appears but no # of hits.)

All in all I don´t wanna say, this hack won´t work in 6.04a - I haven´t tested it yet in a pure version without other hacks.
I just wanna give a feedback to all the other people out there with the same hacks in their ubb´s which are thinking about to install this hit-hack. THINK TWICE !

I only can recommend that any person who wants to install this hack should do it in a testversion of his ubb constellation with all the hacks in it, which are running on his board.
May be we´ve made typos - I don´t believe that by now, but it´s possible that we hadn´t seen the wood because of all the trees and haven´t noticed the error - but before someone runs into this problem, he should check it out in a safe DIR without threatening his complete board like we did.

JB, any ideas what happend to us ? Any suggestions?

[ April 20, 2001 02:11 AM: Message edited by: Marvin ]
There are some incompatibilities with this and the "who's online".. they are changing some of the same files. We have it working on our database (6.04a) without problem, but we don't have much installed there...
btw, Allen - where have you changed the size for the "[ April 20, 2001 02:11 AM: Message edited by: Marvin ]" ?
I have Who's Online, Avatars, E-mail, post reply, pm notification, nick ban, and last reply running in 6.03. I noticed that when I installed the counter that some of script was different in ubb_forum.cgi. Such as the second print "$ThisHTML"; already gone. I compromised and everything seems to work now. Except in Netscape!

For a while I didn't have anything displayed on the forum pages, but it was because of the placement of the coding in ubb_forum.cgi.
Now that I rearranged everything it all the hacks that I have seem to work fine.

[ April 20, 2001 01:48 PM: Message edited by: tpearl5 ]
Oops.. looks like there's some other conflict with Who's Online.. once in a while (I assume it has something to do with the cache) a forum is displayed twice; one with no numbers under the 'views', and the 'Currently Browsing' header, and one without that header and the #'s in the views. When the page is reloaded everything is fine.

Any suggestions?

[ April 20, 2001 02:21 PM: Message edited by: tpearl5 ]
Sorry again, for info are you working on hits in summary page?? tnx in advance
Obviously, there is a little conflict with who's online and the counter.
Well, it seemed my netscape was just acting funky in conjunction with a ****ty hard drive. That problem is solved when I put in a new hard drive running at ata100.. strange..

Anyway, I took the coding of Who's Online out of forum summary and the views seem to work fine now. Yes, there was an obvious conflict between the two scripts, I just don't know how to code a fix for it. Hopefully that'll be solved at some point... I don't know perl very well
What's the difference between this one and Easy's hack? And do both work on 6.04b? Seems like this one is having some errors.

Infinite
Quote
quote:
Confirmed. Same on our board.

EDIT: and I´m using MSIE 5.5. - not Netscape..

[ April 24, 2001 06:33 AM: Message edited by: Marvin ]
After i added your total views hack to my board, it now shows the forum page
twice, the first showing of it doesnt show the total views, but the second
one does, theyre straight after each other on the same page

please email me at [email protected] if u know how to fix this

the site is http://nexusfxp.cjb.net - before u ask, i had a licence for the site, but now its expired (thats why i cant upgrade anymore) and can prove this if you dont believe me, so dont go on about piracy please.
seeing ur posts i tried removing the code for whos online from public_forum_page.pl (which was a single bracket) - it didnt solve the problem....
FIXED IT!!

Ok, if you have who's online installed open up ubb_forum.cgi find :

$ThisHTML .= &page_bottom; # some HTML
$ThisHTML .= $Footer;

local($ThatHTML);
$ThatHTML = $ThisHTML;
$ThatHTML =~ s//$replace/g;
print "$ThatHTML";
undef($ThatHTML);

and replace it with:

$ThisHTML .= &page_bottom; # some HTML
$ThisHTML .= $Footer;
if ($vars_misc{count_views} ne 'no') {
&processVIEWS($ThisHTML);
}

local($ThatHTML);
$ThatHTML = $ThisHTML;
$ThatHTML =~ s//$replace/g;
print "$ThatHTML";
undef($ThatHTML);

next scroll to the bottom of the file and find

if ($vars_misc{count_views} ne 'no') {
&processVIEWS($ThisHTML);
}

print "$ThisHTML";

and delete it.

The problem was that who's online changed $ThisHTML to $ThatHTML so that the cgi script loaded both, and that caused it to load 2 instances of the page. What i've done is incorporated the code for the views, which used $ThisHTML - and made it so that it was added to $ThatHTML - which was then shown.

[ May 04, 2001 01:01 PM: Message edited by: berzerka ]
I don´t see the hitcounter in my main forum page, but in all forum i see the counter
what hapen?


i have de who is on line and you modify its very good.

sorry for my english
The reason is that the hack wasnt made to show a counter on the main forum page, only in the individual forums - hope this helps!
berzerka,

thx for the WOL-fix - works like a charm.

but there´s now another problem appearing in the posting itself.

the hitcounter is activated for both - the forums_summary and the posting itself. but after doing your fix for WOL, the hits in the posting are gone.. any suggestions?
hi JB,

here´s a little problem with your counter-hack.
i installed your hack on my previous version 6.04a and had the problem there too.

every time i´m making changes in cp->misc settings i´m crashing the board and i receive this message :

Content-type: text/html
Software error:
syntax error at ..../htdocs/ubbcgi/cgi-bin/vars_misc.cgi line 31, near "runOnLimit"


the bug is (i call it that but may be the hack is simply not working proper with WOL) that the code in vars_misc.cgi is rewritten after submitting - unfortunality: wrong.

the code appears like this:

Code
code:

but it should be:
Code
code:

any idea how to fix this?

[ May 15, 2001 11:23 AM: Message edited by: Marvin ]
It's missing a comma.
To fix it, go to cp_lib.cgi and FIND:

print FILE qq!show_topics_views => '$in{show_topics_views}'n!;

REPLACE that with:

print FILE qq!show_topics_views => '$in{show_topics_views}',n!;
Quote
quote:
argh...
i´m a complete idiot - or the nightshift f***ed me up..
today i was looking for that line in ubb-Lib.cgi

thx for leading me blind guy..

[ May 15, 2001 12:08 PM: Message edited by: Marvin ]
All right guys, I'm gonna deploy Who's Online and my hack so that I can do some error trapping and release a clean code.
The version I've tested this hack on with Who's Online is 6.04d. For those who are having troubles with Who's Online hack, check the updated instructions in the ubb_forum.cgi page.
Hi,

I build the Hits Counter code into my ubb 6.04e and now it's "totally ****ed up" in modern words.

After I restored the backup files - no change. You could see it here: http://www.terrabay.com/ubb/ultimatebb.cgi

When I try to logon cp.cgi than this happens:

---
Software error:
syntax error at c:/web/terrabay/ubb/vars_misc.cgi line 22, near "runOnLimit"
Compilation failed in require at c:webterrabayubb/cp_lib.cgi line 373.

For help, please send mail to this site's webmaster, giving this error message and the time and date of the error.
---

I wonder why I cannot restore my board with the original files.

Could somebody help ?
im having the same problem as the previes post above

when i edit my misc settings for the first time after i install the hit counter it goes thru fine then i check my ubb board and its say
Error including required files:
Make sure these files exist, permissions are set properly, and paths are set correctly.

then i go back to my control panel and go to the misc settings to edit it and it says
Script output was:
[Sat May 26 12:06:10 2001] cp.cgi: syntax error at /www/gamersspot/cgi-bin/vars_misc.cgi line 22, near "runOnLimit"

i am running 6.04a and i have the ratings hack, avatar hack, who's online hacks installed?
can someone help me
Something weird happens...the counter resets back to 0 after a certain amount of views..Any ideas?
Même prb pour moi, le compteur de forum ce replace à 0 frown
would be great, if someone could make a file for multihack...

i currently do use " HITS COUNTER VERSION 4.0 BETA 1.3". But wanna upgrade my ubb to v.6.04 and use this hack again.
(but don't wanna change it by hand...)
That error happens because new versions of UBB have some change in vars_misc.cgi file structure, I've upaded the instructions. All you've to do is to re-do the steps in the cp_lib.cgi.
Great i have it to work but i had to disable the cache and then it works

i am using ubb6.04e | who is online 3.9qa | cp registration | newfader 2.0 | viewPMinfo 1.2 | UBB Integrated Polls 1.3 and now Hitcounter 4

[ June 06, 2001 04:50 PM: Message edited by: boondock ]
Does this mean I have to turn of cache to get this to work . not a problem just a question before I install..
Tech-Ni-Kal

after i installed it, it lookt oke no problems hits works only when i entered a thread and after that i want to return it came back with a blank site.

So i turned off the ubb cache in misc settings after that i cleared the cache and everything was (is) working laugh
© UBB.Developers