The Arcive of vBulletin Modifications Site. |
|
NJAquaman - Custom Template Global Variables Details »»
|
|||||||||||||||||||||||||||
|
NJAquaman - Custom Template Global Variables
Developer Last Online: Feb 2014
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 ';
$rain = ' Alot ';
$array = array('weather' => $weather,'rain' => $rain);
vB_Template::preRegister('vbcms_widget_weather', $array);
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 ----- Show Your Support
|
|||||||||||||||||||||||||||
| Comments |
|
#2
|
|||
|
|||
|
I think a lot of your recent "plugins" belong in the Forum under VB4 Programming.
IMO... No offense... |
|
#3
|
||||
|
||||
|
Any demo plzz
or pic tagged thanxx |
|
#4
|
||||
|
||||
|
Quote:
thank you for your interest Cory! |
![]() |
|
|