Previous Thread
Next Thread
Print Thread
Rate Thread
Page 3 of 3 1 2 3
Re: [6.6 - 6.7] [beta] Statistics #201347 03/28/2004 7:29 PM
Joined: Jan 2000
Posts: 5,787
Gizmo Offline
UBB.Dev / UBB.Wiki Owner
Time Lord
Offline
UBB.Dev / UBB.Wiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,787
Lol, works perfectly. Be sure to clear your cache however... I hated having my total members up top using the fakemembertotal but the stats using the standard... Made it a pain to prune heh...


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, UBB.Sitemaps
Sponsored Links
Re: [6.6 - 6.7] [beta] Statistics #201348 03/28/2004 7:55 PM
Joined: Jan 2003
Posts: 3,456
Ian Spence Offline
Master Hacker
Offline
Master Hacker
Joined: Jan 2003
Posts: 3,456
Also, for those who'd rather have " Page Views for March 2004:" than "Page Views 2004-03:"

In ubb_statistics.cgi
FIND:
Code
			my $bar = int(($Statistics{Hits}{$_} / $Statistics{Hits}{TotalViews}) * $vars_statistics{MaxBarLength});
ADD AFTER:
Code
			my $when = $_;
my @when = split(/-/, $when);
$when[1] = $when[1] + 0;
my $month = qq~month_~ . $when[1];
FIND:
Code
$vars_wordlets{statistics_monthly_hits} $_:
REPLACE WITH:
Code
$vars_wordlets{statistics_monthly_hits} for $vars_wordlets_date{$month} $when[0]:

Re: [6.6 - 6.7] [beta] Statistics #201349 04/01/2004 12:59 PM
Joined: May 2001
Posts: 1,042
Brett Offline OP
Moderator
OP Offline
Moderator
Joined: May 2001
Posts: 1,042
Zip file updated with the fake member update. And the page views for month, year is now based on what user preference the date is on. So depending, you could get 04-2004 or April 2004. And there's other misc updates mainly with the spidering of urls.

The only file to update is ubb_statistics.cgi.

Re: [6.6 - 6.7] [beta] Statistics #201350 04/01/2004 5:23 PM
Joined: Jan 2003
Posts: 3,456
Ian Spence Offline
Master Hacker
Offline
Master Hacker
Joined: Jan 2003
Posts: 3,456
Brett, I was wondering if this would help make the hack less server intensive.

For the page views, how about making it so it uses a vars_statistics_views.cgi that saves the pageviews of older months, as my pageviews from 3 months ago won't change. This would make it so you would only open the one file for all those previous months, instead of at least one file per month. For really old sites that still use this (ie netwerkin), this could lead to a much better experience, wouldn't it?

That way, only the current month would need to have the pageviews be calculated, as it's always changing. Once the month changes, that is added to the vars file and you start the new month.


Sorry in advance if that's a really dumb idea

Re: [6.6 - 6.7] [beta] Statistics #201351 04/04/2004 10:26 PM
Joined: Apr 2004
Posts: 21
HamrWebDesign Offline
Junior Member
Offline
Junior Member
Joined: Apr 2004
Posts: 21
I'm having issues with this hack and my board is down!

The funny thing is that the statistics page is working fine but I am getting an error screen from my forum home.

Undefined subroutine &main::DisplayStats called at NonCGIPath/Templates/public_forum_summary.pl line 409.

http://www.firearmforums.com/cgi/ultimatebb.cgi

Please help!

Sponsored Links
Re: [6.6 - 6.7] [beta] Statistics #201352 04/04/2004 10:34 PM
Joined: May 2001
Posts: 1,042
Brett Offline OP
Moderator
OP Offline
Moderator
Joined: May 2001
Posts: 1,042
Make sure you made and uploaded the changes in ubb_forum_summary.cgi.
Code
####################
# In ubb_forum_summary.cgi
####################
Find: #
##############
&set_page_elements;

##############
# Add Below: #
##############
&RequireCode("$vars_config{CGIPath}/ubb_statistics.cgi");

Re: [6.6 - 6.7] [beta] Statistics #201353 04/04/2004 10:46 PM
Joined: Apr 2004
Posts: 21
HamrWebDesign Offline
Junior Member
Offline
Junior Member
Joined: Apr 2004
Posts: 21
Yeah ... I'm dumarse and uploaded that file to my non-cgi directory instead of my cgi directory. Problem fixed. Thank you so much !

Re: [6.6 - 6.7] [beta] Statistics #201354 04/23/2004 5:31 PM
Joined: May 2001
Posts: 43
Jango Offline
User
Offline
User
Joined: May 2001
Posts: 43
Hi, i've made a test installing this hack on my 6.6 boards and everything seems to be ok but for some issues: the statistics link in the upper line doesn't appear, just the space | |, and i cannot apply my ubb style to the statistics page, what could be wrong? Thanks!

