PDA

View Full Version : import variables from plugins


mpage
12-29-2007, 08:18 PM
Not sure if I should be asking these sorts of things here or .com

but If I have just created a simple pluging(in Postbit_diplsay_complete), say:

title: xyz

global $vbulletin;
if (stristr($thread['title'],'a title')){
$dirlink = "a title";
print $dirlink;
}

how can I know import $dirlink so that I can use it within a template, for example: navbar

Zaiaku
12-30-2007, 12:17 AM
The easiest way I would think of is just making a small plugin and have it execute globally.

Nice help here from the vb manual. -> http://www.vbulletin.com/docs/html/main/writing_plugin_code
Also -> http://www.vbulletin.com/docs/html/plugin_system