Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Top posters widget type Details »»
Top posters widget type
Version: 4.0-0.1 a2, by Carnage Carnage is offline
Developer Last Online: Sep 2014 Show Printable Version Email this Page

Category: vBulletin CMS Widgets - Version: 4.0.2 Rating:
Released: 02-18-2010 Last Update: 02-04-2011 Installs: 59
DB Changes Uses Plugins
Additional Files Is in Beta Stage  
No support by the author.

What does this do?
This mod provides a Top Posters widget type which can be configured to show the members who made the most posts over a period of time.

Features
  • Provides widget type Top Posters.
  • Displays a list of the top posters on your forum inside a widget.
  • Allows multiple instances of the widget.
  • Easy installation via products system.
  • Configuration options:
    • Usergroups to include
    • Eight different time periods to choose from
    • Number of posters to display.
  • Displays avatar of 'top poster'

Potential features
  • Exclude forum(s) from counting
  • Exclude forum(s) with no post count
  • Top all time posters (eg based on post count)
  • Top bloggers widget
  • Top article posters widget
  • Top social groups widget
  • Top posted in forums widget
  • Top posted in threads widget
  • Top commented on album/blog/articles widget

Installation
1. Upload the contents of the upload folder to your site.
2. Import product file.
3. Clear CMS cache. (failing to do this may mean the widget doesn't show up in the create new widget box)

Usage
1. Go into the widget manager and select Create new widget.
2. Select the top posters widget type from the drop down list.
3. Fill out the remaining form items and hit save.
4. Configure the widget from the widget manager.
5. Add the widget to a layout.

What is an Alpha release?
This modification has been released as an Alpha release. This means that it has only been tested within a limited number of environments, eg My development board and boards of a small number of other users. As far as I'm aware, all releases are bug free at the time of release, but due to the limited number of users not all the bugs may have been found yet.

As with all mods, make a full backup of your database before installing and ideally, test on a development board which matches the setup of your live board as closely as possible first. Please report any issues you have and any solutions you find, to help improve this product.

Changelog
  • 4.0-0.1 a2
    • Fixed issue with configuring widget on vb 4.1
    • Added avatar of top poster to widget.
  • 4.0-0.1 a1
    • Initial release

Notes
  • I created this widget because the existing ones that do similar things had performance issues and the mod author was unwilling/slow to implement the fix I sent them. This behaives much more reasonably, even in the worst case (top posters this year) It takes a little over a second when run against my 1.2 million posts board. Considering that this result is cached for a day, the performance implications of this widget are minimal.
  • Caching behaivour can only be changed by editing the code; currently the last* time periods cache the result to the end of the time period (eg if you are using last month, the cache is set to expire about 1 minuite after the start of the next month) For this year and this month, the cache is set to expire after a day, this week is set to expire after 6 hours and today is set to expire hourly. A future version may allow customisation over these timings.
  • The Planned features are a set of ideas that I could do using the current code fairly easilly; however most are not required for my own use, if there are sufficient people interested in a feature to make it worth my while coding it, I will do.
  • This is an example of how to write a widget properly and I used the direct php execution widget as a model of how to implement it. Please feel free to use this code as an example when creating your own widgets types.

Download Now

File Type: zip Top Posters Widget Type v4.0-0.1 alpha 2.zip (17.3 KB, 401 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #82  
Old 02-12-2011, 05:10 AM
Fready Fready is offline
 
Join Date: Nov 2010
Posts: 146
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by pinoypot View Post
i've got the same problem when i installed it... even if i uninstall it... i cannot fix the error.

please tell me the complete step by step UNINSTALLATION procedure.


below is the error: AdminCP --> vBulletin CMS -->. Widgets

Trying to get widgettype class from invalid widgettype '23' on line 270 in /home/pinoypot/public_html/packages/vbcms/types.php
#0 /home/pinoypot/public_html/packages/vbcms/collection/widget.php(230): vBCms_Types->getWidgetTypeClass('23')
#1 /home/pinoypot/public_html/vb/collection.php(448): vBCms_Collection_Widget->createItem(Array, 1)
#2 /home/pinoypot/public_html/packages/vbcms/collection/widget.php(162): vB_Collection->applyLoad(Resource id #82, 1)
#3 /home/pinoypot/public_html/vb/model.php(348): vBCms_Collection_Widget->applyLoad(Resource id #82, 1)
#4 /home/pinoypot/public_html/vb/model.php(302): vB_Model->loadInfo()
#5 /home/pinoypot/public_html/vb/collection.php(408): vB_Model->Load(false)
#6 /home/pinoypot/public_html/vb/collection.php(843): vB_Collection->Load()
#7 /home/pinoypot/public_html/admincp/cms_admin.php(1837): vB_Collection->valid()
#8 {main}


Fatal error: Trying to get widgettype class from invalid widgettype '23' on line 270 in [path]/packages/vbcms/types.php in [path]/vb/vb.php on line 287
#0 vb_error_handler(256, Trying to get widgettype class from invalid widgettype '23' on line 270 in /home/pinoypot/public_html/packages/vbcms/types.php , /home/pinoypot/public_html/vb/vb.php, 287, Array ([exception] => vB_Exception_Warning Object ([] => ,[] => ,[] => ,[] => ,[] => ,[] => ,[] => Trying to get widgettype class from invalid widgettype '23',[] => ,[] => 0,[] => /home/pinoypot/public_html/packages/vbcms/types.php,[] => 270,[] => Array ([0] => Array ([file] => /home/pinoypot/public_html/packages/vbcms/collection/widget.php,[line] => 230,[function] => getWidgetTypeClass,[class] => vBCms_Types,[type] => ->,[args] => Array ([0] => 23)),[1] => Array ([file] => /home/pinoypot/public_html/vb/collection.php,[line] => 448,[function] => createItem,[class] => vBCms_Collection_Widget,[type] => ->,[args] => Array ([0] => Array ([itemid] => 41,[title] => Top Poster,[description] => Last week's top poster.,[widgettypeid] => 23),[1] => 1)),[2] => Array ([file] => /home/pinoypot/public_html/packages/vbcms/collection/widget.php,[line] => 162,[function] => applyLoad,[class] => vB_Collection,[type] => ->,[args] => Array ([0] => Resource id #82,[1] => 1)),[3] => Array ([file] => /home/pinoypot/public_html/vb/model.php,[line] => 348,[function] => applyLoad,[class] => vBCms_Collection_Widget,[type] => ->,[args] => Array ([0] => Resource id #82,[1] => 1)),[4] => Array ([file] => /home/pinoypot/public_html/vb/model.php,[line] => 302,[function] => loadInfo,[class] => vB_Model,[type] => ->,[args] => Array ()),[5] => Array ([file] => /home/pinoypot/public_html/vb/collection.php,[line] => 408,[function] => Load,[class] => vB_Model,[type] => ->,[args] => Array ([0] => )),[6] => Array ([file] => /home/pinoypot/public_html/vb/collection.php,[line] => 843,[function] => Load,[class] => vB_Collection,[type] => ->,[args] => Array ()),[7] => Array ([file] => /home/pinoypot/public_html/admincp/cms_admin.php,[line] => 1837,[function] => valid,[class] => vB_Collection,[type] => ->,[args] => Array ()))),[code] => 256)) called at [(null):0] #1 trigger_error(Trying to get widgettype class from invalid widgettype '23' on line 270 in /home/pinoypot/public_html/packages/vbcms/types.php , 256) called at [/home/pinoypot/public_html/vb/vb.php:287] #2 vB::handleException(vB_Exception_Warning Object ([] => ,[] => ,[] => ,[] => ,[] => ,[] => ,[] => Trying to get widgettype class from invalid widgettype '23',[] => ,[] => 0,[] => /home/pinoypot/public_html/packages/vbcms/types.php,[] => 270,[] => Array ([0] => Array ([file] => /home/pinoypot/public_html/packages/vbcms/collection/widget.php,[line] => 230,[function] => getWidgetTypeClass,[class] => vBCms_Types,[type] => ->,[args] => Array ([0] => 23)),[1] => Array ([file] => /home/pinoypot/public_html/vb/collection.php,[line] => 448,[function] => createItem,[class] => vBCms_Collection_Widget,[type] => ->,[args] => Array ([0] => Array ([itemid] => 41,[title] => Top Poster,[description] => Last week's top poster.,[widgettypeid] => 23),[1] => 1)),[2] => Array ([file] => /home/pinoypot/public_html/packages/vbcms/collection/widget.php,[line] => 162,[function] => applyLoad,[class] => vB_Collection,[type] => ->,[args] => Array ([0] => Resource id #82,[1] => 1)),[3] => Array ([file] => /home/pinoypot/public_html/vb/model.php,[line] => 348,[function] => applyLoad,[class] => vBCms_Collection_Widget,[type] => ->,[args] => Array ([0] => Resource id #82,[1] => 1)),[4] => Array ([file] => /home/pinoypot/public_html/vb/model.php,[line] => 302,[function] => loadInfo,[class] => vB_Model,[type] => ->,[args] => Array ()),[5] => Array ([file] => /home/pinoypot/public_html/vb/collection.php,[line] => 408,[function] => Load,[class] => vB_Model,[type] => ->,[args] => Array ([0] => )),[6] => Array ([file] => /home/pinoypot/public_html/vb/collection.php,[line] => 843,[function] => Load,[class] => vB_Collection,[type] => ->,[args] => Array ()),[7] => Array ([file] => /home/pinoypot/public_html/admincp/cms_admin.php,[line] => 1837,[function] => valid,[class] => vB_Collection,[type] => ->,[args] => Array ())))) called at [(null):0]
That is 100% the same as I had.
I contacted the vB support ticket, they fixed it but weren't happy as it is not part of the job for them.
Here is what they did:
Quote:
Hello.

You should be able to access the widget configuration screens now - you had a couple if invalid records in your database which I've now deleted.

Best regards,


Trevor Hannant
vBulletin Support Staff
It's in your data base.
Quote:
please tell me the complete step by step UNINSTALLATION procedure.
You uninstall it but it is now in your data base as an invalid file.
So you need to find the invalid records and delete them.

ANYONE be careful when installing this, it looks like it can be dangerous.
Reply With Quote
  #83  
Old 02-12-2011, 09:20 AM
Carnage Carnage is offline
 
Join Date: Jan 2005
Location: uk
Posts: 760
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'll be releasing a fix for this issue asap.
Reply With Quote
  #84  
Old 02-12-2011, 01:07 PM
New Joe's Avatar
New Joe New Joe is offline
 
Join Date: May 2009
Posts: 1,128
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Carnage View Post
I'll be releasing a fix for this issue asap.
And fast mate.
Reply With Quote
  #85  
Old 02-13-2011, 09:05 AM
Carnage Carnage is offline
 
Join Date: Jan 2005
Location: uk
Posts: 760
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've figured out the issue, it's a bug in the way vbulletin uninstalls products.

Their uninstaller removes packages but not associated widgets and widget types; I'm posting it as a bug report.
Reply With Quote
  #86  
Old 04-15-2011, 01:03 PM
Brandon Sheley's Avatar
Brandon Sheley Brandon Sheley is offline
 
Join Date: Mar 2005
Location: Google Kansas
Posts: 4,678
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I updated the widget, cleared the cms cache but the avatars aren't showing up.
Did I miss something?
Thanks
Reply With Quote
  #87  
Old 04-17-2011, 09:06 AM
doctorsexy's Avatar
doctorsexy doctorsexy is offline
 
Join Date: Mar 2011
Location: earth
Posts: 383
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Dose this work with 4.1.2.....
Reply With Quote
  #88  
Old 05-09-2011, 02:43 PM
Brandon Sheley's Avatar
Brandon Sheley Brandon Sheley is offline
 
Join Date: Mar 2005
Location: Google Kansas
Posts: 4,678
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I see the avatar for the top user, but as you see in my link above, there needs to be a line break after the first user..
Reply With Quote
  #89  
Old 06-04-2011, 04:26 AM
hyperviperx99's Avatar
hyperviperx99 hyperviperx99 is offline
 
Join Date: Feb 2011
Posts: 159
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Does this work? Hmm...
Reply With Quote
  #90  
Old 06-17-2011, 07:58 AM
cykelmyggen's Avatar
cykelmyggen cykelmyggen is offline
 
Join Date: Oct 2006
Location: Europe
Posts: 156
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I got myself into trouble with this one when trying to uninstall product. When trying to access Widgets in CMS ACP i get this error:
PHP Code:
Trying to get widgettype class from invalid widgettype '24' on line 270 in /var/www/sites/boggnasker.dk/vbforum/packages/vbcms/types.php
#0 /var/www/sites/boggnasker.dk/vbforum/packages/vbcms/collection/widget.php(230): vBCms_Types->getWidgetTypeClass('24')
#1 /var/www/sites/boggnasker.dk/vbforum/vb/collection.php(448): vBCms_Collection_Widget->createItem(Array, 1)
#2 /var/www/sites/boggnasker.dk/vbforum/packages/vbcms/collection/widget.php(162): vB_Collection->applyLoad(Resource id #104, 1)
#3 /var/www/sites/boggnasker.dk/vbforum/vb/model.php(348): vBCms_Collection_Widget->applyLoad(Resource id #104, 1)
#4 /var/www/sites/boggnasker.dk/vbforum/vb/model.php(302): vB_Model->loadInfo()
#5 /var/www/sites/boggnasker.dk/vbforum/vb/collection.php(408): vB_Model->Load(false)
#6 /var/www/sites/boggnasker.dk/vbforum/vb/collection.php(843): vB_Collection->Load()
#7 /var/www/sites/boggnasker.dk/vbforum/admincp/cms_admin.php(1834): vB_Collection->valid()
#8 {main}


Fatal errorTrying to get widgettype class from invalid widgettype '24' on line 270 in [path]/packages/vbcms/types.php in [path]/vb/vb.php on line 287
#0 vb_error_handler(256, Trying to get widgettype class from invalid widgettype '24' on line 270 in /var/www/sites/boggnasker.dk/vbforum/packages/vbcms/types.php , /var/www/sites/boggnasker.dk/vbforum/vb/vb.php, 287, Array ([exception] => vB_Exception_Warning Object ([] => ,[] => ,[] => ,[] => ,[] => ,[] => ,[] => Trying to get widgettype class from invalid widgettype '24',[] => ,[] => 0,[] => /var/www/sites/boggnasker.dk/vbforum/packages/vbcms/types.php,[] => 270,[] => Array ([0] => Array ([file] => /var/www/sites/boggnasker.dk/vbforum/packages/vbcms/collection/widget.php,[line] => 230,[function] => getWidgetTypeClass,[class] => vBCms_Types,[type] => ->,[args] => Array ([0] => 24)),[1] => Array ([file] => /var/www/sites/boggnasker.dk/vbforum/vb/collection.php,[line] => 448,[function] => createItem,[class] => vBCms_Collection_Widget,[type] => ->,[args] => Array ([0] => Array ([itemid] => 4,[title] => Top postere,[description] => ,[widgettypeid] => 24),[1] => 1)),[2] => Array ([file] => /var/www/sites/boggnasker.dk/vbforum/packages/vbcms/collection/widget.php,[line] => 162,[function] => applyLoad,[class] => vB_Collection,[type] => ->,[args] => Array ([0] => Resource id #104,[1] => 1)),[3] => Array ([file] => /var/www/sites/boggnasker.dk/vbforum/vb/model.php,[line] => 348,[function] => applyLoad,[class] => vBCms_Collection_Widget,[type] => ->,[args] => Array ([0] => Resource id #104,[1] => 1)),[4] => Array ([file] => /var/www/sites/boggnasker.dk/vbforum/vb/model.php,[line] => 302,[function] => loadInfo,[class] => vB_Model,[type] => ->,[args] => Array ()),[5] => Array ([file] => /var/www/sites/boggnasker.dk/vbforum/vb/collection.php,[line] => 408,[function] => Load,[class] => vB_Model,[type] => ->,[args] => Array ([0] => )),[6] => Array ([file] => /var/www/sites/boggnasker.dk/vbforum/vb/collection.php,[line] => 843,[function] => Load,[class] => vB_Collection,[type] => ->,[args] => Array ()),[7] => Array ([file] => /var/www/sites/boggnasker.dk/vbforum/admincp/cms_admin.php,[line] => 1834,[function] => valid,[class] => vB_Collection,[type] => ->,[args] => Array ()))),[code] => 256)) #1 trigger_error(Trying to get widgettype class from invalid widgettype '24' on line 270 in /var/www/sites/boggnasker.dk/vbforum/packages/vbcms/types.php , 256) called at [/var/www/sites/boggnasker.dk/vbforum/vb/vb.php:287] #2 vB::handleException(vB_Exception_Warning Object ([] => ,[] => ,[] => ,[] => ,[] => ,[] => ,[] => Trying to get widgettype class from invalid widgettype '24',[] => ,[] => 0,[] => /var/www/sites/boggnasker.dk/vbforum/packages/vbcms/types.php,[] => 270,[] => Array ([0] => Array ([file] => /var/www/sites/boggnasker.dk/vbforum/packages/vbcms/collection/widget.php,[line] => 230,[function] => getWidgetTypeClass,[class] => vBCms_Types,[type] => ->,[args] => Array ([0] => 24)),[1] => Array ([file] => /var/www/sites/boggnasker.dk/vbforum/vb/collection.php,[line] => 448,[function] => createItem,[class] => vBCms_Collection_Widget,[type] => ->,[args] => Array ([0] => Array ([itemid] => 4,[title] => Top postere,[description] => ,[widgettypeid] => 24),[1] => 1)),[2] => Array ([file] => /var/www/sites/boggnasker.dk/vbforum/packages/vbcms/collection/widget.php,[line] => 162,[function] => applyLoad,[class] => vB_Collection,[type] => ->,[args] => Array ([0] => Resource id #104,[1] => 1)),[3] => Array ([file] => /var/www/sites/boggnasker.dk/vbforum/vb/model.php,[line] => 348,[function] => applyLoad,[class] => vBCms_Collection_Widget,[type] => ->,[args] => Array ([0] => Resource id #104,[1] => 1)),[4] => Array ([file] => /var/www/sites/boggnasker.dk/vbforum/vb/model.php,[line] => 302,[function] => loadInfo,[class] => vB_Model,[type] => ->,[args] => Array ()),[5] => Array ([file] => /var/www/sites/boggnasker.dk/vbforum/vb/collection.php,[line] => 408,[function] => Load,[class] => vB_Model,[type] => ->,[args] => Array ([0] => )),[6] => Array ([file] => /var/www/sites/boggnasker.dk/vbforum/vb/collection.php,[line] => 843,[function] => Load,[class] => vB_Collection,[type] => ->,[args] => Array ()),[7] => Array ([file] => /var/www/sites/boggnasker.dk/vbforum/admincp/cms_admin.php,[line] => 1834,[function] => valid,[class] => vB_Collection,[type] => ->,[args] => Array ())))) 
Would be grateful for any help. I'm on Vb 4.1.4
Reply With Quote
  #91  
Old 06-17-2011, 08:23 AM
cykelmyggen's Avatar
cykelmyggen cykelmyggen is offline
 
Join Date: Oct 2006
Location: Europe
Posts: 156
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Carnage View Post
I'll be releasing a fix for this issue asap.
Seriously need a fix for this!

Edit 18.6.2011: I had vb-supportteam kindly cleaning up this mess. I recommend all users to avoid this widget till fix is published. My fault I didn't read the thread before install.
Uninstalled
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:12 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.07008 seconds
  • Memory Usage 2,369KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_php
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (1)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete