vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   vBulletin CMS Widgets - Top posters widget type (https://vborg.vbsupport.ru/showthread.php?t=236301)

Carnage 02-18-2010 10:00 PM

Top posters widget type
 
1 Attachment(s)
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.

Carnage 02-19-2010 10:14 AM

Demo here:

http://vb4.giveupalready.com/content/1-the-front-page (bottom of left col, titled Top posters this month) (Might not display anything as my dev board gets very few posts :p)

COL NIL SATIS 02-19-2010 10:37 AM

Demo would be nice!!!

Carnage 02-19-2010 10:48 AM

I was just setting one up on my public vb4 installation :)

210665 02-19-2010 05:15 PM

Hello
Demo does not work.
I can not see the product in widgets
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Hallo
Demo geht nicht.
Ich kann das Produkt nicht sehen in Widgets

Blackhat 02-19-2010 05:59 PM

would be nice with the users avatars too and maybe little more basic info about them

Carnage 02-22-2010 10:22 AM

what extra information would you like?

Rob F 02-22-2010 06:18 PM

Quote:

Originally Posted by Carnage- (Post 1986330)
Demo here:

http://vb4.giveupalready.com/content/1-the-front-page (bottom of left col, titled Top posters this month)

Ummmm. Clicked the link and got this


vBulletin Message
Sorry. The administrator has banned your IP address because test. To contact the administrator click here

Aceman 02-22-2010 06:23 PM

I get: Fatal error: Class 'imhotekWebcomic_Collection_Content_Webcomic' not found in /home/giveup/private_vb4/packages/vbcms/content/section.php on line 472

DOH!

Front Range 4x4 02-22-2010 07:38 PM

My IP is banned, not feeling any love. :eek:

Huy Ho?ng 02-22-2010 11:24 PM

Quote:

Originally Posted by Carnage- (Post 1986330)
Demo here:

http://vb4.giveupalready.com/content/1-the-front-page (bottom of left col, titled Top posters this month)

Demo Error: Fatal error: Class 'imhotekWebcomic_Collection_Content_Webcomic' not found in /home/giveup/private_vb4/packages/vbcms/content/section.php on line 472

Carnage 02-23-2010 10:32 AM

:( I've been working on creating a content type; guess its not quite working right :s

evilzombie 02-23-2010 11:38 AM

I don't see this in my widgets list???

Yes I uploaded the files to proper dir
Yes I imported the product

Carnage 02-23-2010 03:40 PM

try clearing the CMS cache.

Carnage 02-23-2010 04:45 PM

Quote:

vBulletin Message
Sorry. The administrator has banned your IP address because test. To contact the administrator click here
That was somewhat unlucky... you happened to match one of the test bans from my ip ban manager; removed now

mikez006 03-20-2010 05:57 PM

Cant install

Quote:

Database error in vBulletin 4.0.2:

Invalid SQL:
INSERT IGNORE INTO cms_widgettype (packageid,class) VALUES ('0','TopPosters');;

MySQL Error : Table 'forums_vb.cms_widgettype' doesn't exist
Error Number : 1146

cicciotto 03-20-2010 07:57 PM

Reviewed this plugin!
My forum and KO!

Carnage 03-20-2010 10:04 PM

Quote:

Cant install
Do you have the CMS installed?

mikez006 03-21-2010 02:26 PM

Quote:

Originally Posted by Carnage- (Post 2007265)
Do you have the CMS installed?

No just the forums.

Carnage 03-22-2010 11:14 AM

This is a widget for the vbulletin CMS, its not going to work unless you have the CMS installed.

Bergler 03-24-2010 03:30 PM

Sounds like a great mod!! When will these features be completed?


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
[EDIT] Just installed, nice widget, can wait for the above to be created! :)

Carnage 03-25-2010 11:26 AM

The list of potential features are there as examples of what I might add, essentially based upon demand. If there is any specific widget/ feature you are interested in lemme know.

rck3 03-25-2010 01:15 PM

Installed and works but the display is off. It shows the first name and then no # of posts, it shows the 2nd name with the # of posts for the 1st name, and continues until you end up with no name and the # of post for the last name. So the post column is off by 1 line of the name column. It shows on the demo site and also my SRULife.Com

Carnage 03-26-2010 12:14 PM

which browser are you using? I've checked in IE8, chrome and firefox and can't reproduce your error

rck3 03-28-2010 02:15 PM

Yeah I checked firefox and chrom which look fine. I usually use IE8 and it is off on the display. Odd if you don't have the issue with IE8.

Carnage 03-30-2010 11:57 AM

I'm going home in a few days and will be using a different machine for a while; its possible that i'll be able to reproduce +fix on there.

Aurvandil 04-20-2010 09:38 PM

A "Top Social Groups" widget would be very nice. I'm sure many people agree.

Carnage 04-21-2010 11:31 AM

Would you want it based on posts? Members? Members joined per time period?

Peter Lo 04-23-2010 04:32 AM

Would it be possible to display the avatar and user title of the top poster just as with the other version at https://vborg.vbsupport.ru/showthread.php?t=230794

Carnage 05-03-2010 09:44 AM

Should be able to do that; think its just a matter of editing the template and adding a call to getUserAvatarUrl or some such function.

Peter Lo 05-15-2010 03:46 AM

Am not really sure how this is done; hope you can help out as it makes the widget much nicer looking!

Quote:

Originally Posted by Carnage- (Post 2031025)
Should be able to do that; think its just a matter of editing the template and adding a call to getUserAvatarUrl or some such function.


Carnage 05-15-2010 01:30 PM

Yep, its on my features list for the next release of this mod, not got a date planned for that yet thou.

ArchAngelz 08-04-2010 01:50 PM

Would it be possible to have build on this and have the Posts for that month displayed in the user's postbit? Seems to be the same function for the CMS display.

ArchAngelz 08-04-2010 02:33 PM

Alternatively, is it possible to have this widget display as a forum block so that its viewable in the forums as well?

rossco_2005 08-15-2010 01:28 PM

For some reason I can't configure the widget.
I choose the settings that I want then hit save, it reloads the configure screen showing the previous settings.
This is on 4.0.6.

Carnage 08-17-2010 03:38 PM

:'( another of my mods broken by an upgrade; I'll look at it once i've updated my own forums

SpeedJunkyz 08-24-2010 10:31 AM

Can the posts be reset every month? And you say this is only for CMPS? the home page hack?

much like mine here: http://www.speedjunkyz.com/home.php

Carnage 09-12-2010 09:04 AM

Quote:

Can the posts be reset every month? And you say this is only for CMPS? the home page hack?
No, this is a widget for vbulletin CMS

2fast4ya 10-08-2010 06:42 PM

Is this still planning on being updated to a new version? It's a cool widget, I'd love to see all the other features.

2fast4ya 10-08-2010 07:02 PM

Also, it would be nice if the statistics were up to date. If I use "Top posters for this week" - it'll display that I've had x amount of posts, but as soon as I post again, it will not update unless i clear the CMS cache. :(


All times are GMT. The time now is 06:43 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.01391 seconds
  • Memory Usage 1,818KB
  • 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
  • (8)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