Re: [6.6 - 6.7] [beta] Statistics #201355 04/23/2004 7:28 PM
Joined: Jan 2000
Posts: 5,787
Gizmo Offline
UBB.Dev / UBB.Wiki Owner
Time Lord
Offline
UBB.Dev / UBB.Wiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,787
Did you upload the updated vars_wordlets.cgi file?


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, UBB.Sitemaps
Re: [6.6 - 6.7] [beta] Statistics #201356 04/27/2004 10:46 PM
Joined: May 2001
Posts: 43
Jango Offline
User
Offline
User
Joined: May 2001
Posts: 43
Hi, yes, i updated it. I've tested it again and i get the same problems, in the Style Template Associations the statistics doesn't appear.
The docummentation says the Style Template Associations is located in: Primary Settings -> Style Templates -> Edit Style but in the 6.6 is located in Styles -> Style Associations. Is that wrong? or the docummentation is wrong?

Sponsored Links
Re: [6.6 - 6.7] [beta] Statistics #201357 05/05/2004 9:56 PM
Joined: Nov 2003
Posts: 156
PhillipBurum Offline
Member
Offline
Member
Joined: Nov 2003
Posts: 156
Help???

Undefined subroutine &main::PageBottom called at CGIPath/ubb_forum_summary.cgi line 374.

Re: [6.6 - 6.7] [beta] Statistics #201358 05/05/2004 10:24 PM
Joined: Nov 2003
Posts: 156
PhillipBurum Offline
Member
Offline
Member
Joined: Nov 2003
Posts: 156
I Found the problem to be in the public_forum_summary.pl

Re: [6.6 - 6.7] [beta] Statistics #201359 05/06/2004 1:15 AM
Joined: May 2001
Posts: 1,042
Brett Offline OP
Moderator
OP Offline
Moderator
Joined: May 2001
Posts: 1,042
That's definitely not the stats hack. I would say rehack from a fresh file.

What is isle 6.7? Why would you need to change ubb_statistics.cgi?

Re: [6.6 - 6.7] [beta] Statistics #201360 06/06/2004 4:49 AM
Joined: May 2001
Posts: 1,042
Brett Offline OP
Moderator
OP Offline
Moderator
Joined: May 2001
Posts: 1,042
6.7 zip updated with some new adjustments.

-Last topic now directly links to last post.
-Page views only tracks 6 months instead of loading all counter files that may extend further. smile

Re: [6.6 - 6.7] [beta] Statistics #201361 06/06/2004 5:18 PM
Joined: Jan 2000
Posts: 5,787
Gizmo Offline
UBB.Dev / UBB.Wiki Owner
Time Lord
Offline
UBB.Dev / UBB.Wiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,787
MMMK, how about publishing the changes so those of us running it can update our boards without having to rehack everything :x...


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, UBB.Sitemaps
Re: [6.6 - 6.7] [beta] Statistics #201362 06/06/2004 6:13 PM
Joined: Jan 2003
Posts: 3,456
Ian Spence Offline
Master Hacker
Offline
Master Hacker
Joined: Jan 2003
Posts: 3,456
reupload ubb_statistics.cgi smile

Re: [6.6 - 6.7] [beta] Statistics #201363 06/20/2004 8:11 AM
Joined: Oct 2000
Posts: 2,667
Charles Offline
Veteran
Offline
Veteran
Joined: Oct 2000
Posts: 2,667
I would to have, instead of averages, posts today, yesterday, posts this week, last week and posts this month, last month is it possible to gather such data?

thanks


Do you believe in love at first sight,
or should I walk by again?
Re: [6.6 - 6.7] [beta] Statistics #201364 07/11/2004 1:43 PM
Joined: Sep 2001
Posts: 672
havoq Offline
Member
Offline
Member
Joined: Sep 2001
Posts: 672
How would one go about displaying the featured member at the top of public_forum_summary? I tried calling $DisplayFH like at the bottom, that didnt work, then I tried a print command right from ubb_statistics.cgi. No go...

Any ideas..

Re: [6.6 - 6.7] [beta] Statistics #201365 07/16/2004 4:01 AM
Joined: May 2001
Posts: 1,042
Brett Offline OP
Moderator
OP Offline
Moderator
Joined: May 2001
Posts: 1,042
Charles: Not without diving deeper into the files, but that would require a ton more load, depending on the size of the forum. Because it would need to actually look at the date. The best i could think of is to create a maintaince routine to calculate all posts dates in a forum and append it to a main file with each row being week 1, week 2, so on, seperated by year. And then, increment by new posts. That would be the easiest on load.

