UBB.Dev
Posted By: Tovok7 [6.3.x] [beta] Stats Hack 1.3 - 05/23/2002 3:56 PM
This hack displays statistics for your UBB like a separate category at the bottom of forum home and provides a detailed stats page.

Name: Stats Hack 1.3
Description: Adds extensive statistics to UBB.classic
Author: Tovok7 <webmaster@Tovok7.de>
Date: 05-23-2002
Thanks to: LK [ homepage ]
Compatible with: Multihack, XHTML, UBB Cache and UBB Accelerator
Link: http://Tovok7.de/

This hack went through an intensive testing process and should be bug free now. If you discover any bugs please post them here.

A demo can be seen at LK\'s Board .
Posted By: UmARsIZ Re: [6.3.x] [beta] Stats Hack 1.3 - 05/23/2002 4:16 PM
where is download link.

i cannot find 1.3 in your link

http://Tovok7.de/ubb contains
Stats Hack 1.2 Description: Adds extensive . Where 1.3 ?
Posted By: UmARsIZ Re: [6.3.x] [beta] Stats Hack 1.3 - 05/23/2002 4:19 PM
heheheh.
you are updating your page laugh
Posted By: Tovok7 Re: [6.3.x] [beta] Stats Hack 1.3 - 05/23/2002 4:19 PM
quote:
Originally posted by UmARsIZ:
where is download link.
Stats Hack 1.2 Description: Adds extensive . Where 1.3 ?

Try to open you eyes! There is brilliantly visisble "Stats Hack 1.3 Description: Adds extensive statistics to UBB.classic"
Posted By: UmARsIZ Re: [6.3.x] [beta] Stats Hack 1.3 - 05/23/2002 4:34 PM
quote:
Try to open you eyes!
I looked on your webpage and when I wrote my first message, saw 1.2 at the top of page.

after two minutes later reload page and got an error page was not found. after waiting a few mins and recheck the page and 1.3 was seen at the top of page.

I think you first wrote in icq and after this you updated your page. I am kind a hesitated one so i preffered you not be treat by this way

Thank You!....
Posted By: LK Re: [6.3.x] [beta] Stats Hack 1.3 - 05/23/2002 4:40 PM
[code][/code]Shouldn't it be add ABOVE? tipsy

Also, in ubb_statistics.cgi, -e should be &FileExists and line 296 should be $StatsData{'TotalMembers'} = &GetMemberTotal;
Posted By: Tovok7 Re: [6.3.x] [beta] Stats Hack 1.3 - 05/23/2002 4:41 PM
quote:
Originally posted by UmARsIZ:
after two minutes later reload page and got an error page was not found. after waiting a few mins and recheck the page and 1.3 was seen at the top of page.

I've updated my page and uploaded the file before I posted this topic. That's why I was sure that you just overlooked it. Maybe the page was still in your cache.
Posted By: Tovok7 Re: [6.3.x] [beta] Stats Hack 1.3 - 05/23/2002 4:43 PM
quote:
Originally posted by LK:
Shouldn't it be add ABOVE? tipsy

No it should be BELOW! But it doesn't matter where it is.
Posted By: grungelegende Re: [6.3.x] [beta] Stats Hack 1.3 - 05/23/2002 8:37 PM
Funktioniert 1a!!! Danke!
Posted By: FiEND Re: [6.3.x] [beta] Stats Hack 1.3 - 05/24/2002 5:30 AM
thanks for the hack, works great.

had a little trouble adjusting it to jctemplates but figured it out OK.

question though:

anyone know what file(s) control the info for when the board was set up? everytime I upgrade it resets to 1 day and now I have 900,000+ messages per day tipsy and I would like to fix this.

thanks
AF
Posted By: LK Re: [6.3.x] [beta] Stats Hack 1.3 - 05/24/2002 11:01 AM
When you upgrade, don't overwrite variable files! tipsy
Posted By: FiEND Re: [6.3.x] [beta] Stats Hack 1.3 - 05/24/2002 11:12 AM
doh now you tell me laugh

actually this was a fresh install cause my control panel wordlets and redirect after posting was borked. I will look into the variables and see if I can fix it. thanks for the tip.
Posted By: Variables Re: [6.3.x] [beta] Stats Hack 1.3 - 05/24/2002 12:38 PM
I can't find this in pntf_summary.pl

