View Full Version : How do i add links to the navbar
rrokdoka
11-23-2005, 08:30 PM
I was wondering how you add links to the navbar. I want to add Home, Forums, Gallery, Chat, and Radio on the top of the navbar, like in this webpage
http://www.glorifythepast.com/forums/
where they have Home, Forums, Photos, etc. on the top.
Does anyone know how to do a template for a navbar like this with the links I stated or if someone will do the coding.
I will give you the destination links:
Home: http://www.rrokdoka.org
Forums: http://www.rrokdoka.org/forum.php
Gallery: http://www.rrokdoka.org/vba_gallery/
Chat: http://www.rrokdoka.org/javachat.php
Radio: http://www.rrokdoka.org/vBRadio.php (open up in a new page)
Thanks a lot.
Drago912
11-24-2005, 08:14 PM
open your navbar template....you should be able to see in there the links for calandar, faq...etc. Add this <td class="vbmenu_control"><a href="XXXXX/index.php?$session[sessionurl]">XXXX</a></td>
of course the red x's are where you would place the proper path and the text you want to appear in the navbar.
hope this helps.....:)
rrokdoka
11-25-2005, 02:44 AM
How do i add part of my menu on the top part of the navbar.... and the stuff you said earlier works =] thanks
rrokdoka
11-25-2005, 07:41 AM
hmmmm... i put my homepage exactly the way you told me and it works fine but when i go to gallery and then i click home it doesnt take me to my home but takes me to the gallery homepage.... any help would be appreciated!
Nandakal
11-25-2005, 08:40 AM
Had same problem, add the full path?
i.e. /directoryname/index.php or /index.php
Just index.php loaded the wrong index for me :)
- N.
rrokdoka
11-25-2005, 01:49 PM
That worked! Great! But do you guys know how i can add some more links to the navbar cause its getting a little crowded on the bottom and i want to move some of them up. So it can have links at the top of the navbar too. Like look here: http://www.glorifythepast.com
Drago912
11-25-2005, 03:43 PM
not sure on that......I think that may be the skin but Im not sure.
attroll
11-25-2005, 05:42 PM
Why don't you take my Additional Navbar (http://www.vbulletin.org/forum/showthread.php?t=65198) hack from VB.org and create a navbar3 with it. If you need some help with it let me know I can do something for you.
rrokdoka
11-26-2005, 12:33 PM
yeah i tried your additional act but it didnt work on my homepage .... every other page it worked on and i couldnt get it up high lol
Anyone else that can help?
attroll
11-26-2005, 01:01 PM
The reason it will not show up in your hompage is because you have to add this if you using vBadvance CMPS:
In your includes/vba_cmps_include_bottom.php file try looking for:
global $pages, $stylevar, $headinclude, $header, $footer, $vbulletin, $vbphrase, $stylevar, $show, $pmbox, $vba_options, $vba_style, $navbar, $cusid, $_REQUEST, $gobutton, $pagetitle, $pagecache, $db;
Replace that with:
global $pages, $stylevar, $headinclude, $header, $footer, $vbulletin, $vbphrase, $stylevar, $show, $pmbox, $vba_options, $vba_style, $navbar, $cusid, $_REQUEST, $gobutton, $pagetitle, $pagecache, $db, $navbar2;
libertate
11-26-2005, 01:47 PM
You could of course just edit your template "navbar", and add an other table row...
Find:
<!-- nav buttons bar -->
<div align="center">
<table
This is where your menu starts.
Find the matching below it:
</tr>
</table>
</div>
Insert new row of menu options above </table> and below the </tr>.
Use the other <TR>'s and <TD>'s from first row as example.
attroll
11-26-2005, 04:40 PM
I found and easier way to get this working with vBadvance CMPS and just updated the hack on VB.org.
vBadvance CMPS using vB 3.5 or higher. To get this working with the homepage you will have to do the following.
Go into your ADMINCP-->vBa CPMS-->Default Setting-->Portal Output Global Variables and add navbar2 in the block there and save it.
rrokdoka
11-27-2005, 04:45 AM
Awesome hack man. It worked perfectly fine... i just wanted to know if someone knew how i can make the radio link open up in another page, instead of opening up on the same page...
Thx attroll
attroll
11-27-2005, 01:31 PM
You can do this by using your CMPS. There may be an easier way for doing this but I have not figured it out yet. Lets you radio.htm for our example.
1. First you will have to create a HTML file(radio.htm) and within that file put this:
<IFRAME SRC="http://www.radio-web-site.net" width="100%" HEIGHT=1900 TITLE="Your radio linkThis is a test page">
</IFRAME>
You will have to change that code and put the radio link that you want.
You may also have to change the height and width of the table above to have it fit correctly on your page.
2. Upload the radio.htm file to you server. I will use this example using the forum directory, but you can change it to where ever you want.
3. Now go to your ADMINCP==>CMPS==>Add Page and pick HTML File
Create a page and make it a HTML page.
Page Title - Name your page
Page Identifier = radio (you can change this to what you want)
Page Active = Yes
Path to File = ../forum/radio.htm
Now scroll down and remove the check mark from the Modules Enabled area for the modules that you do not want to include. Depending on how you want this page to look.
You will have to leave the Custom Page Content check marked for this to work.
Now save this.
If you CMPS is set up right then you should be able to use this link if this is your web site.
http://www.glorifythepast.com/index.php?page=radio
rrokdoka
11-28-2005, 01:30 PM
i want it to be the same page but let it open up in another page. You kno what im saying?
attroll
11-28-2005, 01:57 PM
i want it to be the same page but let it open up in another page. You kno what im saying?
I think I know what you mean. You would still have to do the steps I meantioned above and create a page in CMPS. Then after you have that working you need to create a link like this in you navbar:
<a target="_radio" href="http://www.glorifythepast.com/index.php?page=radio">Radio</a>
hyppa
01-08-2008, 06:31 AM
Excellent!
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.