![]() |
Newbie Question - How To Add Links To The Navbar?
Hi there,
I've got a new style on my forum (WebChat) and I was trying to add/remove some links to the navigation bar at the top of the forum. I can go to my admin CP and find the navbar, but I don't really understand the code and don't know which bit to delete (wanted to get rid of the calendar) and I didn't know how to add a page link to an external website. I heard that it might be easier to get a navbar mod - any idea where I can get this and how to use/install it? Thanks for any help |
See these articles. They should help you out.
How To Add Additional Links To Your Navbar How To Add Drop Down Menus To Your Navbar |
Hi thanks, thats helpful, but just one problem - I don't know where to add the links. I can get to my navbar code from my admin CP but theres quite a lot of code and I'm not sure where to put the links. Also I am using a different style for my forum so I'm not sure if it would be different to the default code?
Thanks again |
It may be different. You can always post your navbar template here, or the part you think it is in, and tell us what you want and we can see if we can help you out.
|
Hi again, thanks again for the reply. Here is all of my navbar code (I was unsure as to where the links are meant to go):
Quote:
Thanks for any help |
That does not look like what we need. Go to vboptions > General Settings > Add Template Name in HTML Comments > set to Yes . Then go back to your page and view the source code, find the navbar links, and you will see the name of the template called around your part of the code. Then post the contents of that template.
|
Hi thanks for the help again Lynne. I found this code in my sourcecode:
Quote:
Thanks again :) |
That is the source code, but we need the template. I posted how to turn on the option to put the template name in the source code, do that and find the template name.
|
I think This member has a custom style. The button code is missing from the code in the first part of this thread, which would leave me to assume it's located in another template such as the header.
|
Thanks for the reply again.
I did turn on the option to put the template name in the source code. I went to my admin CP and then turned on the Template Name in HTML Comments option. Then I went to my forum and viewed the source, and copied and pasted the above. Is there something that I'm not doing/doing wrong? |
Would be much easier if you could post a link to your forum, or PM me a link. I'd be happy to help but playing guessing games as to where you need to make edits isn't getting us anywhere :)
|
Quote:
So should I be looking in files other than the navbar one? Thanks |
Quote:
|
|
Your navbar links are in your header template. If you post that, and let us know what links you want removed and which you want added (and where), then I think we can help you with it. (We just need to see the part of the header up to the "<!-- / NAVBAR POPUP MENUS -->" line.)
|
Thanks for the reply and help again. Here is the code from the Header part of the style:
Quote:
|
To delete the calendar, remove this line:
Code:
<a href="calendar.php$session[sessionurl_q]">Calendar</a> Code:
<a href="yourpage.php$session[sessionurl_q]">Your Page</a> |
Thanks again Lynne, much appreciated :)
One more question - how do I go about linking to an external link, not a .php one? I mean, this wouldn't work, would it?: Quote:
Thanks again for all the help :) |
I think you can link to anything in your navbar unless you have some setting on your site that doesn't allow outside links.
|
Thanks again Lynne.
Would this line of code work though as a link to an external site? <a href="http://www.myurl.com/$session[sessionurl_q]">My URL</a> Do I need the "$session[sessionurl_q]" directly after the URL? Thanks for any more help :) |
Does anyone know how to link to an external website on the navigation bar of the forum?
Would this line work? Quote:
Thanks for any help offered |
Session IDs are used when users have cookies disabled.
|
If you are linking to another site, then you don't need the session id. That is just used on your own site.
|
Definitely, it would be potentially dangerous as well.
|
Ah right okay, thanks guys.
So when linking out to the site I should simply do it in this way?: Quote:
Thanks again for all the help |
If you are linking to another site, then just use the url. In other words, if your site is at yoursite.com and you want to link to anothersite.com, then you would do it how you posted above.
|
All times are GMT. The time now is 10:29 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|