Hello ragtek, I want to call this widget using a template. I've already create a plugin with the code you've suggested. Could you tell me how to include the $output variable into a template? I'm using vb4.0.6
Thank you
--------------- Added [DATE]1285853151[/DATE] at [TIME]1285853151[/TIME] ---------------
Ragtek , you've post on vbulletin.com this code to use like a plugin into vbulletin :
Code:
bootstrap_framework();
vBCms_View_Widget::registerTemplater(vB_View::OT_XHTML, new vB_Templater_vB());
$widgetID = 20; // the id of the widget
$widgettype = 'RecentContent';
$widget = vBCms_Widget::create('vBCms', $widgettype, $widgetID);
$output = $widget->getPageView()->render();
$templater ->register('widget', $output);
Using this
into the template to call the plugin .
But If I do it, I get this error :
Fatal error: Call to a member function register() on a non-object in /var/www/vhosts/mydomain.com/httpdocs/new/forum/global.php(29) : eval()'d code on line 8
Do you know how to solve this, please?
Thank you
o