A friend of mine created a simple plugin so i can sell some ads on my site, but I cant figure out how i call the plugin in a template.
The template I'm dealing with is the postbit_legacy template in vb 3.5.4, so I set the hook location as postbit_display_start and named my plugin 'forum ad'
Here is my plugin php code:
PHP Code:
switch ($forum[forumid]) {
case "1":
$forumad = "this ad will show up in forum #1";
break;
case "2":
$forumad = "this ad will show up in forum #2";
break;
default:
$forumad = "this is my default ad";
break;
}
Lame question time: What do i put in my template to call this plugin?
Thanks in advance,