This hack displays statistics for your UBB like a seperate category at the bottom of
forum home and provides a detailed stats page.
Name:
Stats Hack 1.1Description:
Adds extensive statistics to UBBAuthor:
Tovok7 < webmaster@Tovok7.de >Date:
30-12-2001Thanks to:
LK [ homepage ]Compatible with:
Multihack, XHTML, UBB Cache and UBB AcceleratorLink:
http://UBB.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
UnitedBoards .
[ 12-30-2001 03:11 PM: Message edited by: Tovok7 ]
Good job!
Works like a dream.
Just one suggestion, or question - how easy would it be to add the stats summary to individual forums?
We have a lot of people linking to individual forums from other websites - and it would be really nice to have this feature available on there, as often they will not go up a level, and just stay in the forum.
Regards,
Canvey
BTW - the instructions were very clearly written - can make a big difference.
That would be quite difficult but possible. Currently, the stats are also available in every category. If your users would link to the category instead of the forum they would be able to see the stats without climbing up one level.
Alternatively, you can add a stats link to the main button line (my profile | register | search | faq | forum home), so the users can click on it.
just wanted to let you know that your link doesn't link to
http://UBB.Tovok7.de/ nice job on the hack
Thank you for the hint, but like Charles Capps would say: This is the designed behavior
So, I can catch all visitors with my homepage stats.
[edit]
Did anyone try the multihack file?[/edit]
[ 11-04-2001: Message edited by: Tovok7 ]
When i tried to install Stats hack 1.05 by Multihack. There's a failed step:
* Failed | vars_wordlets_mods.cgi |You NEED Modification WordletsWhat does that mean? Please help. Thanks
Install Modification wordlets.
Your Hacks work always great and fine, thanks
I just got like this after i installed, now how can i fix that?
Please show me.[ 11-04-2001: Message edited by: Tomb ]
Download the zip file and follow the instructions. It will fix that problem. I think they have a Multihack file for it too.
please change the link to the correct file, I can't read German!
Installed via MultiHack on test system and up and running
For those having a problem with Mod WordLets I used the MultiHack from this thread:
https://www.ubbdev.com/ubb/ultimatebb.php?ubb=get_topic&f=31&t=000010 This was the only way stupid me could get it installed.
I did use Multihack and u know...i got those errors like that
Please help...
Use ONLY the Mods Worldlet install that comes with Who's Online v4 for UBB6.1. The official one hasn't been updated and I haven't tried the MHK ver.
I used the one in the Stat hack and it worked fine.
I got that prb also, lets see if the new release fixed it
What new release?
Where will be no new release of the Stats Hack. If you want to use the Multihack file, you
have to install the Modification Wordlets first which is available in many hacks. Even I provided an installation description for it in my stats hack zip file.
Still a problem with the hack. If a user turns off the display of Member Total but still wants to display the Featured Member and Post Average, you run into problems. Both Featured Member and Post Average rely on the $StatsData{'TotalMembers'} field (FM for selecting a new random member, PA for calculating total posts/total members). But $StatsData{'TotalMembers'} isn't loaded unless Show Member Total is enabled, which results in the subroutine GetMemberCount being called.
So basically you need to add a &GetMemberCount; to the first line under sub Averages { and sub FeaturedMember {
Great hack, otherwise
[ 11-08-2001: Message edited by: Influenza ]
I gonna to fix this in the next release. Meanwhile I hope that nobody would use such a combination of the features.
Did you find other dependencies I forgot to consider?
[ 11-08-2001: Message edited by: Tovok7 ]
When you dopleae include update instructions for those of us that have it installed already, please
Just open ubb_statistics.cgi and add &GetMemberCount; to the first line of sub Averages { and sub FeaturedMember {.
Hey. always looking for ways to make my forum beter!
I had the Calender Hack installed before I installed this hack, and after I had it installed the calender Hack "disappeared" !!!
There is no more Link in the forum home to the Calender and that calender link at the bottom of the page also dissappeared! Please help!
Did you use multihack? The stats hack can't be responsible for the disapear of the calender hack 'cos it doesn't touch the files which are responsible for it.
Try to reinstall the calender hack!
It must be! Because before I installed the Stats Hack everything was working just fine, and as soon as I was done with implementing the Stats Hack and cleared the Cache, all of the Calender Hack was gone!
[ 11-16-2001: Message edited by: Domain ]
Domain, did you use MultiHack in any of these hacks? If so, make sure you copied the Calendar Hack's files to the 'source directory' and didn't upload it straight from the 'output directory' or any directory that isn't the source one.
[ 11-16-2001: Message edited by: LK ]
No, I did not use Multihack!
So you must've modified another directory, for example if in Calendar Hack you modified C:UBBcgi-binultimatebb.cgi, now you modified C:Ultimatebbcgi-binultimatebb.cgi. Just rehack the Calendar Hack.
Damn it!
I just uploaded the back-ups and took the stats-hack out, but my calendar hack is still screwed.
I didn't tell you to do that, I told you to rehack Calendar Hack.
Now you should upload vars_wordlets_calendar.cgi again (or rehack the stuff in ultimatebb.cgi)
Upload the vars_wordlets_calender.cgi from the original you mean?
Just leting you know that I got it fixed!
The Stats Hack overwrote the
wordlets_calendar in ultimatebb.cgi, therefore of course all the Links mysteriously dissappeared.
Great Hack Tovok! took me awhile to get the hand of the autohacker, but it's ok now.
How could it be stats hack fault?
Where can i download the hack??
The link doesn´t work!!
An mhp made with multihack 2.0 has been made, if you want it
https://ubbdev.com/db/cgi/ultimatebb.cgi?ubb=get_topic;f=22;t=000014
Tovok, lemme know if you'd rather make one yourself. danke
Yeah I would like to know that one also.
[ 12-09-2001 04:30 AM: Message edited by: omegatron ]
quote:
Originally posted by AllenAyres:
An mhp made with multihack 2.0 has been made, if you want it
now that works very well indeed thanks
)very nice hack
Just downloaded and installed using MK. It took a total of 5 min to download, install and upload with absolutely no problems. It doesn't get any easier than that.
Thanks to Tovok7 for building the hack and to AllenAyres for creating the MK file.
Here is a fix for anyone who has installed the calendar hack prior to the Stats hack.
They seemed to not like each other after installing the multihack version of the Stats hack, so I checked the files against the manual installation of it.
I came accross the following missing code.
#################################
# open ultimatebb.cgi and find: #
#################################
foreach my $file (qw(
##########################
# add directly after it: #
# Copy the space, too! #
##########################
statistics
Having made that one simple change I could then use both hacks without problems.
Hope that helps anyone else who has had a simlar problem
This hack is very interesting, but i don't want to put too many things on the main page of my board.
Is there's a way to only have a line "Stats" on top (near profile, faq etc.) that link to a page where you could see the stats
[/code]and add above:[code]
This is untested and may not work. I just made it up.
There's a bug in the edit function of UBB. I can't edit the post above. The former content isn't displayed right.
Use this instead of the code block displayed above this post:[code][/code]
Hi! Great Hack!
But I have a problem with the total members!
After the update to UBB 6.1.0.3 the stats hack shows one member more than the original display at the top of the site.
Furthermore it is not possible to click on the name of the the member who wrote the last reply.
Can you help me?
Thanks.
1. Not in my board
2. Open ubb_statistics.cgi.
Find:
But it won't work if public name != login name
hay... i try to install that but i don't know how?
wich file i need to open?
vars_wordlets_calendar.cgi?
if that file it dosn't work...
it wrote me that
CGI Error
The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are:
and i don't know what the problem!
help me plz!
vars_wordlets_mods.cgi if I got what you mean.
i rty to install this script...
from the start...
what i need to do?
quote:
Originally posted by pSycHo mAn:
what i need to do?
You need to open statistics_readme.txt and you need to read it, with open eyes!
Thanks for a great hack!
Merry Christmas everybody!
[ 12-25-2001 09:47 AM: Message edited by: Kenny22 ]
Everything is centered now! Also when you click on the Statistics link everything on that page is centered!
http://forum.invoid.net/cgi-bin/ultimatebb.cgi
nevermind, fixed. I was getting the error due to the Compact headers template
Version 1.1 was just releasedChanges:
- added Topics per Day
- added Posts per Day
- added days since UBB was set up
- fixed the dependencies bug
- added a truncate option to cp
- fixed some little other things
As long as you haven't any problems with Stats Hack and as long as you don't want the new features, there is no need to upgrade.
1.1 version for Multihack link isn't working...
quote:
Originally posted by diettalk:
1.1 version for Multihack link isn't working...
This is because there ain't a Multihack Version for v1.1
HI Tovok7
I got Stats Hack 1.05 and up and running. Very nice hack, thank you much for your contribution!!!
A bit of a problem though only with running with other hacks.
In my vars_wordlets_mods.cgi I had modifications for "Last Post By" and "DT's Extra (Custom Display Category/Item) 1.02" prior to installing the Hack Stats. They both worked, but Stats words did not show up when I hacked that in.
I narrowed it down to the wordlets file I think.
If I adjust the file a bit (guessing cause I'm real new) I get stats to show up but them loose "Last Post By"
I'm woundering if you can offer your expertise?
I'm sorry I'm real new to this. I will list what I had prior to hacking yours in and it all worked. Maybe you can tell me where to add your portion in here:
-------------------------------------
This is my vars_wordlets_mods.cgi prior to hacking your adds in:
%vars_wordlets_mods = (
q~last_reply_by~ => q~Last reply by~,
mod_wordlets => "Modifications Wordlets",
dtextra_field_cat => q~Custom Display Category~,
dtextra_field_item => q~Custom Display Item~,
_ => q~~,
);
1;
This works fine so far.
------------------------------------------------
The thing is, when I hack in :
statistics_header => "Statistics",
statistics_total_posts => "Total Posts:",
statistics_total_topics => "Total Topics:",
statistics_total_forums => "Total Forums:",
statistics_total_members => "Total Members:",
statistics_average_member_posts => "Average Posts per Member:",
statistics_average_posts => "Average Posts per Forum:",
statistics_average_topic => "Average Topics per Forum:",
statistics_newest_member => "Last member to register is",
statistics_featured_member => "Featured member is",
statistics_last_post_by => "Last post by",
statistics_in => "in",
statistics_at => "at",
statistics_on => "on",
statistics_monthly_hits => "Page Views",
statistics_pageviews => "Total Page Views:",
by the directions in v1.05, I loose "Last Post By"
Can you please tell me how to combine these two to make them work if possible?
I really appreciate it.
Thanks
Rainner
Use all wordlets in one file! Like here:[code][/code]
[ 01-12-2002 02:27 PM: Message edited by: Tovok7 ]
Thanks for such a quick reply! When I did the above mentioned I lost my words for stats so I played around with the wordlet file, not knowing what the heck I was doing, and commented out each line 1 at a time and retested.
When I commented out the line that reads:
# _ => q~~,
It all worked fine. I don't know the what that means, but if it dosn't mess things up, I'm happy!
BUT: My stats say I got over 6400 views in 3 days open? and 40 sighups? I don't think this part is right, any clues to what to look at for this one?
Thanks again
Rainner
[ 01-12-2002 03:39 PM: Message edited by: Rainner ]
Hey Tovok I just upgraded this from 1.05 and it worked great. Only that I didn't follow your update all. I compared the files and the only file I had to do was ubb_forum_summary.cgi and the 6.2.0 Bit you added. Then I re-uploaded the new files (cp_statistics.cgi etc.) and it worked. I didn't see the need to uninstall it and re-install it like it said in your upgrade txt.
quote:
Originally posted by Rainner:
It all worked fine. I don't know the what that means, but if it dosn't mess things up, I'm happy!
This line was totally unnecessary. quote:
Originally posted by Rainner:
BUT: My stats say I got over 6400 views in 3 days open? and 40 sighups? I don't think this part is right, any clues to what to look at for this one?
My hack doesn't fetch the page views. This is done by the UBB. Page Views mean that it counts every request from an ultimatebb.cgi... url and not only one request made to the main page. quote:
I didn't see the need to uninstall it and re-install it like it said in your upgrade txt.
Yes, you're right. This was only for less expierenced users. At the end of the file there is a hint for experienced users saying which files were modified.
Hi again,,
Thaks for your response. I came across something interesting last night testing. When I have cache turned on and I post (not just hit a page), I get about 7 hits added to the counter. This was tested 6 times, every time same effect. When I turned cache off, I only get 1 hit everytime I access the site as should be. Could this maybe be caused my other hacks I installed or maybe something I hacked in wrong?
I have cache off now because of reasons so everythings ok but just thought it to be interesting info you may be interested in or maybe not.
Thanks again for such a really great hack, we love it!
Rainner
Rainner,
I am getting the same thing as you. With cache on I get about 6 hits for each page view but when it's off, it does what it should and updates the counter by 1 for each page.
By the way, I am running 6.1.0.3.
Thanks,
JMK
[ 01-16-2002 11:33 PM: Message edited by: JMK ]
quote:
Originally posted by JMK:
With cache on I get about 6 hits for each page view but when it's off, it does what it should and updates the counter by 1 for each page.
I can't reproduce this error. With cache on or off one page view is counted as one page view. I have no problem at all. And I repeat: My script doesn't count the page views. This is done by the UBB itself, so ask infopop about this matter.
Hey JMK
I also am running 6.1.0.3
If you come across anything, please let me know. I will do the same for you.
Thanks
Rainner
The Link to the Multihack Version is not working on your page. Can you change this or can someone else send me the multihack?
No problem Rainner. If I find anything out, I will post it here. I also had the cache off on my site for a while to see the Stat counters update correctly but then the forum members decided to "speak their mind" and mentioned that the forums slowed down considerably. So to appease them, on with the cache again.
It's kind of strange seeing almost 11000 page views in less than a 15 hour period
JMK
quote:
Originally posted by JMK:
It's kind of strange seeing almost 11000 page views in less than a 15 hour period
Your cache is obviously enabled because the main page hasn't changed after I refreshed it.
But when I refresh this page the page view counter increases by one every refresh.
So I can't see where your problem is.
found a bug that affects the statistics hack when used with the hide hack. and here is the fix..:
search..:
[/code]
replace it with..:
</pre></div></div><br><br>and search this..:<br><br><div class="ubbcode-block"><div class="ubbcode-header">Code</div><div class="ubbcode-body ubbcode-pre" ><pre>
and replace it with..:
[code]
[ 01-24-2002 04:58 PM: Message edited by: SubZero5 ]
Sorry.. mis-read the '.' for a ',' on my UBB..
.
[ 01-25-2002 01:28 PM: Message edited by: Morpheus ]
Pardon my ignorance here, this is my first post. I'm not an accomplished "hacker", I'm just learning CGI scripting so please bear with me. I do have some programming experience under my belt, mostly in VB.
I applied this hack using MultiHack 2.0, and when I fill out the info in the Statistics form I keep getting a message saying "You did not complete: FeaturedMemberTime". I don't see any empty boxes described as Featured Member Time, just Featured Member Duration. Anyone know what I could have done wrong? I'm using UBB 6.1.0.3.
quote:
Originally posted by BurntToast:
and when I fill out the info in the Statistics form I keep getting a message saying "You did not complete: FeaturedMemberTime".
You mean in the control panel?
Re-upload ubb_vars_statistics.cgi!
I re-upped everything that was generated by MultiHack (actually the whole thing is on an NT server in my house so I didn't actually have to "re-up" but rather "copy"), re-checked MultiHack's log to see if anything went wrong in the process and everything looked clean. This is my first "hack" so I was working with a virgin 6.1.0.3 script. Same error. I'll try regenerating the fixes again, but other than that do you have any ideas what would cause that error? I really want to get this Stats fix and the Who's Online fix working, other than those 2 I'm really happy with the board.
-------------------------------------
I just realized after I posted that, I'm working with Stats 1.05, not 1.1. I'm assuming there are some fundamental differences.
I'm having the same problem as above. . . any help?
quote:
Originally posted by mjelson:
I'm having the same problem as above. . . any help?
Which version of UBB and Stats Hack do you use? Please provide also a URL to your UBB.