###############################################################################
# if you have wol list hack, open public_pntf_summary.pl (template) and find: #
###############################################################################

$location = qq($vars_wordlets_pntf{pntf_forum}: ) . (&GetForumRecord($f))[1] . qq();
Posted By: guvner Re: [6.3.x] [beta] Stats Hack 1.3 - 05/24/2002 12:57 PM
Would it be possible to exclude a specific IP address? - I reckon I'm responsible for about 1/4 of the page views. frown
Posted By: LK Re: [6.3.x] [beta] Stats Hack 1.3 - 05/24/2002 3:19 PM
Variables, ignore it, the hack doesn't modify it anymore...

guvner, the UBB saves it, not stats hack... but if you really want:[code][/code]Change 127.0.0.1 to your IP (untested)
Posted By: RandyM Re: [6.3.x] [beta] Stats Hack 1.3 - 05/24/2002 4:47 PM
How much of a performance hit does this hack cause?
Posted By: Tovok7 Re: [6.3.x] [beta] Stats Hack 1.3 - 05/24/2002 4:52 PM
I decelerates the speed forum home is loaded not slightly. All other pages of UBB are untouched and if you don't hack puplic_forum_summary.pl the speed is the same as without Stats Hack.
Posted By: RandyM Re: [6.3.x] [beta] Stats Hack 1.3 - 05/24/2002 6:58 PM
ooops
Posted By: RC Re: [6.3.x] [beta] Stats Hack 1.3 - 05/24/2002 10:20 PM
Can somebody post how to add the stats with JC Templates?
Is it possible to add 'if using JC templates do this'? Like you do for WOL.

Thanks in advance.
Posted By: JonNJapan Re: [6.3.x] [beta] Stats Hack 1.3 - 05/29/2002 11:08 AM
I get this error after clearing the cache:

An error has occured:

Undefined subroutine &main::DisplayStats called at CGIPath/ubb_forum_summary.cgi line 425.

Please inform the board administration of this error so that they may fix the problem. Thank you!

Line 425 is:

&DisplayStats;

I take that out, clear the cache and it works perfectly...Without the statistics appearing....Any help here Tovok?

~Jon
Posted By: LK Re: [6.3.x] [beta] Stats Hack 1.3 - 05/29/2002 1:09 PM
Re-upload ubb_statistics.cgi to cgi-bin directory, and rehack ubb_forum_summary.cgi
Posted By: Tovok7 Re: [6.3.x] [beta] Stats Hack 1.3 - 05/29/2002 1:11 PM
[code][/code]
Posted By: JH Re: [6.3.x] [beta] Stats Hack 1.3 - 05/29/2002 9:43 PM
is there a multihack file for this?
confused
Posted By: Tovok7 Re: [6.3.x] [beta] Stats Hack 1.3 - 05/29/2002 9:52 PM
quote:
Originally posted by JH:
is there a multihack file for this?

no
Posted By: JH Re: [6.3.x] [beta] Stats Hack 1.3 - 05/29/2002 10:00 PM
quote:
Originally posted by Tovok7:
no

k no probz. Just feeling real lazy today laugh
good work with the hack (iv had the prev two)
Posted By: MysfytGyrl Re: [6.3.x] [beta] Stats Hack 1.3 - 06/17/2002 7:20 PM
I'm confused...tried this hack three times and it won't display text next to the stats, so people won't know what the heck the numbers are there for.

Can someone please tell me what I've missed?

Thanks a million.

The CarbHealth Forums

-Tiffany
Posted By: Tovok7 Re: [6.3.x] [beta] Stats Hack 1.3 - 06/17/2002 7:24 PM
quote:
Originally posted by MysfytGyrl:
Can someone please tell me what I've missed?
-Tiffany

Please read the faq! There your problem is described.
Posted By: Muah Re: [6.3.x] [beta] Stats Hack 1.3 - 06/18/2002 9:32 PM
Hi Tovok,

first thanks for your Stats Hacks :-) 1.2 works great on my 6.1.x .. now i want to upgrade to UBB 6.3.0 and i used your Stats Hack 1.3 ... all be fine but on the Summary Page there are no statistics, the link to the details page is there and works, also the details page works great, only on summary/cat view the statistics are not working.

