vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Statistics Modifications - vbTrends - An Enhanced Statistics Box on Forum Home (https://vborg.vbsupport.ru/showthread.php?t=143001)

hambil 03-23-2007 10:00 PM

vbTrends - An Enhanced Statistics Box on Forum Home
 

Note: This product is now being supported at www.catnine.net

Keywords: Statistics, New members, joins, trends, Forum Home, threads, posts

ATTENTION:
If you download the latest version go into your usergroups and set the 'can view trends' permission. SAVE the usergroup even if you haven't changed the setting or things may not work. There is an odd permissions bug I haven't figured out yet.

Also note that overwrite will not work. Please uninstall the previous version before installing the new one.

Description:
Enhances the "YourBBS" Statistics box on the forum home to show trends of posts, threads and new users vs. the overall history of the board. Also allows you to display more than one "newest member".

Version 2.0.0:
  1. Calculations exposed and modifiable in admincp.
  2. Added ability to delay updates of stats to every x minutes in admincp.
  3. Added a style setting for positive and negative trends.
  4. Added custom hooks for all aspects of vbTrends, and moved code into said hooks.
  5. Changed template to still show total threads when trend is negative and 'positive trends only' is enabled.
  6. Usergroup permission to view trends.
Note: You cannot cause an error by messing up the calculations in the admincp. If the calculation you provide contains errors the stat in question will show as N/A.

This is a major rewrite, so I've set the hack to beta for now.

Version 1.2.6:
  1. Made some minor tweaks for cleaner code
  2. Made change to build datastore call to force serialization
You can just overwrite the product.xml if you are upgrading. Remember vbTrends has an option in the admincp to reset the counters. To see any changes/fixes you'll want to run that, or you'll end up having to wait for a new day before the changes will take affect.

Version 1.2.5:
  1. fixed minor bug in auto-replace that was causing it not to work on some boards
Version 1.2.4:
  1. fixed bug in percentage of active users
  2. fixed bug in limit of queries (added order by)
Thanks to bchertov and Battle_Ring for the testing :)

Version 1.2.3:
  1. Added option to display % of active users.
  2. Added option to set the number of previous months to include in the trend data.
Version 1.1.3:
  1. Updated for vBulletin 3.6.
  2. Fixed long standing problem with stats calculating incorrectly.
  3. Added option to only show positive trends.
Version 1.1.2:
  1. Added admincp menu to reset cached counters.
  2. Fixed a couple of divide by zero errors that occurred when your board had no history (was less than a month old).
  3. Fixed so templates are now cached.
Version 1.1.1:
  1. Fixed calculation of statistics - should definately be correct now :)
Version 1.1.0:
  1. Fully phrased.
  2. Uses templates now so look and feel can be customized
  3. Fixed bug so output is valid xhtml 1.0.
Version 1.0.0:
  1. Turn on/off in admincp
  2. Offers the option to auto replace in templates, or to manually edit templates.
  3. Allows more than one 'newest user' to be display.
  4. Shows trends for posts, threads and new users - this month vs. the boards average.
Install
  1. Download the vbTrends_2.0.0.zip.
  2. Unzip and follow instructions in install.html.

Nikke 03-24-2007 11:11 AM

Will install!

mcyates 03-24-2007 11:29 AM

excellent, installed.

Thanks

projectego 03-24-2007 11:35 AM

Awesome!

/me clicks install

Sam21 03-24-2007 11:40 AM

Awesome work I've installed!

hambil 03-24-2007 12:02 PM

Just corrected a minor logic glitch that made the 'positive' only work in reverse. No need to reinstall unless you want to - just remember if you don't the yes/no is reversed.

TTG 03-24-2007 12:18 PM

Nice addition :
Quote:

Added option to only show positive trends.
Clicked install

kewl1uk 03-24-2007 01:39 PM

Installed. Thank you. Just wondering how often the stats updates.

hambil 03-24-2007 01:41 PM

Quote:

Originally Posted by kewl1uk (Post 1211070)
Installed. Thank you. Just wondering how often the stats updates.

Once a day

kewl1uk 03-24-2007 01:45 PM

Quote:

Originally Posted by hambil (Post 1211071)
Once a day

Ok thanks. Great much needed mod!

asj 03-24-2007 02:32 PM

Thanks

MThornback 03-24-2007 06:34 PM

Great work as always, glad your feeling better :D

SaN-DeeP 03-24-2007 06:49 PM

Thanks I will need this.

Blackhat 03-24-2007 08:52 PM

looks like this makes mysql use way to much server resources for a large site like mine :P

hambil 03-24-2007 09:04 PM

Quote:

Originally Posted by Blackhat (Post 1211320)
looks like this makes mysql use way to much server resources for a large site like mine :P

You can't show stats without running a few queries. Nothing to be done for it other than what I already do to minimize the queries. Do you know it is an issue on your site, or are you just assuming?

bela-meaad 03-24-2007 11:30 PM

thanks

but how this work?

i mean if i got 55 memebrs in this month
will this be Negative until new members reach 56 for the next month?

same thing for threads & post?

dbirosel 03-24-2007 11:46 PM

subscribed!

