|
Joined: May 2001
Posts: 1,042 Likes: 7
Moderator
|
Moderator
Joined: May 2001
Posts: 1,042 Likes: 7 |
Modification Name: Statistics Author(s): Brett Description: This hack displays statistics for your UBB like a separate category at the bottom of forum home and provides a detailed stats page. Demo: Click Here Requirements: UBB 6.6.x, 6.7.x Download Link: For UBB 6.6.x ONLY: https://www.ubbdev.com/ubb/upload/00006378/Statistics6.6.zip For UBB 6.7 Beta ONLY: https://www.ubbdev.com/ubb/upload/00006378/Statistics6.7.zip Credits: Tovok7, LK, Gizzy, Wierd Al Instructions / Other Info: Updates: - ubb_statistics.cgi has been completely renovated. It takes advantage of 6.x's file structure, CI's, etc for less file usage. And a few other things, 'spiced' up. (now using strict,
) - CSS Template compatible
Besides that, nothing really new. Any ideas?
|
1 member likes this:
Gizmo |
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
*goes off to test*
I hope you fixed the SSI part, I just noticed it wasn't working in my version
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
Thank you 
|
|
|
|
Joined: Jan 2000
Posts: 5,834 Likes: 20
UBBDev Owner Time Lord
|
UBBDev Owner Time Lord
Joined: Jan 2000
Posts: 5,834 Likes: 20 |
quote: Originally posted by Brett: ubb_statistics.cgi has been completely renovated. It takes advantage of 6.x's file structure, CI's, etc for less file usage. And a few other things, 'spiced' up. (now using strict, )Jeese Brett lol... Can I not half ass things anymore :x...
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
everything works except the most recent topic. He used the active topics file, but those topics aren't store in order there
|
|
|
|
Joined: Jun 2001
Posts: 2,849
Spotlight Winner
|
Spotlight Winner
Joined: Jun 2001
Posts: 2,849 |
When I installed this before it was a real resource hog. Has anything been modified to change that?
|
|
|
|
Joined: Jan 2000
Posts: 5,073
Admin Emeritus
|
Admin Emeritus
Joined: Jan 2000
Posts: 5,073 |
Code suggestions...
&TotalsLastUser: %vars_forums is your friend.
&GetLatestPost: Please use the Get* routine from ubb_lib_files, as the active topics datafile may not be in a sane state. I built the routines for a reason, you know. Also, the keys function returns in the hash order, which is never right. Use a sort and drop the reverse, as it isn't working right as-is.
&GetMemberCount: Again, please use the proper Get* routine from ubb_lib_files...
&CreateChart: Please use &DirExists.
UBB.classic: Love it or hate it, it was mine.
|
|
|
|
Joined: May 2001
Posts: 1,042 Likes: 7
Moderator
|
Moderator
Joined: May 2001
Posts: 1,042 Likes: 7 |
Thanks CC Yea, i don't know what i was thinking when i didn't sort the active topics.  On the bright side, it's better than going into each meta file and looking at each date then opening the topic file.  I updated the zip, updating those mentioned by Charles. The only file changed is ubb_statistics.cgi. RandyM: A definite Yes. 
|
|
|
|
Joined: Jan 2000
Posts: 5,834 Likes: 20
UBBDev Owner Time Lord
|
UBBDev Owner Time Lord
Joined: Jan 2000
Posts: 5,834 Likes: 20 |
quote: Originally posted by RandyM: When I installed this before it was a real resource hog. Has anything been modified to change that? Yeh well my perl scripting sucks ok  it's why I have Wierd Al and Brett on my coding team :x...
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
quote:
Originally posted by Gizzy: quote: [qb]Originally posted by RandyM: When I installed this before it was a real resource hog. Has anything been modified to change that?[/qb] Yeh well my perl scripting sucks ok  it's why I have Wierd Al and Brett on my coding team :x...
lol, he was talking about my version Brett, I get javascript errors and "Last post by in at on " I don't think that's right 
|
|
|
|
Joined: May 2001
Posts: 1,042 Likes: 7
Moderator
|
Moderator
Joined: May 2001
Posts: 1,042 Likes: 7 |
Can someone else please test this? For some reason, Al, your active topics file isn't being loaded through the GetTodaysActiveTopics sub. When i loaded your active topics file, it loaded fine. I even did a mini port to 6.5 that i still have installed and it loads fine. I dunno, maybe my sorting method is flawed... : lol 
|
|
|
|
Joined: Jun 2001
Posts: 2,849
Spotlight Winner
|
Spotlight Winner
Joined: Jun 2001
Posts: 2,849 |
I meant the versions going way back as well. I would love to be able to use this again. If it is less hoggish I'm going to give it a shot. Maybe CC can add more info about the resources used?
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
My guess is until someone turns it into a php solution, it will always be a resource hog. Just think about how many things it has to open. Every cache folder you ever had, all of those calculations that it requires. It's kinda like working without the cache if I understand correctly. Every time someone posts, it's called on the forum summary. Everytime someone views the statistics page, all of those folders are opened and closed, and calculations are made. Don't forget that this also happens anytime someone views a page that has the SSI version on it. Brett, I don't know why my board is giving you so much trouble. First the universal headers, now this 
|
|
|
|
Joined: May 2001
Posts: 1,042 Likes: 7
Moderator
|
Moderator
Joined: May 2001
Posts: 1,042 Likes: 7 |
quote: Originally posted by Weird Al: My guess is until someone turns it into a php solution, it will always be a resource hog. What do you mean? Make a PHP Stat hack? Now THAT would be a feat in and out itself. Requiring files with hashes incompatible with php. Or are you saying turn UBB into PHP? Like PHP isn't capable of being a resource hog? *coughyabbsbcough* 
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
sure, you pick the one sentence that makes no sense out of that very nice post I made 
|
|
|
|
Joined: May 2001
Posts: 1,042 Likes: 7
Moderator
|
Moderator
Joined: May 2001
Posts: 1,042 Likes: 7 |
Alright, from what i got my response is that statistics page, forum page, profile page, it doesn't matter. Each time you view those pages(cached or not), files are opened, there's other way. It just depends on how many/much is opened. This hack opens about 1/4 of previous versions, resource hog less, no? 
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
|
|
|
|
Joined: Jun 2001
Posts: 2,849
Spotlight Winner
|
Spotlight Winner
Joined: Jun 2001
Posts: 2,849 |
quote: Originally posted by Weird Al: any word on a fix? I'm slow, which fix are we waiting for?
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
the one for the most recent post
|
|
|
|
Joined: Jun 2001
Posts: 2,849
Spotlight Winner
|
Spotlight Winner
Joined: Jun 2001
Posts: 2,849 |
ubb_statistics.cgi needs to reference vars_wordlets_mods{stuff} instead of vars_wordlets{stuff}.
|
|
|
|
Joined: Jun 2001
Posts: 2,849
Spotlight Winner
|
Spotlight Winner
Joined: Jun 2001
Posts: 2,849 |
I found something that may or may not be a problem but for me it caused the right column of stats on the summary page to have the wrong size font. In ubb_statistics.cgi at line 440 you have this;<br><br><div class="ubbcode-block"><div class="ubbcode-header">Code</div><div class="ubbcode-body ubbcode-pre" ><pre><font size="1" face="$vars_style{FontFace}">$Misc[2]</font></pre></div></div>Then on line 670 you close the tags and the <td> to start the next column with this;<br><br><div class="ubbcode-block"><div class="ubbcode-header">Code</div><div class="ubbcode-body ubbcode-pre" ><pre> return qq~</font></td><td align="left" colspan="$statcolspan" width="50%" bgcolor="$vars_style{AltColumnColor1}" valign="top" class="darktable"><font color="$vars_style{TextColor}" face="$vars_style{FontFace}">~; </pre></div></div>Since the size wasn't specified at "1" again it reverted to the boards font size.
|
|
|
|
Joined: Jun 2001
Posts: 2,849
Spotlight Winner
|
Spotlight Winner
Joined: Jun 2001
Posts: 2,849 |
quote: Originally posted by Weird Al: the one for the most recent post So far this is working fine for me. Sorry about spamming the posts but each one relates to something different. I didn't want to confuse anyone (especially me).
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
 would you be able to PM me the contents of your activetopics file? noncgi/cache-********/search-index/activetopics.cgi Just want to compare them
|
|
|
|
Joined: Jun 2001
Posts: 2,849
Spotlight Winner
|
Spotlight Winner
Joined: Jun 2001
Posts: 2,849 |
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
I reuploaded the file (I hadn't modified the old one) and for some reason it now works. :-/ Thanks Randy  You obviously fixed it by sending me the file 
|
|
|
|
Joined: Jun 2001
Posts: 2,849
Spotlight Winner
|
Spotlight Winner
Joined: Jun 2001
Posts: 2,849 |
Haha, that's the way it works sometimes. This version of the stats hasn't slowed my board down at all.It seems to run really well.
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
quote: Last post by Al in For Brett at on November 20, 2003 11:29 AM Brett, anyway to get 11:29AM to be between at and on?
|
|
|
|
Joined: May 2001
Posts: 684
Code Monkey
|
Code Monkey
Joined: May 2001
Posts: 684 |
Hi,
I have the problem that I only get numbers, but all ist hacked correctly in vars_wordlets_mods.cgi....
What can I do?
Thanks d-talk
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
*sigh* I guess Brett didn't update the install.
All of the stuff you added to vars_wordlets_mods.cgi, move that to vars_wordlets.cgi
|
|
|
|
Joined: May 2001
Posts: 684
Code Monkey
|
Code Monkey
Joined: May 2001
Posts: 684 |
Thank you verry much Weird All, it works now!!!
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
you need to increase your colspan= number in the code above it... you might re-check the insructions 
|
|
|
|
Joined: May 2001
Posts: 684
Code Monkey
|
Code Monkey
Joined: May 2001
Posts: 684 |
...but there is no ColSpan in the new code...
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
the base code 
|
|
|
|
Joined: May 2001
Posts: 684
Code Monkey
|
Code Monkey
Joined: May 2001
Posts: 684 |
Hi Allen,
can you look at my files when i give you my ftp-datas? Please...
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
would you do me a favor and just try enabling one more thing to show? ie. Posts Per Forum? I think it's just a miscalculation with the ubb_stastics.cgi code
|
|
|
|
Joined: May 2001
Posts: 684
Code Monkey
|
Code Monkey
Joined: May 2001
Posts: 684 |
Hi, now it works, but i dont want to show one more thing...
Also the font is an other as on the left side... Can you look at my files?
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
to fix the font size, in ubb_statistics.cgi FIND: return qq~</font></td><td align="left" colspan="$statcolspan" width="50%" bgcolor="$vars_style{AltColumnColor1}" valign="top" class="darktable"><font color="$vars_style{TextColor}" face="$vars_style{FontFace}">~; REPLACE WITH: return qq~</font></td><td align="left" colspan="$statcolspan" width="50%" bgcolor="$vars_style{AltColumnColor1}" valign="top" class="darktable"><font color="$vars_style{TextColor}" face="$vars_style{FontFace}" size="$vars_style{FDTextSize}">~; Now this is just something to test, find $Misc[2] .= &Template($vars_wordlets{statistics_last_post}, { DATE => &DateFormatJS($Statistics{LastestPost}->[12], $Statistics{LastestPost}->[13], 1, 1, 1, 1), NAME => $Statistics{LastestPost}[15], SUBJECT => qq~<a href="$ULTIMATEBB?ubb=get_topic;f=$f;t=$t"><b>$Statistics{LastestPost}[3]</b></a>~ }); ADD AFTER: The first part will work, the second part is untested
|
|
|
|
Joined: May 2001
Posts: 684
Code Monkey
|
Code Monkey
Joined: May 2001
Posts: 684 |
|
|
|
|
Joined: Jan 2000
Posts: 5,834 Likes: 20
UBBDev Owner Time Lord
|
UBBDev Owner Time Lord
Joined: Jan 2000
Posts: 5,834 Likes: 20 |
It looks just fine by what I see... If there is data for it to be side by side it is, i see just as much data on the left than on the right...
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
brett, one last bug.
In the title of the statistics page, it says "Statistics", you might want to fix that wordlet in the install
|
|
|
|
Joined: Jun 2001
Posts: 2,849
Spotlight Winner
|
Spotlight Winner
Joined: Jun 2001
Posts: 2,849 |
<div class="ubbcode-block"><div class="ubbcode-header">Quote</div><div class="ubbcode-body">quote:</font><hr />Originally posted by d-talk:<br><span style="font-weight: bold">Hi, now it works, but i dont want to show one more thing...<br><br>Also the font is an other as on the left side...<br>Can you look at my files?</span><hr /></blockquote> <blockquote><font class="small">quote:<br>[qb]Originally posted by RandyM:<br><span style="font-weight: bold">I found something that may or may not be a problem but for me it caused the right column of stats on the summary page to have the wrong size font.<br><br>In ubb_statistics.cgi at line 440 you have this;<br><br><div class="ubbcode-block"><div class="ubbcode-header">Code</div><div class="ubbcode-body ubbcode-pre" ><pre><font size="1" face="$vars_style{FontFace}">$Misc[2]</font></pre></div></div>Then on line 670 you close the tags and the <td> to start the next column with this;<br><br><div class="ubbcode-block"><div class="ubbcode-header">Code</div><div class="ubbcode-body ubbcode-pre" ><pre> return qq~</font></td><td align="left" colspan="$statcolspan" width="50%" bgcolor="$vars_style{AltColumnColor1}" valign="top" class="darktable"><font color="$vars_style{TextColor}" face="$vars_style{FontFace}">~; </pre></div></div>Since the size wasn't specified at "1" again it reverted to the boards font size.</span>[/qb]</div></div>
|
|
|
|
Joined: Jan 2000
Posts: 5,834 Likes: 20
UBBDev Owner Time Lord
|
UBBDev Owner Time Lord
Joined: Jan 2000
Posts: 5,834 Likes: 20 |
One thing that I think would be beneficial... Allen's script for total members: https://ubbdev.com/ubbcgi/ultimatebb.cgi?ubb=get_topic;f=33;t=000114;p=1#000008 possibly integrate the members to reflect that as well, as an option anyway...
|
|
|
|
Joined: Feb 2001
Posts: 273
Member
|
Member
Joined: Feb 2001
Posts: 273 |
I'm glad to see that there is motion in the development of my old hack. You did great work in code improvement. Btw, the sub PerformCheckUp is no longer needed and save to remove. Thanks for crediting me.
|
|
|
|
Joined: May 2000
Posts: 1,168
Member
|
Member
Joined: May 2000
Posts: 1,168 |
Quick question. If I want to add a break between the stats and the bottom of the main section, where do I go to add that? Other than that, everything runs perfectly!
- MT
|
|
|
|
Joined: May 2000
Posts: 1,168
Member
|
Member
Joined: May 2000
Posts: 1,168 |
I also noted that there is a problem with "Last Post By..." It doesn't update like it's supposed to. Any suggestions?
- MT
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
Could we have a link to your board and if it requires you to log in, a test account?
|
|
|
|
Joined: May 2000
Posts: 1,168
Member
|
Member
Joined: May 2000
Posts: 1,168 |
Man, I wish I could give you one. I'm working on an Intranet site that is behind some pretty big guns. What is it that you need to see? Maybe I can email you a screenshot?
- MT
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
Well what do you mean doesn't update like it's supposed to?
|
|
|
|
Joined: May 2000
Posts: 1,168
Member
|
Member
Joined: May 2000
Posts: 1,168 |
Um... nevermind. Man, I overlooked something very obvious.
- MT
|
|
|
|
Joined: May 2000
Posts: 1,168
Member
|
Member
Joined: May 2000
Posts: 1,168 |
Oh, I did forget to ask. I'd like to have a break in between the main board and the stats block. Anyone have any quick suggestions?
- MT
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
Try to add $TBB $TBT before the stats part in sub PageBottom of public_forum_summary.pl
|
|
|
|
Joined: May 2000
Posts: 1,168
Member
|
Member
Joined: May 2000
Posts: 1,168 |
Sorry, can't seem to get it to work.....
- MT
|
|
|
|
Joined: Jun 2001
Posts: 2,849
Spotlight Winner
|
Spotlight Winner
Joined: Jun 2001
Posts: 2,849 |
quote: Originally posted by Matt Torbin: Sorry, can't seem to get it to work.....
- MT That's what I did here <--- click this... I made other changes to the summary page before I added the stats but that is basically what I did.
|
|
|
|
Joined: May 2001
Posts: 1,042 Likes: 7
Moderator
|
Moderator
Joined: May 2001
Posts: 1,042 Likes: 7 |
I have updated the zip file, namely only the ubb_statistics.cgi file fixing the triple column bug and font. Matt: The html in the summary is located in the ubb_statistics file, not the public_forum_summary. The forum part in particular is around line 428. add: $TBB $TBT
above: <tr bgcolor="$vars_style{CategoryStripColor}" class="tdheader"> That should work
|
|
|
|
Joined: Jan 2000
Posts: 5,834 Likes: 20
UBBDev Owner Time Lord
|
UBBDev Owner Time Lord
Joined: Jan 2000
Posts: 5,834 Likes: 20 |
quote: Originally posted by Gizzy: One thing that I think would be beneficial... Allen's script for total members: https://ubbdev.com/ubbcgi/ultimatebb.cgi?ubb=get_topic;f=33;t=000114;p=1#000008 possibly integrate the members to reflect that as well, as an option anyway... :hint:
|
|
|
|
Joined: Jun 2001
Posts: 2,849
Spotlight Winner
|
Spotlight Winner
Joined: Jun 2001
Posts: 2,849 |
I did it in the summary page like this; sub PageBottom { # Fixed for strict - 20030426
my $Bottom = &DisplayStats . qq~ $TBB
$TBT I use graphics around the tables so I didn't have to add a after $TBB
|
|
|
|
Joined: May 2001
Posts: 1,042 Likes: 7
Moderator
|
Moderator
Joined: May 2001
Posts: 1,042 Likes: 7 |
Added a 6.7 Download Link.
Only thing new is the spider url friendness thingy. Trimmed up some code here and there.
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
Originally posted by Gizzy: quote: [qb]Originally posted by Gizzy: One thing that I think would be beneficial... Allen's script for total members: https://ubbdev.com/ubbcgi/ultimatebb.cgi?ubb=get_topic;f=33;t=000114;p=1#000008 possibly integrate the members to reflect that as well, as an option anyway...[/qb] :hint:
this is now a standard option in ubb_lib.cgi in 6.7 
|
|
|
|
Joined: Jan 2000
Posts: 5,834 Likes: 20
UBBDev Owner Time Lord
|
UBBDev Owner Time Lord
Joined: Jan 2000
Posts: 5,834 Likes: 20 |
I know :x... I saw the notice just for you lol...
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
The install instructions for 6.7 have a buglet or 2, just needs to be updated for 6.7 in regards to finding sections of code in ubb: $location = qq($vars_wordlets_pntf{pntf_forum}: <a href="$ULTIMATEBB{"ubb=forum;f=$f"}">) . (&GetForumRecord($f))[1] . qq(</a>); I think there's one other place, but I can't remember right now if I caught one other, but it was the same type thing  Nice work 
|
|
|
|
Joined: May 2001
Posts: 1,042 Likes: 7
Moderator
|
Moderator
Joined: May 2001
Posts: 1,042 Likes: 7 |
ZIP file updated with two bugfixs in public_display_profile.pl and public_pntf_admin.pl. Thanks Allen! 
|
1 member likes this:
Gizmo |
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
Welcome I've installed this twice and each time I get a 500 ISE on the ultimatebb page. Anyone else seen this? I've chmodded all files correctly 
|
|
|
|
Joined: Jan 2000
Posts: 5,834 Likes: 20
UBBDev Owner Time Lord
|
UBBDev Owner Time Lord
Joined: Jan 2000
Posts: 5,834 Likes: 20 |
I got it working just fine on my test board.
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
Would be nice to see it functioning on a 6.7 site, any takers?
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
I have seen this working on d-talk's test site, but he's added colorforums, so it's been removed
|
|
|
|
Joined: Jan 2000
Posts: 5,834 Likes: 20
UBBDev Owner Time Lord
|
UBBDev Owner Time Lord
Joined: Jan 2000
Posts: 5,834 Likes: 20 |
I'll have it up by the weekend.
|
|
|
|
Joined: Jan 2000
Posts: 5,834 Likes: 20
UBBDev Owner Time Lord
|
UBBDev Owner Time Lord
Joined: Jan 2000
Posts: 5,834 Likes: 20 |
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
hmm.. thank you  Did you make any changes from the default install? I have no idea why I got a 500 ise
|
|
|
|
Joined: Jan 2000
Posts: 5,834 Likes: 20
UBBDev Owner Time Lord
|
UBBDev Owner Time Lord
Joined: Jan 2000
Posts: 5,834 Likes: 20 |
No changes; did it exactly as the file sais. Only change I did was filing the data in vars_wordlets down in alphabetacal order...
|
|
|
|
Joined: Sep 2000
Posts: 159
Member
|
Member
Joined: Sep 2000
Posts: 159 |
Worked perfectly for me on a new 6.7 install.
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
ok, thanks... I'll try it again 
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
Found my mistake, thank you 
|
|
|
|
Joined: Jan 2000
Posts: 5,834 Likes: 20
UBBDev Owner Time Lord
|
UBBDev Owner Time Lord
Joined: Jan 2000
Posts: 5,834 Likes: 20 |
hehe, i have to ask; what was it...
|
|
|
|
Joined: Aug 2001
Posts: 103
Member
|
Member
Joined: Aug 2001
Posts: 103 |
The download link is gone 
|
|
|
|
Joined: Jan 2000
Posts: 5,834 Likes: 20
UBBDev Owner Time Lord
|
UBBDev Owner Time Lord
Joined: Jan 2000
Posts: 5,834 Likes: 20 |
|
|
|
|
Joined: May 2001
Posts: 1,042 Likes: 7
Moderator
|
Moderator
Joined: May 2001
Posts: 1,042 Likes: 7 |
Sorry, seems hypermart ended all free accounts recently. Gotta get my server up and going so i don't have to worry about these issues. 
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
Originally posted by Brett: Sorry, seems hypermart ended all free accounts recently. Gotta get my server up and going so i don't have to worry about these issues. FlareUpload 
|
|
|
|
Joined: Jan 2000
Posts: 5,834 Likes: 20
UBBDev Owner Time Lord
|
UBBDev Owner Time Lord
Joined: Jan 2000
Posts: 5,834 Likes: 20 |
Originally posted by Brett: Sorry, seems hypermart ended all free accounts recently. Gotta get my server up and going so i don't have to worry about these issues. See the wink? Can we say NS35? :x...
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
For those who want this to work with the fake member total, do this. In ubb_statistics.cgi, FIND: ADD AFTER: &RequireCode("$vars_config{CGIPath}/ubb_forum_summary.cgi"); FIND: sub GetMemberCount { $Statistics{TotalMembers} = &GetMemberTotal; } # endsub REPLACE WITH: sub GetMemberCount { if($vars_misc{ShowFakeMemberTotal} == 1) { my @newest = &GetNewestMember; $Statistics{TotalMembers} = $newest[1] + 0; } else { $Statistics{TotalMembers} = &GetMemberTotal; } } # endsub
|
|
|
|
Joined: Jan 2000
Posts: 5,834 Likes: 20
UBBDev Owner Time Lord
|
UBBDev Owner Time Lord
Joined: Jan 2000
Posts: 5,834 Likes: 20 |
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...
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
Also, for those who'd rather have " Page Views for March 2004:" than "Page Views 2004-03:" In ubb_statistics.cgi FIND: my $bar = int(($Statistics{Hits}{$_} / $Statistics{Hits}{TotalViews}) * $vars_statistics{MaxBarLength}); ADD AFTER: my $when = $_; my @when = split(/-/, $when); $when[1] = $when[1] + 0; my $month = qq~month_~ . $when[1]; FIND: $vars_wordlets{statistics_monthly_hits} $_: REPLACE WITH: $vars_wordlets{statistics_monthly_hits} for $vars_wordlets_date{$month} $when[0]:
|
|
|
|
Joined: May 2001
Posts: 1,042 Likes: 7
Moderator
|
Moderator
Joined: May 2001
Posts: 1,042 Likes: 7 |
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.
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
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
|
|
|
|
Joined: Apr 2004
Posts: 21
Junior Member
|
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!
|
|
|
|
Joined: May 2001
Posts: 1,042 Likes: 7
Moderator
|
Moderator
Joined: May 2001
Posts: 1,042 Likes: 7 |
Make sure you made and uploaded the changes in ubb_forum_summary.cgi. #################### # In ubb_forum_summary.cgi #################### Find: # ############## &set_page_elements;
############## # Add Below: # ############## &RequireCode("$vars_config{CGIPath}/ubb_statistics.cgi");
|
|
|
|
Joined: Apr 2004
Posts: 21
Junior Member
|
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 !
|
|
|
|
Joined: May 2001
Posts: 43
User
|
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!
|
|
|
|
Joined: Jan 2000
Posts: 5,834 Likes: 20
UBBDev Owner Time Lord
|
UBBDev Owner Time Lord
Joined: Jan 2000
Posts: 5,834 Likes: 20 |
Did you upload the updated vars_wordlets.cgi file?
|
|
|
|
Joined: May 2001
Posts: 43
User
|
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?
|
|
|
|
Joined: Nov 2003
Posts: 156
Member
|
Member
Joined: Nov 2003
Posts: 156 |
Help???
Undefined subroutine &main::PageBottom called at CGIPath/ubb_forum_summary.cgi line 374.
|
|
|
|
Joined: Nov 2003
Posts: 156
Member
|
Member
Joined: Nov 2003
Posts: 156 |
I Found the problem to be in the public_forum_summary.pl
|
|
|
|
Joined: May 2001
Posts: 1,042 Likes: 7
Moderator
|
Moderator
Joined: May 2001
Posts: 1,042 Likes: 7 |
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?
|
|
|
|
Joined: May 2001
Posts: 1,042 Likes: 7
Moderator
|
Moderator
Joined: May 2001
Posts: 1,042 Likes: 7 |
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. 
|
|
|
|
Joined: Jan 2000
Posts: 5,834 Likes: 20
UBBDev Owner Time Lord
|
UBBDev Owner Time Lord
Joined: Jan 2000
Posts: 5,834 Likes: 20 |
MMMK, how about publishing the changes so those of us running it can update our boards without having to rehack everything :x...
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
reupload ubb_statistics.cgi 
|
|
|
|
Joined: Oct 2000
Posts: 2,667
Veteran
|
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?
|
|
|
|
Joined: Sep 2001
Posts: 672
Member
|
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..
|
|
|
|
Joined: May 2001
Posts: 1,042 Likes: 7
Moderator
|
Moderator
Joined: May 2001
Posts: 1,042 Likes: 7 |
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: # before the print &FeaturedMember;
# this variable holds featured $Statistics{FeaturedMember}
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
Brett, <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 <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)
|
|
|
|
Joined: Sep 2001
Posts: 672
Member
|
Member
Joined: Sep 2001
Posts: 672 |
Originally posted by Brett: Havoq: # 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
|
|
|
|
Joined: Sep 2001
Posts: 672
Member
|
Member
Joined: Sep 2001
Posts: 672 |
N/M, figured it out: open ubb_forum_summary.cgiFind:Add Above:
|
|
|
|
Joined: Sep 2001
Posts: 672
Member
|
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...
|
|
|
|
Joined: Sep 2001
Posts: 672
Member
|
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....
|
|
|
|
Joined: Aug 2004
Posts: 20
Junior Member
|
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
|
|
|
|
Joined: Dec 2001
Posts: 20
Junior Member
|
Junior Member
Joined: Dec 2001
Posts: 20 |
Help! Just installed the stats package on a 6.7 board. 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.
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
try editing the following line in ubb_statistics.cgi $g_month = $raffle[0] . ']([' . $raffle[1] . "|[$back" . '-12]'; to become $g_month = $raffle[0] . ']([' . $raffle[1] . "|[$back" . '-12])';
|
|
|
|
Joined: Dec 2001
Posts: 20
Junior Member
|
Junior Member
Joined: Dec 2001
Posts: 20 |
Praise to Ian!
That did it.
|
|
|
|
Joined: Dec 2001
Posts: 20
Junior Member
|
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.
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
no it does not. refer to my reply to you in the other topic.
|
|
|
|
Joined: Dec 2001
Posts: 20
Junior Member
|
Junior Member
Joined: Dec 2001
Posts: 20 |
Maybe the "hits hack" is what i should try.
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
that would give you totals, but it wouldn't tell you how many in a certain month
|
|
|
|
Joined: May 2001
Posts: 1,042 Likes: 7
Moderator
|
Moderator
Joined: May 2001
Posts: 1,042 Likes: 7 |
Updated the zip file per Ian's fix. Thankya much! 
|
|
|
|
Joined: Sep 2005
Posts: 136
Journeyman
|
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!
|
|
|
|
Joined: May 2001
Posts: 1,042 Likes: 7
Moderator
|
Moderator
Joined: May 2001
Posts: 1,042 Likes: 7 |
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.
|
|
|
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.
|
|
Posts: 87
Joined: December 2001
|
|
Forums63
Topics37,575
Posts293,931
Members13,824
|
Most Online6,139 Sep 21st, 2024
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|