Watching this one with great interest!
|
Hi,
The code looks like: bootstrap_framework(); vBCms_View_Widget::registerTemplater(vB_View::OT_X HTML, new vB_Templater_vB()); $widgetID = 32; // the id of the widget $widgettype = 'ExecPhp'; // type of the widget you want to output $widget = vBCms_Widget::create('vBCms', $widgettype, $widgetID); $output = $widget->getPageView()->render(); But it throws error for non object as: Fatal error: Call to a member function getConfig() on a non-object in \packages\vbcms\widget\execphp.php on line 160 Can some body help me in this?? |
same for me.
|
Looks like a bug to me, in packages/vbcms/widget/execphp.php. In function getPageView() the first line is
PHP Code:
but the line that loads the widget doesn't get called until later: PHP Code:
so you could try moving the assertWidget() line to the beginning of that function, or in your code you could add a call to $widget->getConfigView() before the call to getPageView(). |
Did somebody actually get this to work? I too am looking for the section widget to display on the forums
|
I hv create the new plugin with below given Code with global start.
bootstrap_framework(); vBCms_View_Widget::registerTemplater(vB_View::OT_X HTML, new vB_Templater_vB()); $widgetID = 16; // the id of the widget $widgettype = 'SectionNavExt'; // type of the widget you want to output $widget = vBCms_Widget::create('vBCms', $widgettype, $widgetID); $output = $widget->getPageView()->render(); But how to apply this on all pages . As i added {vb:raw widget} on the forum dispay page also. can u explain me full process . --------------- Added [DATE]1322124074[/DATE] at [TIME]1322124074[/TIME] --------------- I hv created the plugin from the above given code with global_start. And added {vb:raw widget} on forum display template. After doing this form display is white page. I hope i m doing something wrong .so can u explain full process to add widget on each page. |
hi i have waited a lot for the help, i have posted this query over vbulletin site and they gave me reference for this side but i am not getting any reply yet,pls help me in this query
thankyou. |
All times are GMT. The time now is 02:29 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|