Log in

View Full Version : PlugIn HowTo?


David Fordham
02-16-2007, 12:37 AM
Hi all,

I am looking for any documentation / help on learning how to develop vb Plugins. I am looking to put some PHP code in the header of some pages we are developing and was told I would need to do it via a plugin. Is there a vb Plugin 'Hello world' someone can point me to?

I have tried looking though some code (the vb ad management system) but got lost pretty quick. Figured it would be better to start with something small and "Hello world" is a nice baby step for me.

Thanks for your time!

David Fordham

Marco van Herwaarden
02-16-2007, 07:15 AM
<a href="https://vborg.vbsupport.ru/forumdisplay.php?f=184" target="_blank">https://vborg.vbsupport.ru/forumdisplay.php?f=184</a>

Marco van Herwaarden
02-16-2007, 12:23 PM
Putting a Hello world in the header would be as simple as creating a plugin at the global_start hook location with teh following code:
global $helloworld;
$helloworld = "Hello World";

Now you should be able to use $helloworld in your templates.