vBulletin

Thank you for visiting. This is our website archive. Please visit our main website by clicking the banner above.
vBulletin FAQ is dedicated to helping the forum owner build, manage and profit from his vBulletin Forum
vBulletin Web Hosting - Free skins and styles for your vBulletin - Search Engine Optimization




Some CRITICLE navbar Editing Questions

SIC
10-01-2007, 11:54 PM
Hey Fellow vBul Users

I was just after a quick bit of help.. This may also help other vBul users too.

I have been searching high and low and cannot find a tutorial on how to edit the navbar in vBul 3.6.8..

I have no problems finding what i need to find in the navbar template:

ie (for the UserCP tab):
<if condition="$show['member']">
<td class="vbmenu_control"><a href="usercp.php$session[sessionurl_q]">$vbphrase[user_cp]</a></td>
</if>

But i don't know how to edit any of it! <-- I'm not a coder and stuff like usercp.php$session[sessionurl_q] and also $vbphrase[user_cp] - confuses me quite a bit!

I wish to know... In detail (a tutorial would be fantastic.. If there is one can i please get a link?)

1. How do i make it say something else ie UserMenu instead of UserCP?

2. How do i delete the ones i dont want?

3. How do i add more custom ones?

4. How do i make a Drop Down (Quick links style) Menu?

5. The Complicated one.... How do i make some only appear when you are signed in

Cheers Everyone

Half Pint
10-02-2007, 01:11 AM
1. How do i make it say something else ie UserMenu instead of UserCP?
- Goto the AdminCP --> Languages & Phrases --> Phrase Manager
and find the 'user_cp' and click the edit button, now change what you want it called.
Note: You may also want to change the 'user_control_panel' too.

2. How do i delete the ones i dont want?
- While editing the template just delete the parts you don't want that have the <td> </td> tags. Some collumns may have <if condition="$show[VARIABLE]"> </if>, if they do u need to delete those tags too.

3. How do i add more custom ones?
- To add extra links just add this code where you want it to be displayed:
<td class="vbmenu_control"><a href="Link">Link Name</a></td>
- Edit Link to what ever the http://yourdomain.com is, and edit Link Name to say whatever you want it to say i.e: 'Home'

4. How do i make a Drop Down (Quick links style) Menu?
- Just do this
Find: <!-- NAVBAR POPUP MENUS -->

Below Add:
<div class="vbmenu_popup" id="menuname_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">
<tr><td class="thead" align="$stylevar[left]">NEW MENU</td></tr>
<tr><td class="vbmenu_option" align="$stylevar[left]"><a href="link to url" rel="nofollow">DISPLAYED TEXT</a></td></tr>
<tr><td class="vbmenu_option" align="$stylevar[left]"><a href="link to url" rel="nofollow">DISPLAYED TEXT</a></td></tr>
</table>
</div>

second thing you do is create your navbar button: such as the one below (and place it whereever you want)

<td id="menuname" class="vbmenu_control"><a href="link to url"><b>LINK NAME</b></a><script type="text/javascript"> vbmenu_register("menuname"); </script></td>

The parts in bold are the important parts to get the dropdown to work, make sure they match.

5. The Complicated one.... How do i make some only appear when you are signed in?
- Before the <td> tag of the collumn you want to display to members only add the:
<if condition="$show['member']"> and after the </td> of said collumn add: </if>

Hope that helps!
Half Pint

SIC
10-02-2007, 01:30 AM
Hope that helps?

You are a genius.. :D

I am confused however to the Language change (question #1)... Meaning... I cant edit where it says UserCP... or do i add it into the translation box?

And Question #4
menuname_menu what do i exactly call this... i take it menuname (or whatever i name it ie membersthings_menu) stays the same on all 3 (obviously i can call it what i want? or can i?....) but the _menu does that have to stay the same? meaning do i have to leave that as MENU and cant have membersthings_tabs?



**EDITED AND ADDED...

<td id="menuname" class="vbmenu_control"><a href="link to url"><b>LINK NAME</b></a><script type="text/javascript"> vbmenu_register("menuname"); </script></td>

what goes in the bold if it is a popup/dropdown menu?

I am sending you a quick pm.. I hope you don't mind :D

Half Pint
10-02-2007, 08:17 AM
1 - Yeah sorry, i ment add it to the translation box.
4 - make menuname what ever you want, but the one that has _menu at the end must have _menu at the end it cannot be changed!
4 Continued - Link Name - is the option in the drop down menu for example 'Edit Profile' the - Link to URL - is the atual address to that page, for example 'http://yourdomain.com/profile.php'

I just replied to your PM too. Sorry it took so long, i had to go to school....
Thanks, hope that helps abit more...
Half Pint

P.S. I Feel Like a Mod, I Have Never Really Help Someone So Much.... lol

SIC
10-02-2007, 09:32 AM
Thanks for that Half Pint!

I have sent you another PM mate :D

And letting everyone know... I have now pretty much (with the help from Half Pint's Reply) taught myself and completed the nav bar now with two (about to make third) Popup Menu's :D

When i have completed I am going to write, IN GREAT DETAIL FOR vBul n00bs SUCH AS MYSELF, a tutorial!

I will also post my board once it is open... I believe in a complete board before opening :D

Take care all

Half Pint
10-02-2007, 10:24 AM
Glad i could help you out!


vBulletin

seo book

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum