![]() |
Showing Plugin output HELP
I am trying to show the output of a plugin I made:
I want to display the variable in the search widget but it does not seem to work. Code:
vB_Template::preRegister('vbcms_widget_searchwidget_page',array('latestposts' => $latestposts)); Code:
vB_Template::preRegister('header',array('test123' => $latestposts)); On another note what is the best hook to use for widgets ? Currently I am using global start |
The Problem is the hook you use. global_start is deprecated and no longer existant in the cms. Use global_bootstrap_complete instead.
|
Thanks cellarius, still does not work on the home page, however the widget is also in my articles template, when I goto the articles page it works fine there.
I did an echo "Executing" to make sure the plugin is executing itself and it does execute on the homepage just does not get put into the widget. here is the code I used. plugin_lastposts.php Code:
<? Code:
require_once('/opt/www/riu/staging/plugin_lastposts.php'); the template code: Code:
<div class="side-bar-box-header"> |
All times are GMT. The time now is 03:33 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|