vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=168)
-   -   Creating "Hello World" Plugin (https://vborg.vbsupport.ru/showthread.php?t=181103)

imported_silkroad 05-31-2008 12:31 PM

Creating "Hello World" Plugin
 
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 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 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!


All times are GMT. The time now is 07:00 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00985 seconds
  • Memory Usage 1,720KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete