PDA

View Full Version : vBulletin CMS Widgets - Top posters widget type


Carnage
02-18-2010, 10:00 PM
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
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
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
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

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
Cant install

Do you have the CMS installed?

mikez006
03-21-2010, 02:26 PM
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!

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
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. :(

Carnage
10-09-2010, 10:06 AM
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.

In order to reduce load on your forums by executing potentially large queries on a regular basis the result is cached for a certain period depending on the timescale selected. For the this week option, it updates every 6 hours.

If your forum is fairly small < 100,000 posts you can probably get away with a much shorter time frame - this can be done by editing the code. The current timings were selected to provide a tradeoff between up to date statistics and the potential to slow down the page display time on large boards.

A future version will allow customisation of these timings in the control panel, however there is no eta on this version as I'm not currently working on this mod (my next planned release is on the PBPG mods and so I've been working flat out on them to get them ready ASAP)

Juggernaut
10-12-2010, 11:16 PM
I don't see any widget after I upload the files and install, even after clearing the cms cache, I don't see any widgets in the widget manager or the layout manager.

Carnage
10-13-2010, 11:16 AM
This is a widget type not a widget. To use it install the product then go into the widget manager select create new widget - the top posters widget type should appear in the drop down box.

Juggernaut
10-13-2010, 04:12 PM
I can see it now, however when I try to change the configuration, when I hit save, it always resets to the default configuration of "last month" anything I can do to include all the new usergroups I've created and show last week's top poster?

Juggernaut
10-13-2010, 09:40 PM
After clearing the cms cache my widget manager is broken I get a long error message relating to this widget, I already tried uninstalling the widget, but it didn't help with the problem.

Fatal error: Trying 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

Juggernaut
10-16-2010, 02:25 AM
You can ignore my post above, I was able to fix my issue.

Carnage
10-16-2010, 08:35 AM
Might I ask how you fixed it in case anyone else comes up with the same problem?

Juggernaut
10-23-2010, 02:59 AM
^^ Sorry for the long time since posting, but I manage to get rid of my error messages by uninstalling the widget, and dropping the database rows for this widget and widget type through phpmyadmin. I still can't get it running on my forum, although I think it's a great widget, it might be conflicting with another mod or template edit I might have made, so I will have to be without it for now. Thank you so much for taking your time helping me out, Carnage :D

Aurvandil
11-19-2010, 06:09 AM
Would you want it based on posts? Members? Members joined per time period?

"Members joined per time period" and/or "posts per time period" would be great for a top social groups widget.

By the way - great work with the top poster widget, it is very useful. If one of the following features was added as well, it would be perfect:
# Exclude forum(s) from counting
# Exclude forum(s) with no post count

Lomak
11-25-2010, 12:41 AM
hello

how can I specify 'Post from all time'

Carnage
11-28-2010, 02:39 PM
That isn't possible in this version; its on the list of features I'd like to add.

Since this is now the only available top posters widget on vborg, I'm going to try and schedule some time this month to get a new release out with some extra features.

Juggernaut
11-28-2010, 11:47 PM
Thank you Carnage, I still have this widget tagged just in case it get's updated :D

Brandon Sheley
12-14-2010, 03:31 AM
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.

same here on 4.1
I had to edit the php file and upload it again

Juggernaut
12-24-2010, 02:17 AM
same here on 4.1
I had to edit the php file and upload it again
How were you able to get it to work again? can you provide the solution?

lycheepassion
12-24-2010, 09:06 AM
Hey would LOVE LOVE LOVEEEEEEEEE to get this to work in newest vb pl2! ty

lycheepassion
12-27-2010, 01:37 PM
same here on 4.1
I had to edit the php file and upload it again

Can you provide the file pretty please? :)

Brandon Sheley
12-27-2010, 02:55 PM
How were you able to get it to work again? can you provide the solution?

I just edited this file
/packages/imhotektopposters/item/widget/

<?php
class imhotekTopPosters_Item_Widget_TopPosters extends vBCms_Item_Widget
{
/*Properties======================================= =============================*/

/**
* A package identifier.
*
* @var string
*/
protected $package = 'imhotekTopPosters';

/**
* A class identifier.
*
* @var string
*/
protected $class = 'TopPosters';

protected $config = array('usergroups' => '5,9,53',
'type' => 'lastmonth',
'limit'=>7);

}

and edited the groups and limit #

then uploaded the files, and imported the xml file like the instructions stated

I think that's all I changed, sorry for not posting this before
You can see it in action here. (http://general-forums.com/articles/)

Carnage
02-05-2011, 04:37 PM
Rolling a new release.

Fixed the issue with configuration; seems vbulletin did some under the hood changes at some point which broke it, now confirmed to work on vbulletin 4.1.1

I've also added the avatar of the top poster to the top of the widget and the top posters name is displayed in a larger bold font, centred in the middle of the widget.

I had planned to add some more features, however it took me forever to track down the configuration bug :(

tele955848
02-05-2011, 05:18 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


Bei mir das gleiche - Schrott ?!

49er
02-06-2011, 04:10 PM
Got This Error .... :confused:

Fatal error: Call to undefined function fetch_avatar_from_userinfo() in /home/*********/public_html/forum/packages/imhotektopposters/widget/topposters.php on line 245
]

Carnage
02-06-2011, 05:01 PM
Which version of vbulletin are you running?

jitsuboy
02-06-2011, 08:33 PM
so does this mean I can now download and it will work for 4.1.1??

49er
02-07-2011, 02:04 PM
Which version of vbulletin are you running?

Hey mate, its 4.1.1 :up:

Carnage
02-07-2011, 04:31 PM
Where abouts is that error coming up? The function is a standard vb function so I'm not sure why it wouldn't be defined...

49er
02-07-2011, 09:20 PM
Its on the CMS Home page ... :confused:

Juggernaut
02-08-2011, 05:24 AM
When I install this widget in my homepage all I get is a whitepage on my portal, everything dissapears

Carnage
02-08-2011, 05:33 AM
hmmm... i wonder.

What other widgets do you have on the pages that its causing an issue on?

Juggernaut
02-08-2011, 11:40 AM
Well I have the media library widget, the user's who have visited today widget and jaxel's facebook widget, but I also tried just having this widget on the frontpage, but I still got a white screen.

Carnage
02-09-2011, 07:34 PM
I've got an idea what may be happening; could you try adding a vb widget to the page which shows avatars such as recent posts?

OurCouponHome
02-09-2011, 11:19 PM
We got a database error as well.

Juggernaut
02-09-2011, 11:22 PM
I've got an idea what may be happening; could you try adding a vb widget to the page which shows avatars such as recent posts?

Got it working by adding the recent threads widget and also the articles widget. Any way to make it work, without a vb widget?

Fready
02-10-2011, 03:26 AM
Yesterday we installed the mod and the Home Page crashed. Good thanks, we got the Home Page working again but the widget interface in vB CMS is completely screwed up and out of order. We've running 4.1

Fready
02-10-2011, 03:50 AM
There is a load of errors like this after installing this widget:
Fatal error: Trying to get widgettype class from invalid widgettype '25' on line 270 in [path]/packages/vbcms/types.php in [path]/vb/vb.php on line 287

Juggernaut
02-10-2011, 04:35 AM
Got it to work just like you said, all I had to do was place that vb widget, and it worked from then on, however if I make changes in the settings, I have to do the same thing over again, and I also have to clear the cms cache.

Carnage
02-10-2011, 05:38 AM
Got it to work just like you said, all I had to do was place that vb widget, and it worked from then on, however if I make changes in the settings, I have to do the same thing over again, and I also have to clear the cms cache.

Thanks, you've confirmed my suspicion about what was going wrong. I've got a fix; will release once I've tested it some more. For now, if you try going into packages/topposters/widget/topposters.php and add the following:

require_once DIR . "/includes/functions_user.php";
require_once DIR . '/includes/functions.php';

after:

if($cachedata)
{
$view->class = $cachedata['class'];
$view->title = $view->widget_title = $cachedata['title'];
$view->description = $cachedata['description'];
$view->users = $cachedata['users'];
$view->type = $cachedata['type'];
$view->user = $cachedata['user'];
$view->useravatar = $cachedata['useravatar'];
return;
}

it should fix the issue.

Carnage
02-10-2011, 05:39 AM
Fatal error: Trying to get widgettype class from invalid widgettype '25' on line 270 in [path]/packages/vbcms/types.php in [path]/vb/vb.php on line 287

Where abouts is that error appearing? admincp or front page?

Fready
02-10-2011, 09:14 AM
Where abouts is that error appearing? admincp or front page?

Admin CP, Widget manager.
When I click on the widget manager it shows a long list of errors.
and I can no longer us the widget manager.
I deleted the folders I uploaded and took out the xml but the whole load of errors are still there.

Fready
02-10-2011, 09:15 AM
If I sent you log in details to my Admin CP do you think you could have a look and try to help to fix this problem?

pinoypot
02-11-2011, 03:47 PM
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]

Gemma
02-11-2011, 04:18 PM
Nice addition. Thanks :)

Fready
02-12-2011, 05:10 AM
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:
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.
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.

Carnage
02-12-2011, 09:20 AM
I'll be releasing a fix for this issue asap.

New Joe
02-12-2011, 01:07 PM
I'll be releasing a fix for this issue asap.

And fast mate.

Carnage
02-13-2011, 09:05 AM
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.

Brandon Sheley
04-15-2011, 01:03 PM
I updated the widget, cleared the cms cache but the avatars aren't showing up (http://general-forums.com/articles/).
Did I miss something?
Thanks

doctorsexy
04-17-2011, 09:06 AM
Dose this work with 4.1.2.....

Brandon Sheley
05-09-2011, 02:43 PM
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..

hyperviperx99
06-04-2011, 04:26 AM
Does this work? Hmm...

cykelmyggen
06-17-2011, 07:58 AM
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:
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 error: Trying 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

cykelmyggen
06-17-2011, 08:23 AM
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

CoZmicShReddeR
06-24-2011, 12:55 AM
Same boat here guess I missed this posting been working with VB to resolve mine not sure if mine was caused from removing something dependent with cms now...

Carnage
07-09-2011, 07:24 AM
I'm trying to get the bug http://tracker.vbulletin.com/browse/VBIV-11264 bumped up the queue for fixing as its fairly trivial.

DeanoUK
07-09-2011, 10:16 AM
Installed it but doesn't appear in Widget list.

GamersChallenge
11-05-2011, 04:01 PM
I need to edit the template for this widget to match my layout but I cant find it. where is it?

edit: nvm I founded, had to look it in the .xml file.

Darkfire122333
01-14-2012, 04:38 PM
Problem... My top posters list never updates. Any ideas?

cuco88
06-17-2012, 07:07 AM
Throws out an error on 4.2.0