![]() |
NJAquaman - Custom Template Global Variables
1 Attachment(s)
What: A Simple Plugin To Give you Global Custom Variable of Your Choice, in any template
of Your Choice! This will display a custom variable that you define. Great For Widgets ! WORKS WITH ..!!! 4.0.x Browser Comparability (All Latest Versions); Internet Explorer Firefox Opera Safari Google Chrome Install: 1) Navigate to ACP> Plugins & Products > Add New Plugin 2) Product : Vbulletin Hook Location : global_start Title : Global Weather Var Execution Order : 5 3) Insert the Code; Code:
$weather = ' Todays Weather Is Party Cloudy '; Notes: - In the $array part is where you put the variable you are going to use in this format; $array = array('weather' => $weather,'rain' => $rain); or $array = array('weather' => $weather,'rain' => $rain, 'snow' => $snow); ect ect ... - Next you need to define the Var and what will show up like this ; $weather = ' Todays Weather Is Party Cloudy '; or/and $rain = ' Alot of it'; ect ect ... - Last you need to Define what template will use the code like this; vB_Template:: preRegister('vbcms_widget_weather', $array); ("vbcms_widget_weather" is the template name) -If you are going to put this in a widget create a custom temple before you start this process and make the widget use the template you created.Then Put the Variables in the Template. 4) Save 5) Put the {vb:var weather} and {vb:var rain} code in a the template of you choice to view. DONT FORGET TO CLICK INSTALL __________________________________________ Change Log ----- |
I think a lot of your recent "plugins" belong in the Forum under VB4 Programming.
IMO... No offense... |
Any demo plzz
or pic tagged thanxx |
Quote:
thank you for your interest Cory! |
All times are GMT. The time now is 11:30 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|