Havoq:
Code
# before the print
&FeaturedMember;

# this variable holds featured
$Statistics{FeaturedMember}

Re: [6.6 - 6.7] [beta] Statistics #201366 07/16/2004 9:09 PM
Joined: Jan 2003
Posts: 3,456
Ian Spence Offline
Master Hacker
Offline
Master Hacker
Joined: Jan 2003
Posts: 3,456
Brett,

Code
		<tr bgcolor="$vars_style{AltColumnColor2}" class="darktable">
<td width="45%" valign="top">
<font size="$vars_style{TextSize}" face="$vars_style{FontFace}">
$vars_wordlets{statistics_average_posts}
</font>
</td>
<td valign="top">
<font size="$vars_style{TextSize}" face="$vars_style{FontFace}">
$Statistics{ForumStats}[2]
</font>
</td>
</tr>

<tr bgcolor="$vars_style{AltColumnColor1}" class="lighttable">
<td width="45%" valign="top">
<font size="$vars_style{TextSize}" face="$vars_style{FontFace}">
$vars_wordlets{statistics_average_topic}
</font>
</td>
<td valign="top">
<font size="$vars_style{TextSize}" face="$vars_style{FontFace}">
$Statistics{ForumStats}[1]
</font>
</td>
</tr>~;
should be

Code
		<tr bgcolor="$vars_style{AltColumnColor2}" class="darktable">
<td width="45%" valign="top">
<font size="$vars_style{TextSize}" face="$vars_style{FontFace}">
$vars_wordlets{statistics_average_posts}
</font>
</td>
<td valign="top">
<font size="$vars_style{TextSize}" face="$vars_style{FontFace}">
$Statistics{Average}[2]
</font>
</td>
</tr>

<tr bgcolor="$vars_style{AltColumnColor1}" class="lighttable">
<td width="45%" valign="top">
<font size="$vars_style{TextSize}" face="$vars_style{FontFace}">
$vars_wordlets{statistics_average_topic}
</font>
</td>
<td valign="top">
<font size="$vars_style{TextSize}" face="$vars_style{FontFace}">
$Statistics{Average}[1]
</font>
</td>
</tr>~;
I believe (changing ForumStats to Average)

Re: [6.6 - 6.7] [beta] Statistics #201367 07/17/2004 11:35 AM
Joined: Sep 2001
Posts: 672
havoq Offline
Member
Offline
Member
Joined: Sep 2001
Posts: 672
Quote
Originally posted by Brett:

Havoq:
Code
# before the print
&FeaturedMember;
# this variable holds featured
$Statistics{FeaturedMember}


So how do you print it in forum summary? I've tried multiple things. qq~, print command, displayFH = qq~, etc etc

Re: [6.6 - 6.7] [beta] Statistics #201368 07/17/2004 11:47 AM
Joined: Sep 2001
Posts: 672
havoq Offline
Member
Offline
Member
Joined: Sep 2001
Posts: 672
N/M, figured it out:

open ubb_forum_summary.cgi

Find:
Code
$ThisHTML = $Header;
Add Above:
Code
&FeaturedMember;

Re: [6.6 - 6.7] [beta] Statistics #201369 07/18/2004 11:30 AM
Joined: Sep 2001
Posts: 672
havoq Offline
Member
Offline
Member
Joined: Sep 2001
Posts: 672
How many hours can the featured member stay? Whats the max? Because last night, I set it for a specific member at 12:01am. However, it switched members this morning I think around 12pm. Which means thats only 12 hours. I set it to update every 24. Hmmmm...

Re: [6.6 - 6.7] [beta] Statistics #201370 07/20/2004 6:07 PM
Joined: Sep 2001
Posts: 672
havoq Offline
Member
Offline
Member
Joined: Sep 2001
Posts: 672
My featured member isn't even working correctly. I keep setting the user #, and then 1 hour for the random rotation. After an hour, it keeps setting itself to member #1, which is me, and it doesnt change. Very strange....

Re: [6.6 - 6.7] [beta] Statistics #201371 09/24/2004 4:35 AM
Joined: Aug 2004
Posts: 20
radrico Offline
Junior Member
Offline
Junior Member
Joined: Aug 2004
Posts: 20
usually i have problems when i try to modify mine, but this one worked fine! Only problem i found was somehow it doesnt space from my last forum it just kinda goes right into it and looks crammed.. any help on that?

http://www.neverendingrejection.com/cgi-bin/ultimatebb.cgi

Re: [6.6 - 6.7] [beta] Statistics #201372 03/11/2005 3:31 PM
Joined: Dec 2001
Posts: 20
jsteinborn Offline
Junior Member
Offline
Junior Member
Joined: Dec 2001
Posts: 20
Help!

Just installed the stats package on a 6.7 board.

Code
An error has occurred: 

Unmatched ( in regex; marked by <-- HERE in m/(2005|2004)-( <-- HERE [01]([0-3]|[10-12])(-dynamic|-cache|).cgi$/ at CGIPath/ubb_statistics.cgi line 684.

Re: [6.6 - 6.7] [beta] Statistics #201373 03/11/2005 3:49 PM
Joined: Jan 2003
Posts: 3,456
Ian Spence Offline
Master Hacker
Offline
Master Hacker
Joined: Jan 2003
Posts: 3,456
try editing the following line in ubb_statistics.cgi

Code
$g_month = $raffle[0] . ']([' . $raffle[1] . "|[$back" . '-12]';
to become

Code
$g_month = $raffle[0] . ']([' . $raffle[1] . "|[$back" . '-12])';

Re: [6.6 - 6.7] [beta] Statistics #201374 03/11/2005 4:28 PM
Joined: Dec 2001
Posts: 20
jsteinborn Offline
Junior Member
Offline
Junior Member
Joined: Dec 2001
Posts: 20
Praise to Ian!

That did it.

Re: [6.6 - 6.7] [beta] Statistics #201375 03/11/2005 4:42 PM
Joined: Dec 2001
Posts: 20
jsteinborn Offline
Junior Member
Offline
Junior Member
Joined: Dec 2001
Posts: 20
Does "Statistics" show page views for a given forum? For instance i want to see which forums are the most popular.

Re: [6.6 - 6.7] [beta] Statistics #201376 03/11/2005 4:57 PM
Joined: Jan 2003
Posts: 3,456
Ian Spence Offline
Master Hacker
Offline
Master Hacker
Joined: Jan 2003
Posts: 3,456
no it does not. refer to my reply to you in the other topic.

Re: [6.6 - 6.7] [beta] Statistics #201377 03/11/2005 5:05 PM
Joined: Dec 2001
Posts: 20
jsteinborn Offline
Junior Member
Offline
Junior Member
Joined: Dec 2001
Posts: 20
Maybe the "hits hack" is what i should try.

Re: [6.6 - 6.7] [beta] Statistics #201378 03/11/2005 5:21 PM
Joined: Jan 2003
Posts: 3,456
Ian Spence Offline
Master Hacker
Offline
Master Hacker
Joined: Jan 2003
Posts: 3,456
that would give you totals, but it wouldn't tell you how many in a certain month

Re: [6.6 - 6.7] [beta] Statistics #201379 03/13/2005 2:55 PM
Joined: May 2001
Posts: 1,042
Brett Offline OP
Moderator
OP Offline
Moderator
Joined: May 2001
Posts: 1,042
Updated the zip file per Ian's fix. Thankya much! smile

Re: [6.6 - 6.7] [beta] Statistics #201380 02/20/2006 7:38 PM
Joined: Sep 2005
Posts: 136
AshtarRose Offline
Journeyman
Offline
Journeyman
Joined: Sep 2005
Posts: 136
An error has occurred:

/(2006|2005)-([01]([0-2]|[9-12]))(-dynamic|-cache|).cgi$/: invalid [] range "9-1" in regexp at CGIPath/ubb_statistics.cgi line 684.

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

Re: [6.6 - 6.7] [beta] Statistics #201381 02/20/2006 11:45 PM
Joined: May 2001
Posts: 1,042
Brett Offline OP
Moderator
OP Offline
Moderator
Joined: May 2001
Posts: 1,042
AshtarRose / Any who are receiving this error,

I have updated the zip file, with ubb_statistics.cgi having the only changes to fix this bug once and for all.

https://www.ubbdev.com/ubb/upload/00006378/Statistics6.7.zip

Let me know if something comes up.

Page 3 of 3 1 2 3

Donate Today!
Donate via PayPal

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.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Pilgrim
Pilgrim
NH, USA
Posts: 190
Joined: June 2000
Forum Statistics
Forums63
Topics37,493
Posts293,671
Members13,829
Most Online5,166
Sep 15th, 2019
Top Posters(All Time)
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,787
Greg Hard 4,625
Top Posters(30 Days)
isaac 4
DCPhil 2
Gizmo 1
Today's Statistics
Currently Online 745
Topics Created 0
Posts Made 0
Users Online 1
Birthdays 13
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2019 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 7.7.4
(Snapshot build 20191111.dev)
Responsive Width:

PHP: 5.4.45 Page Time: 0.071s Queries: 15 (0.018s) Memory: 3.5231 MB (Peak: 3.8982 MB) Data Comp: Zlib Server Time: 2019-11-14 10:47:24 UTC
Valid HTML 5 and Valid CSS