vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4 Articles (https://vborg.vbsupport.ru/forumdisplay.php?f=242)
-   -   [HOW TO - vB4] Create a New Tab in the navbar (with template) (https://vborg.vbsupport.ru/showthread.php?t=228313)

RiskyBusin3ss 10-04-2010 07:39 PM

Hello,
I am a newbie, please help. Where do I create a template and how am I going to upload to my site.
Second, how do I suppose to "Create a plugin at the hook process_templates_complete" with PHP codes.

I am just really lost and do not know where to begin. Thank you.

Jack.rG 01-12-2011 12:10 AM

im new to this where do create a new templete

wpeloquin 02-16-2011 10:32 PM

Just wanted to say that i used a hybrid between yours and Lynne's walkthrough. I offloaded just the menu items to a template. Thanks for the help ragtek!

https://vborg.vbsupport.ru/showpost....&postcount=393

HMBeaty 03-13-2011 11:37 PM

Awesome! Thanks for this! Was slightly confused til I tried Lynne's instructions with adding a tab, then I came back to this one and understood (been away from vBulletin for quite awhile)

worried 04-04-2011 05:26 AM

Quote:

Originally Posted by gabrielt (Post 1962796)
Hello,

Adapted this to create a link to my main website:

Plugin "Main Website Button", on process_template_complete:

Code:

$template_hook['navtab_middle'] .= vB_Template::create('Link to Main Website')->render();
Template "Link to Main Website":

Code:

<vb:if condition="$vboptions['selectednavtab'] == 'mainwebsite'">
<li class="selected">
<a class="navtab" href="{vb:raw vboptions.homeurl}">{vb:raw vboptions.hometitle}</a>
<ul class="floatcontainer">
<li><a href="#">#</a></li>
</ul>
</li>
<vb:else />
<li><a class="navtab" href="{vb:raw vboptions.homeurl}">{vb:raw vboptions.hometitle}</a></li>
</vb:if>

Enjoy!

Exactly what I was looking for. :)

curriertech 04-04-2011 07:13 PM

This is a great tutorial! Does anyone know how I can retain the sublinks that show just below the tab bar on the forum tab, across all active tabs?

scorpionv 04-10-2011 04:00 PM

hi, great tutorial.

little question
my custom page is a clone of content that displays a list of articles on a given section, how can i make those links to point to my page 'news.php' instead of the default 'content.php'?

regards

Master Lucas 05-01-2011 01:57 AM

Is this as easy as adding a Drop down menu, I see those a lot

Daisyboo 07-27-2011 12:16 PM

Quote:

Originally Posted by gabrielt (Post 1962796)
Hello,

Adapted this to create a link to my main website:

Plugin "Main Website Button", on process_template_complete:

Code:

$template_hook['navtab_middle'] .= vB_Template::create('Link to Main Website')->render();
Template "Link to Main Website":

Code:

<vb:if condition="$vboptions['selectednavtab'] == 'mainwebsite'">
<li class="selected">
<a class="navtab" href="{vb:raw vboptions.homeurl}">{vb:raw vboptions.hometitle}</a>
<ul class="floatcontainer">
<li><a href="#">#</a></li>
</ul>
</li>
<vb:else />
<li><a class="navtab" href="{vb:raw vboptions.homeurl}">{vb:raw vboptions.hometitle}</a></li>
</vb:if>

Enjoy!

I tried this but nothing is showing. All I want is a button linking to another website :(:erm:

225 08-15-2011 09:43 PM

awesome, works great


All times are GMT. The time now is 08:38 AM.

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.01217 seconds
  • Memory Usage 1,747KB
  • 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
  • (4)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete