View Full Version : Creating "Hello World" Plugin
imported_silkroad
05-31-2008, 12:31 PM
Sorry for such a dumb question.
I did read the vB manual butdid not find how to make a very simple plugin.
Basicallly, I modified a navbar template, manually.
I want to covert this manual modification to plugin.
What is "hello world" way to do this?
Thanks!
Lynne
05-31-2008, 02:34 PM
You might want to look in the vBulletin Articles (https://vborg.vbsupport.ru/forumdisplay.php?f=187) forum for template hooks. You can then use one of the hooks in the navbar to automatically add a link without modifying the navbar template.
imported_silkroad
05-31-2008, 03:59 PM
Yes, that sounds good, thanks.
So, you are saying that the google search code in the navbar that we manually entered, illustratrated here:
http://www.unix.com/forum_index.php
Has a nice hook in the exact right place as illustrated?
Lynne
05-31-2008, 05:12 PM
That search code is in the navbar template, however I do not see a template hook where you would want to add it. There are template hooks to place something on the right or left of the navigation bar itself though.
imported_silkroad
06-01-2008, 01:00 AM
So, I guess that means we need to create our own tempate hook.
This kind of brings us back to the original question, what is the easiest "Hello World" way to do this via a plugin?
Lynne
06-01-2008, 03:13 AM
The Articles forum is where I would start. Doing a search in there for "template hook" gives me this article - [How-To] Using Plugins for Automatic Template Edits (https://vborg.vbsupport.ru/showthread.php?t=151254&highlight=template+hook) That article also links to a couple of other articles.
imported_silkroad
06-01-2008, 03:45 AM
Thanks. I searched but did not find that tutorial.
Excellent. Much appreciated! Thanks again!
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.