The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
I just upgraded to vB4 and lost the custom navigation bar (and all my custom colors and styles) that I had painfully modified in my previous vB3 version.
Right now I'm looking to add ONE SIMPLE LINK to the default navigation bar (the bar that shows "New Posts Private Messages FAQ etc etc") before the "New Posts" link that says "Home" and links to the home page on my site. Unfortunately I'm not a vBulletin programmer and I'm a total newbie when it comes to this type of customization/modification, so please give me very detailed instructions. PLEASE don't refer me to the Articles forum, or tell me that there are a number of good threads already out there. I've already done a number of searches and found them all VERY confusing and not detailed or specific enough for my simple problem. Thanks in advance!!! |
#2
|
|||
|
|||
![]()
Here you go - https://vborg.vbsupport.ru/showthread.php?t=228492
|
#3
|
|||
|
|||
![]()
Hi Charlie98902,
Thanks for you help, but I've already looked at that thread and could not figure out how to adapt it to my needs. Sorry, but as I said I'm NOT a programmer and I dont know what "sample.php?" means. What I need is detailed instructions on how to insert the word "Home" on the navigation bar and have it linked to "http:\\www.MySite.com" Thanks, Steve |
#4
|
|||
|
|||
![]() Code:
<li><a href="http:\\www.MySite.com{vb:raw session.sessionurl}">Home</a></li> |
#5
|
|||
|
|||
![]()
Once again, thanks Charlie, but I need to have detailed instructions on EXACTLY where the right place to put it is, and EXACTLY how to put it there.
Thanks, Steve |
#6
|
|||
|
|||
![]()
Find in the navbar template:
Code:
{vb:raw template_hook.navbar_start} <vb:if condition="$show['searchbuttons']"> Code:
<li><a href="http:\\www.MySite.com{vb:raw session.sessionurl}">Home</a</li> |
#7
|
|||
|
|||
![]()
To avoid having the edit the template you can do this too. Both are only going to appear when the forum tab is active.
Populate $template_hook['navbar_start'] using hook process_templates_complete. Create a new plugin on hook process_templates_complete Use this php code. Edit the link as necessary. PHP Code:
|
#8
|
|||
|
|||
![]()
Yep works well too. Can you change
Code:
<li><a href="' . $vbulletin->options['bburl'].'/index.php? |
#9
|
|||
|
|||
![]()
Hi Charlie,
That worked, but there's two problems: 1) The words "New Posts" are highlighted 2) When I move the cursor over the words "New Posts" both "Home" and "New Posts get underligned. |
#10
|
|||
|
|||
![]() Quote:
Code:
$template_hook['navbar_start'] = '<li><a href="http://www.cpurigs.com/">computer help forum</a></li>'; |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|