i hacked the code tree times, every one with the original files, first mod then stats.

an idea ?

thanks
Posted By: LK Re: [6.3.x] [beta] Stats Hack 1.3 - 06/18/2002 9:37 PM
Muah, url?
Posted By: Muah Re: [6.3.x] [beta] Stats Hack 1.3 - 06/18/2002 9:47 PM
LK look at PM inbox :-)
Posted By: LK Re: [6.3.x] [beta] Stats Hack 1.3 - 06/18/2002 9:49 PM
ubb_forum_summary.cgi - make sure you add _BEFORE_ where it says to add before.
Posted By: Muah Re: [6.3.x] [beta] Stats Hack 1.3 - 06/18/2002 9:56 PM
What should i say ? Dont code hacks after you worked 12 hours a day from 5 o clock am *g*

Thanks for help and showing me, i need new glasses eek
Posted By: Saxeus Re: [6.3.x] [beta] Stats Hack 1.3 - 06/25/2002 12:33 AM
Greetings,

I've had Stats Hack for a long time, the 1.1 version, but one day it happened that the hack was not showing anymore growing up numbers, just remained static. I upgraded my forum from 6.3.0.1 beta release of april, to the latest now 6.3.0.1, and still after installing the Stats Hack 1.3 from the beginning, the number is not growing up as it should be. I'm talking about the number of pageviews for month. The other stats work fine until now. What can be the matter?
Posted By: [email protected] Re: [6.3.x] [beta] Stats Hack 1.3 - 06/28/2002 6:10 AM
Hi, ive just installed this hack after upgrading to 6.3.0.1.

All works well except i can not get into the contorl panel stats menu.
I get this error "You do not have permission to access this area."

Anyone have any ideas?

Thanks
Paul
Posted By: QuiGonJ Re: [6.3.x] [beta] Stats Hack 1.3 - 06/28/2002 3:26 PM
Hey FiEND, could you help me out with the adjustments you made to get it to work with JCTemplates.

I have the code itself running at
http://www.coruscantcity.net/cgi-bin/board/ultimatebb.cgi?ubb=statistics

but yes, it needs a bit of adjusting. smile
Posted By: QuiGonJ Re: [6.3.x] [beta] Stats Hack 1.3 - 06/30/2002 6:13 PM
I got it adjusted, finally, and feel kinda proud for doing so. smile

But, the stats are kinda skewed since the board is an upgrade and the posts are all of em since January 2000. How would I adjust things to make the stats more accurate?

Also, once that's done, I'd rather place the code after the recent visitors instead of on the end of the last category (yes, on jc templates). I placed the "sub PageBottom {" code after "$pntf_locations[3]" which puts the text in the right place, but I'm not sure where to place the "sub Cat_Page_Bottom {" code so it gets the right formatting. As it is, it just kinda sits on the page.

Can anyone help me?
Posted By: Raichu Babai Re: [6.3.x] [beta] Stats Hack 1.3 - 07/03/2002 12:43 AM
I must have rehacked this code in like 10x, making sure i did it correctly. I get the table, deadlink for picture and no stats...

http://www.nakcc.org/cgi-bin/ultimatebb.cgi
Posted By: ryan11 Re: [6.3.x] [beta] Stats Hack 1.3 - 07/03/2002 8:14 AM
i face a problem

i have hacked this for 3 times

firstly,it can see it can work correctly in ultimatebb.cgi

but after one days,the "Total Page Views:" reset to "0" suddenly and the "Total Page Views" was not showing anymore growing up numbers
Posted By: Lord Dexter Re: [6.3.x] [beta] Stats Hack 1.3 - 07/03/2002 9:57 AM
quote:
Originally posted by [email protected]:
Hi, ive just installed this hack after upgrading to 6.3.0.1.

All works well except i can not get into the contorl panel stats menu.
I get this error "You do not have permission to access this area."

Anyone have any ideas?

Thanks
Paul

Make sure you have hacked cp.cgi correctly.

Raichu - You need to put the name of the image in the NONcgi folder in the section in the CP settings. Then the image will work. And I think all your options for stats showing have been turned off in the CP. Check.
Posted By: LK Re: [6.3.x] [beta] Stats Hack 1.3 - 07/03/2002 10:11 AM
LD, please check the URL before guessing tipsy

