vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Statistics Modifications - Dream's Forum Statistics (https://vborg.vbsupport.ru/showthread.php?t=140812)

Dream 12-04-2007 02:16 AM

I updated the mod with TomasDR fix, and put a thanks notice for him on statistics.php.

Also I gave him permission to take this mod, modify it and release his own. I just won't add his addons by default because I won't be able to support them.

Elenna 12-04-2007 11:24 AM

Thanks, Dream and TomasDR!

To upgrade, do we need to replace all files, or just the statistics.php? And reimport, or no?

Dream 12-04-2007 01:54 PM

just statistics.php

Saviour 12-04-2007 03:07 PM

Dream...

I prefer this mod over another I was using...simply becuase it doesn't intrude on any of the forum pages...it has its own page...very nice feature.

Since you have incorporated the "Thank You" stats in this mod...it would only seem fair that you include the "Groan" stats as well from this mod: https://vborg.vbsupport.ru/showthread.php?t=129975

Hope to hear back from you soon on this one, Dream...

Dream 12-04-2007 03:11 PM

Tomas seems to have working code for the Groan hack, I won't add it because I wouldn't use it, sorry.

Saviour 12-04-2007 03:26 PM

So how do I get this code to use in your mod?

Dream 12-04-2007 03:34 PM

I don't have it, your best bet is to send Tomas a PM.

loonytune15 12-05-2007 01:36 AM

Thanks for the update, look forward to seeing the new mod...

fishlore 12-05-2007 02:12 AM

Thanks for the update! Just installed and monthly registrations are working again. Thank you.

pyd 12-05-2007 04:47 AM

What group will I find the phrases in, in the Phrase-manager?

Dream 12-05-2007 08:08 AM

global, they begin with statistics_ and some with dreamstatistics_

pyd 12-05-2007 08:25 AM

Quote:

Originally Posted by Dream (Post 1395358)
global, they begin with statistics_ and some with dreamstatistics_

Found it :)
Just finished translating it all into swedish.
Just waiting for some of my users to check the translation out...

Btw. Thanks for a great mod!

Dream 12-05-2007 10:46 AM

no problem, glad you like it.

nureeves 12-06-2007 01:38 AM

I have replaced all file with updated one
but it doesnt change anything ... my monthly registrations still going zero :(

do i miss something?
btw, i use vb 3.6.4

Dream 12-06-2007 03:06 AM

you just need to update statistics.php

TomasDR 12-06-2007 04:18 AM

I have posted my version here:
https://vborg.vbsupport.ru/showthread.php?t=164479

Thank you again to Dream's hard work.

Carlos2 12-06-2007 10:14 PM

Thanks for update ;)

rwoscott 12-10-2007 06:43 PM

I found another issue with the registration stats. Not a major drama.

If you select Results = 23 , you get 23 months.

If you select Results = 25 , you get 25 months.

Correct so far.

However, if you select 24 months, you get 36 months,
If you select 36 months you get 48 months.
If you select 48 months you get 60 months. I see a pattern here
The additional 12 months have a date of 01/01/1970.
(see attached).

I assume this is related to December being the 12th month.

Any ideas?

Dream 12-10-2007 07:24 PM

Try asking Tomas about this on his new mod thread

https://vborg.vbsupport.ru/showthread.php?t=164479

I haven't got the time to work on this right now, sorry.

TomasDR 12-11-2007 04:13 AM

Quote:

Originally Posted by rwoscott (Post 1398719)
I found another issue with the registration stats. Not a major drama.

If you select Results = 23 , you get 23 months.

If you select Results = 25 , you get 25 months.

Correct so far.

However, if you select 24 months, you get 36 months,
If you select 36 months you get 48 months.
If you select 48 months you get 60 months. I see a pattern here
The additional 12 months have a date of 01/01/1970.
(see attached).

I assume this is related to December being the 12th month.

Any ideas?

I will look into it, BTW did you try 24 or 36 when it was November?

rwoscott 12-11-2007 05:24 PM

Quote:

Originally Posted by TomasDR (Post 1398987)
I will look into it, BTW did you try 24 or 36 when it was November?

Possibly, but I don't remember. Sorry.

SuperD 12-13-2007 12:10 AM

Thanks for the mod but where exactly to upload the statistics.php and statsmod/ folder ?

rwoscott 12-13-2007 06:12 PM

Quote:

Originally Posted by SuperD (Post 1400199)
Thanks for the mod but where exactly to upload the statistics.php and statsmod/ folder ?

statistics.php => forum/statistics.php
statsmod/ folder => forum/statsmod/

Ie. upload both to your forum directory.

SuperD 12-14-2007 03:35 AM

Thanks

WhatChaMissin 12-15-2007 12:43 PM

Works great
*clicks install

TomasDR 12-15-2007 04:56 PM

Quote:

Originally Posted by rwoscott (Post 1399324)
Possibly, but I don't remember. Sorry.

I took a look at the functions and did the math but it all looks good. I will continue looking but it might be next month, so I can see if a different month does the same.

rwoscott 12-16-2007 05:47 AM

Quote:

Originally Posted by TomasDR (Post 1401655)
I took a look at the functions and did the math but it all looks good. I will continue looking but it might be next month, so I can see if a different month does the same.

Cool, thanks mate.

rwoscott 12-17-2007 12:43 AM

Quote:

Originally Posted by rwoscott (Post 1398719)
I found another issue with the registration stats. Not a major drama.

If you select Results = 23 , you get 23 months.

If you select Results = 25 , you get 25 months.

Correct so far.

However, if you select 24 months, you get 36 months,
If you select 36 months you get 48 months.
If you select 48 months you get 60 months. I see a pattern here
The additional 12 months have a date of 01/01/1970.
(see attached).

I assume this is related to December being the 12th month.

Any ideas?

I'm no php expert, but I did the following to fix this error.

In statistics.php replace
PHP Code:

        $year $year intval(($howmany $today['month']) / 12); 

With
PHP Code:

        $year $year intval(($howmany $today['month'] - 1) / 12); 

I've tested it for this month and it seems fine.

I've run through it on paper and I think it should work for other months. (fingers crossed) :up:

rokked 12-17-2007 05:39 AM

great addon, thanks a lot for this
have it running over at
http://forums.rokked.com/statistics....osters&show=10

blastup 12-25-2007 10:54 PM

i saw the http://www.s10planet.com/forum/statistics.php in your demo

but your mod is different from that? is there a way to change into that? with all the things displayed? let me know asap thanks

TCE Killa 12-25-2007 11:39 PM

Great hack, only thing is everytime I click Statistics now, a 404 error comes up, so I move the statistics.php to my actual rout directory and an even bigger error comes up saying error on line 46 statistics.php.... Atleast with the other error, the page isn't found until I get assistance, thanks. I have uploaded the forum folder and all of its contents to my rout directory and imported the product and changed the optional settings, just an error - page not found when I actually click the statistics link. Any help would be highly appreciated, thanks.

TCE Killa 12-25-2007 11:56 PM

Lol nevermind, I managed it, great hack.

rwoscott 01-06-2008 08:24 AM

Quote:

Originally Posted by rwoscott (Post 1402497)
I'm no php expert, but I did the following to fix this error.

In statistics.php replace
PHP Code:

        $year $year intval(($howmany $today['month']) / 12); 

With
PHP Code:

        $year $year intval(($howmany $today['month'] - 1) / 12); 

I've tested it for this month and it seems fine.

I've run through it on paper and I think it should work for other months. (fingers crossed) :up:

I've checked this month and all seems to be OK with the above fix.

Elenna 01-09-2008 02:52 PM

I'm not sure that the Exclude Usergroup ID thing is working for me.

We have 115 registered users. I have excluded 6 usergroup IDs from Statistics.

In the User listing (General Statistics) removes the users properly; however, other statistics (user profiles, age) is not taking the excluded groups into account, and is displaying statistics for all of my 115 members.

Dream 01-20-2008 08:50 PM

In some places I believe the exclude usergroup is not taken into account because of design decisions, but I can't remember now (it's been 1 year).

Anyone test this on 3.7?

Nynaeve 01-28-2008 12:38 AM

Love the hack, but I ran into this problem after installing it. Here's the error message I get from the statistics.php page:

Quote:

Warning: main(statsmod/statistics_general_stats.php) [function.main]: failed to open stream: No such file or directory in /statistics.php on line 206

Warning: main() [function.include]: Failed opening 'statsmod/statistics_general_stats.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /statistics.php on line 206
And I can't figure out what I did wrong. Any ideas/clues/suggestions?

Dream 01-28-2008 12:10 PM

Did you upload the statsmod directory?

Yuuko_Kitaiko 01-28-2008 08:54 PM

I'm a second admin on the same forum, so I'm doing most of the uploading. The statsmod directory...all the files in the statsmod folder are uploaded to our server, as well as the statistics.php file. Was there anything else in there, becuase I didn't see anything.

I'm thinking it might be a problem with how they were uploaded, but if it's the lack of this file, then that would make it worlds easier, I suppose.

Dream 01-28-2008 09:32 PM

The error is that statistics.php is not finding the files in statsmod/

Where did you upload both?

Yuuko_Kitaiko 01-29-2008 12:22 AM

Edited all that because it's not worth looking at now. Yeah, the directory was the problem, and I got that all sorted out. Thank you so much for your help. This is a whole first time thing with working on vBulletin for me, so I'm a bit out of sorts with it.

Anyway, thanks again.


All times are GMT. The time now is 05:52 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01799 seconds
  • Memory Usage 1,827KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_php_printable
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete