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

Quote:

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.
PHP Code:

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 


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

Quote:

Originally Posted by Carnage- (Post 2024860)
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

Quote:

Originally Posted by rossco_2005 (Post 2084237)
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

Quote:

Originally Posted by Brandon Sheley (Post 2133602)
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

Quote:

Originally Posted by Brandon Sheley (Post 2133602)
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

Quote:

Originally Posted by Juggernaut (Post 2138405)
How were you able to get it to work again? can you provide the solution?

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

Code:

<?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.

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

Quote:

Originally Posted by 210665 (Post 1986614)
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:

Code:

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

Quote:

Originally Posted by Carnage (Post 2159488)
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

Quote:

Originally Posted by Carnage (Post 2160680)
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:
Quote:

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

Quote:

Originally Posted by Juggernaut (Post 2160864)
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

Quote:

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

Quote:

Originally Posted by Carnage (Post 2160882)
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 :)


All times are GMT. The time now is 01:38 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.01435 seconds
  • Memory Usage 1,845KB
  • 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
  • (2)bbcode_code_printable
  • (1)bbcode_php_printable
  • (13)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