Raichu, make sure that you have uploaded vars_statistics.cgi to variables folder. If it still doesn't work, rehack ultimatebb.cgi. About the other thing - make sure you did the step of vars_wordlets_mods.cgi, and uploaded it to variables folder. Also make sure you put it right after %vars_wordlets_mods = (, and not at the end.
Posted By: Lord Dexter Re: [6.3.x] [beta] Stats Hack 1.3 - 07/03/2002 12:13 PM
I did check it. I just thought it was off. o_O
Posted By: marmz Re: [6.3.x] [beta] Stats Hack 1.3 - 07/05/2002 9:59 AM
i know this question has probably been asked before, but

1. How do you seperate the Statistics table from the rest of the categories (like on netwerkin.com's board)

2. How do you enable the category background image to be used (again, like on netwrkin's board)

Your help would be muchly appreciated.
Thankyou
Posted By: LK Re: [6.3.x] [beta] Stats Hack 1.3 - 07/05/2002 10:38 AM
1. right before the stats code in public_forum_summary.pl, put "$TBB
$TBT"

2. just use background attribute in tag of stats in public_forum_summary.pl.
Posted By: marmz Re: [6.3.x] [beta] Stats Hack 1.3 - 07/05/2002 10:43 AM
Just wanted to say thanks for your help for starters.

However,

1. I already have that code before the statistics code:
$TBB




$TBT



color="$vars_style{CategoryStripTextColor}">$vars_wordlets_mods{'statistics_header'}




****Any ideas about that?

2. and i have added:

background="$vars_config{NonCGIURL}/$vars_style{CategoryMainBackground}"

to the statitics code and i have cleared the cache and no changes

Please help me
Posted By: LK Re: [6.3.x] [beta] Stats Hack 1.3 - 07/05/2002 1:12 PM
You put them in the wrong place. There are two instances of stats - in Cat_Page_Bottom and PageBottom subs. Hack the PageBottom one. (right under what you're hacking now)
I can't find this in public_common.pl

###################################
# open public_common.pl and find: #
###################################

if ($vars_search{AllowSearch} ne 'FALSE') {
# Search
push(@items, qq($vars_wordlets{search_link}));
}

##############
# add below: #
##############

if ($vars_statistics{'MBL'}) {
# Statistics
push(@items, qq($vars_wordlets_mods{'statistics_pntf'}));
}
Any help appreciated, Im using 6.3.0

Thank you
Hey I have sorted the above, I have deleted these links so of course this would not be there, but I still have this problem too:

An error has occured:

NonCGIPath/Templates/public_forum_summary.pl: syntax error at NonCGIPath/Templates/public_forum_summary.pl line 423, near "<"
syntax error at NonCGIPath/Templates/public_forum_summary.pl line 423, near ""$vars_style{FontFace}" color"

Please inform the board administration of this error so that they may fix the problem. Thank you!

Any oneknow what is the cause?
God - I solved it on my own, may change my login to getting better at this stuff! I rehacked on the 3rd time it worked fine???? I must have been me all along.

Doh!!
Posted By: Olliey2k Re: [6.3.x] [beta] Stats Hack 1.3 - 07/15/2002 1:26 PM
Like many, i've installed this hack and it does not display the total posts / topics on my forum home.

when i go to http://www.futureff.com/cgi-bin/ultimatebb.cgi?ubb=statistics it works, and there are no other errors apart from them not showing on the forum home. I've tried what you said to do in your FAQ and it still isn't working frown
Posted By: Tovok7 Re: [6.3.x] [beta] Stats Hack 1.3 - 07/15/2002 1:37 PM
quote:
Originally posted by Olliey2k:
Like many, i've installed this hack and it does not display the total posts / topics on my forum home.

The entire stats are not displayed at forum home. Please make sure that you've hacked public_forum_summary.pl
Posted By: Olliey2k Re: [6.3.x] [beta] Stats Hack 1.3 - 07/15/2002 1:50 PM
Ah smile your a star.

Thanks man
Posted By: bizkit73 Re: [6.3.x] [beta] Stats Hack 1.3 - 08/10/2002 11:12 PM
Quote
quote:
Originally posted by [email protected]:
Hi, ive just installed this hack after upgrading to 6.3.0.1.

All works well except i can not get into the contorl panel stats menu.
I get this error "You do not have permission to access this area."

Anyone have any ideas?

Thanks
Paul
you have to end each line in cp.cgi

#end vars_statistics
#end set_vars_statistics

in the same way as each of the other lines.

I am not sure how this was overlooked in the zip file or why no one else has pointed it out, but I just spent 20 minutes figuring it out and now all works fine. tipsy
Posted By: LK Re: [6.3.x] [beta] Stats Hack 1.3 - 08/11/2002 12:53 AM
Quote
quote:
Originally posted by bizkit73:
I am not sure how this was overlooked in the zip file or why no one else has pointed it out, but I just spent 20 minutes figuring it out and now all works fine. tipsy
I guess because it doesn't do anything tipsy
In Perl, what's after "#" is a comment - no meaning to the program. The actual fix is just to rehack cp.cgi. tipsy
Posted By: konartist Re: [6.3.x] [beta] Stats Hack 1.3 - 08/11/2002 10:23 AM
http://dre.design2i.com/ubbcgi/ultimatebb.cgi, im getting a weird error with this script, i dont know how to fix it.

  • There is no info in the statistics box on main page
  • Theres a awkward black space in the cell..?

please help me out..
Posted By: LK Re: [6.3.x] [beta] Stats Hack 1.3 - 08/11/2002 10:28 AM
Both of them are connected to each other. tipsy

Re-hack ubb_forum_summary.cgi. Make sure that when you see "Add above" you add ABOVE, and when you see "Add below" you add BELOW. tipsy
Posted By: bizkit73 Re: [6.3.x] [beta] Stats Hack 1.3 - 08/11/2002 5:49 PM
quote:
Originally posted by konartist:
http://dre.design2i.com/ubbcgi/ultimatebb.cgi, im getting a weird error with this script, i dont know how to fix it.

  • There is no info in the statistics box on main page
  • Theres a awkward black space in the cell..?

please help me out..

I had the same identical problem and although I am not a ubb hacker and LK disputes what I wrote, after I added the ending lines it worked. I don't know if this created an extra space it needed or what, but after I did that it worked for me fine.
I rehacked every file 3 times to the tee of what the instructions wrote, but I had that same problem. Try looking at the spacing between lines and adjust them to the pattern of the lines that fall before the code you are entering. That is my best advice for you.
Posted By: LK Re: [6.3.x] [beta] Stats Hack 1.3 - 08/11/2002 9:46 PM
bizkit, did you, by any chance, re-hack ubb_forum_summary.cgi when you "fixed" cp.cgi? wink
Posted By: bizkit73 Re: [6.3.x] [beta] Stats Hack 1.3 - 08/12/2002 1:48 AM
I rehacked all the files from scratch when I noticed that. But I also rehacked them 3 times over. But I see where you are getting at and you could be right. the end statements probably didn't do anything. I probably just added a space or maybe took one away while I was hacking the other files. I do remember rehacking ubb_forum_summary.cgi like 3 times though and I just tried several different things before I got it working.
Posted By: Tovok7 Re: [6.3.x] [beta] Stats Hack 1.3 - 08/12/2002 3:29 PM
Maybe you just forgot to clear the cache and then did this comment thing, cleared cache and saw it working???
Posted By: bizkit73 Re: [6.3.x] [beta] Stats Hack 1.3 - 08/13/2002 10:50 PM
I am also still running the 6.3.0 beta 1 ubb too and maybe that could be my problem. I am just hesitant on upgrading though because I hate rehacking my entire board and I finally have it the way I want it.
Posted By: Lord Dexter Re: [6.3.x] [beta] Stats Hack 1.3 - 08/14/2002 9:17 AM
bizkit you can upgrade to 6.3.1 without loosing hacks with Beyond Compare. There is a tutorial in the database.
Posted By: LK Re: [6.3.x] [beta] Stats Hack 1.3 - 08/14/2002 6:15 PM
This hack is, probably, final, and Tovok posted it at https://ubbdev.com/ubbcgi/ultimatebb.cgi?ubb=get_topic;f=30;t=000007 ... I'm closing this thread.
© UBB.Developers