![]() |
modding the navbar
can someone tell me how i make changes to the navbar?
i have a customised style and have removed all other styles including all the default ones. now the navbar links should look like this User CP / FAQ / members list / calendar / new posts / search / quick links / log out all the links are there and are working correctly but the text saying 'members list' 'new posts' 'quicklinks' is not there. These links do work, its just that there it no text saying what the link is to. Can someone tell me how i make changes to the navbar as i am new to making forums. I am sure i have to edit the navbar template code in someway but im not sure how. I thought i would search the navbar tenplate for calendar as that link text shows up fine and maybe i could see where that was and work it out from there. But I could'nt find it. So i am now stuck. |
Look for the phrases that should be connected to those.
|
sorry what do you mean? the php filenames that they link to?
|
Look in your navbar template. Do you have a line like this:
<a href="$vboptions[bburl]/memberlist.php$session[sessionurl_q]">$vbphrase[members_list]</a> That is the link to the memberlist page and the text is from a phrase called "members_list". So, go into Admin CP > Language & Phrases > Search in Phrases > put in "members_list" and click next to Phrase Variable Name Only and hit find. See what is in there. |
Thank you, Lynne. I should have explained it better, sorry.
|
Quote:
|
ahh i see there is a seperate template called phrases that i need to edit.
yes that is clarified better lol. thanks for your help both of you i will go and try that now |
Quote:
|
i went to the navbar template and i cant even find members.php when i search it.
any other suggestions? |
Then it's probably not even there, so add it. Something like this for memberlist:
Code:
<td class="vbmenu_control"><a href="memberlist.php">Member List</a></td> |
but the link works, i just dont see the text
|
Quote:
|
I think he needs to search for the phrase for the memberlist in the navbar.
|
Instead of everyone guess what you have in your navbar, maybe you can just copy/paste the contents here and we can help you out.
|
LOL The voice of reason. I was hoping to win a prize if I guessed right. ;)
|
yes sorry i should have done this in the first place
NavBar template Code:
<div class="spacer"></div> |
Your navbar is actually not defined in the navbar template.
Go to vboptions > General Settings and turn on the option to put the Template Name in the HTML source code. Then, go back to your page and view the page source (control + u maybe on a PC?) Then search for part of the navbar and see what template it appears in. That is the code we need to see. |
ok this is the bit your after i think.
looking at it i can see after "calender.php" there is "Calender" but after "memberlist.php" there is nothing so i am guessing this is where my problem is. I would also hazard a guess that this info is held in a template called "css_nav", i i cant find that template. maybe i not right though im not sure. Code:
<!-- nav buttons bar --> |
You need to do as I suggested and turn on the option to put the Template Name in the HTML code. We need to know that Template Name so you can find it and post the contents and then we can help you. If you can't find the template, then we can't help you. And no, it has nothing to do with "css_nav", that is just the css class. However, you might be able to do a search in your templates for "css_nav" and that might help you find the template if you aren't going to turn on the option to put the name in the source code.
|
1 Attachment(s)
Quote:
|
Well, you are giving me the source code. I wanted to see the template. You were supposed to get the template name out of the source code and then post that template. However, seeing the full source code allowed me to find the template name myself, it is the header template. So, you need to post the header template here for us to see what is going on with your links.
|
ok sorry about, i am new to all this.
Is this right? Code:
<!-- logo --> |
OK, now we are getting somehwhere. I will show you what to do with the memberlist one and I'm sure it is similar for the others.
Here is the line in the code for the memberlist: Code:
<td width="78" height="34" class="css_nav"><a href="memberlist.php$session[sessionurl_q]">$vbphrase[vb_members_list]</a></td> Find each of the terms you are missing, search for the phrase and edit it and you should have it working. |
ok thanks very much for your help and your patience.
I will go and try it now and report back how i get on. --------------- Added [DATE]1207169473[/DATE] at [TIME]1207169473[/TIME] --------------- lol yeah i see how to di it now and i see what the problem was. I couldn't find a template called vb_members_list so it was obviously trying to call a template that wasn't there. I have changed it to the default as you suggested and is now perfect. thanks very much for your helpful and sppedy answers. --------------- Added [DATE]1207170442[/DATE] at [TIME]1207170442[/TIME] --------------- sorry 1 more thing how do i change it for new posts link and the quicklinks menu? i thought i would be able to figure it out myself but those 2 are a bit more complicated. |
All times are GMT. The time now is 12:21 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|