will install when i get home!

MThornback 03-25-2007 01:11 AM

<a href="https://vborg.vbsupport.ru/showthread.php?t=141243" target="_blank">https://vborg.vbsupport.ru/showthread.php?t=141243</a>

hambil 03-25-2007 01:27 AM

Quote:

Originally Posted by bela-meaad (Post 1211429)
thanks

but how this work?

i mean if i got 55 memebrs in this month
will this be Negative until new members reach 56 for the next month?

same thing for threads & post?

They way it *should* work is it compares month-to-date. So, for today as an example - it is looking at how many members you've had join so far this month, compared to the average you've had join by the 24th in past months.

Same for posts and threads.

MThornback 03-25-2007 01:37 AM

Hambil, there is a plugin on .org here to show the percent of active users....I tried to make this and that play nice...but it isn't working, probably because I had to do the file edit...though i'm not entirely sure....is there anyway to have it display the % of active users without rocking the boat with your existing code too too much?

hambil 03-25-2007 01:45 AM

Point me toward the hack and I'll see if I can make nice with it :)

Blackhat 03-25-2007 08:59 AM

I know. But its a great addon non the less :)

Doctor Death 03-25-2007 11:15 AM

Nice job. Installed.

I would like to see an AdminCP option to toggle showing numbers of Inactive members as well.

Both active and inactive ought to be hyperlinks that list the Names of both categories...

I am always trying to figure out who my inactive people are, and this would be a great assist.

Phooey 03-25-2007 04:02 PM

This looks great, I'm clicking install now and will install it when I get home later. :D

ymy 03-25-2007 04:59 PM

Great much needed mod

clicks install

Thanks

Atakan KOC 03-25-2007 05:46 PM

Thanks....

bchertov 03-25-2007 06:36 PM

Nice Hack! However...

It looks to me that you are computing stats regarding the comparison of this month compared to the average of all other months for the life of the board. I don't think this give a fair representation. I think it would be better to offer a limit of the number of months the trend is based on (default to 3 and expose as a ACP option).

Installed and removed pending update...

hambil 03-25-2007 07:29 PM

A limit is certainly easy enough to implement, and a good idea. I'll have an update later today with some more options re: limits and ranges, and some active users percentage stuff as requested.

Lizbaby4 03-25-2007 10:23 PM

I am pretty new at this and the instructions were very vague. Could you be more specific as to where the files go?

Needless to say, it is not working for me.

hambil 03-25-2007 10:59 PM

Hi liz, and welcome :) There is an install.html file that is contained within the zip. Did you read that? If so, and you are still unsure let me hack a look at the install.html and see if I can't break it down even better.

odie3 03-25-2007 11:04 PM

Great MOD and Great Information to have! Thanks!!

However, for my Black and Gold the Arrows are not showing up like on Default. I went ahead and did the "edit" template bits and turned off the Auto Option.

Battle_Ring 03-25-2007 11:04 PM

Think you can make an addition to this for Active Users and the Percentage

hambil 03-25-2007 11:06 PM

Quote:

Originally Posted by Battle_Ring (Post 1212245)
Think you can make an addition to this for Active Users and the Percentage

Yes :)

https://vborg.vbsupport.ru/showpost....1&postcount=28

Battle_Ring 03-25-2007 11:23 PM

cool cant wait

now get to work lol j/k

odie3 03-26-2007 02:01 AM

Quote:

Originally Posted by odie3 (Post 1212243)
Great MOD and Great Information to have! Thanks!!

However, for my Black and Gold the Arrows are not showing up like on Default. I went ahead and did the "edit" template bits and turned off the Auto Option.

Had to install icons in /images/bgold/misc/ for my style.

Lizbaby4 03-26-2007 02:11 AM

Quote:

Originally Posted by hambil (Post 1212233)
Hi liz, and welcome :) There is an install.html file that is contained within the zip. Did you read that? If so, and you are still unsure let me hack a look at the install.html and see if I can't break it down even better.

Yes, I did. When I unzipped the file, there were 3 files. I uploaded the .xml file into the AdminCP. I opened the Includes file and moved the vbtrends file to the adminCP file on my ftp page, the misc folder to the images folder, and the xml file to the includes/xml file, and still nothing.

Now sure what else I have to do to get it working.

Battle_Ring 03-26-2007 03:11 AM

hey also what about a new member today addition

akulion 03-26-2007 03:20 AM

thanks

installed and workin A-OK

hambil 03-26-2007 04:03 AM

Quote:

Originally Posted by Lizbaby4 (Post 1212370)
Yes, I did. When I unzipped the file, there were 3 files. I uploaded the .xml file into the AdminCP. I opened the Includes file and moved the vbtrends file to the adminCP file on my ftp page, the misc folder to the images folder, and the xml file to the includes/xml file, and still nothing.

Now sure what else I have to do to get it working.

Some people have reported trouble with the auto-replace. Try turning that off and making the suggested template edit instead.

odie3 03-26-2007 04:04 AM

Yes, that is what it allow it to work for me! Its a very easy edit....


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

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.01542 seconds
  • Memory Usage 1,823KB
  • 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
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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