Back to vBulletin Tips & Tricks

Use vBCms Widget everywhere
by ragtek 22 Jun 2010

Here is a method, how to use the widgets on own pages.

1. fix this bug: http://tracker.vbulletin.com/browse/VBIV-7640
2. Now you can use the following code where you want (plugin, own php page):
PHP Code:
bootstrap_framework();
vBCms_View_Widget::registerTemplater(vB_View::OT_XHTML, new vB_Templater_vB());

$widgetID 32// the id of the widget

$widgettype 'Static'// type of the widget you want to output

$widget vBCms_Widget::create('vBCms'$widgettype$widgetID);
$output $widget->getPageView()->render(); 
3. Now the output is saved in the $output variable, which can be placed where you want

Similar Mods

vBulletin CMS Widgets 3x CMS widget : Widget with 3 tabs, like on Blogs page. vBulletin 4.x Add-ons

vblts.ru supports vBulletin®, 2022-2024