PDA

View Full Version : import variables from plugins


mpage
29 Dec 2007, 22:18
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
30 Dec 2007, 02:17
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