Register Members List Search Today's Posts Mark Forums Read

Reply
 
Article Options
  #31  
Old 05 Dec 2008, 23:56
24hourForum.com 24hourForum.com is offline
 
Join Date: May 2008
Hi,

Quick question,

<if condition="$show[member]">link code from part one</if>

i have different membership levels and want this code to show for usergroup id: 2 and 11 to only see the link, how can i make this possible? presently all members see it

thank you
Reply With Quote
  #32  
Old 11 Dec 2008, 15:33
goxy63 goxy63 is offline
 
Join Date: Oct 2008
I luv You Kerry-Anne
This helps me a LOT
Reply With Quote
  #33  
Old 11 Dec 2008, 21:12
Kel-D Kel-D is offline
 
Join Date: Nov 2008
Originally Posted by MYCNCUK View Post
The code below will give you a new navbar above and it will also look just like the other (correct borders and so on..)

This is for vB 3.7.1, change the links to what you would like them to be.


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Enjoy !

Demo: www.mycncuk.com
Works perfectly! Thanks mate!
Reply With Quote
  #34  
Old 04 Jan 2009, 20:22
Bobbrown Bobbrown is offline
 
Join Date: Mar 2008
Thanks, seem ok n 3.7.4pl1
Reply With Quote
  #35  
Old 23 Jan 2009, 06:50
abqtj abqtj is offline
 
Join Date: Nov 2008
Thanks for posting this!
Reply With Quote
  #36  
Old 25 Jan 2009, 13:34
raja811 raja811 is offline
 
Join Date: Oct 2006
thanks
Reply With Quote
  #37  
Old 07 Feb 2009, 23:08
bposner bposner is offline
 
Join Date: Feb 2009
Where is this done. Seems simple enough but new to this code. Where are we editing this please?

Thank you
Reply With Quote
  #38  
Old 07 Feb 2009, 23:14
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Real name: Lynne
Originally Posted by bposner View Post
Where is this done. Seems simple enough but new to this code. Where are we editing this please?

Thank you
It should be in the navbar template (Admin CP > Style & Templates > Style Manager > find your style in the list > Edit Templates from teh dropdown > Go > then expand the template list by hitting <<>> )
__________________
Former vBulletin.org Staff Member

Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before.
W3Schools -
Online vBulletin Manual
If I post some CSS and don't say where it goes, put it in the additional.css template.
I will NOT help via PM (you will be directed to post in the forums for help.)
Reply With Quote
  #39  
Old 08 Feb 2009, 01:25
bposner bposner is offline
 
Join Date: Feb 2009
Originally Posted by Lynne View Post
It should be in the navbar template (Admin CP > Style & Templates > Style Manager > find your style in the list > Edit Templates from teh dropdown > Go > then expand the template list by hitting <<>> )
Lynne,
Thank you very much for your quick reply.
I actually got that far before but didn't know what file/template to go to to actually list the code. I see the Navigation/Breadcrumb Templates and a list of four selections, but then I can't find what I'm look for .. I am in the right place, yes?
I am trying to do a simple thing, the sytle seems to have removed the "Forum" or Forum Display link to list all the forums and just trying to get it back

Thank you for your time
Bill
Reply With Quote
  #40  
Old 08 Feb 2009, 04:58
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Real name: Lynne
Originally Posted by bposner View Post
Lynne,
Thank you very much for your quick reply.
I actually got that far before but didn't know what file/template to go to to actually list the code. I see the Navigation/Breadcrumb Templates and a list of four selections, but then I can't find what I'm look for .. I am in the right place, yes?
I am trying to do a simple thing, the sytle seems to have removed the "Forum" or Forum Display link to list all the forums and just trying to get it back

Thank you for your time
Bill
Do you see a template called 'navbar' under the Navigation /Breadcrumb templates? That is the template you need to modify for the navigation bar. If you have another style, it could be that they don't have the navigation in the navbar template. In that case, you need to figure out which template they put them in. To find the template, do this - vboptions > General Settings > Add Template Name in HTML Comments > set to Yes . Then go back to your page and view the source code and you will see the name of the template called around your part of the code. Sometimes the template is the one mentioned at the very top of the page source.
__________________
Former vBulletin.org Staff Member

Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before.
W3Schools -
Online vBulletin Manual
If I post some CSS and don't say where it goes, put it in the additional.css template.
I will NOT help via PM (you will be directed to post in the forums for help.)
Reply With Quote
  #41  
Old 08 Feb 2009, 15:38
bposner bposner is offline
 
Join Date: Feb 2009
Red face

Originally Posted by Lynne View Post
Do you see a template called 'navbar' under the Navigation /Breadcrumb templates? That is the template you need to modify for the navigation bar. If you have another style, it could be that they don't have the navigation in the navbar template. In that case, you need to figure out which template they put them in. To find the template, do this - vboptions > General Settings > Add Template Name in HTML Comments > set to Yes . Then go back to your page and view the source code and you will see the name of the template called around your part of the code. Sometimes the template is the one mentioned at the very top of the page source.
Thank you so much for your time and patience. I foujnd all I need, and want to simply add a link to the full forum display that is now hidden by a logo. So (not know all the variables in this system) want to take this code below and simple have it display the forum list, or forum home with the user clicks. Rather than just building a link www.mysite.com/forum I'm sure there is a command to display the forum, yes?

Here the simple code:

<if condition="$show['member']">
<td><a href="usercp.php$session[sessionurl_q]">$vbphrase[user_cp]</a></td>
</if>



I guess I just need to know what the $show command would be and where to put the actual displayed link.

Thank you!!!!
Reply With Quote
  #42  
Old 08 Feb 2009, 16:46
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Real name: Lynne
You don't want to use that condition around the link. You just want a link - try this where you want it:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

In place of Home, you could put $vboptions[bbtitle] to have your forum title in it's place.
__________________
Former vBulletin.org Staff Member

Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before.
W3Schools -
Online vBulletin Manual
If I post some CSS and don't say where it goes, put it in the additional.css template.
I will NOT help via PM (you will be directed to post in the forums for help.)
Reply With Quote
  #43  
Old 08 Feb 2009, 19:12
bposner bposner is offline
 
Join Date: Feb 2009
Thank you very much.. appreciate the time... It's a learning curve. I use to work on forums many years ago with dial-in BBS Before internet. Same concept, just not use to php.
Thanks a bunch.
Reply With Quote
  #44  
Old 22 Jun 2009, 04:05
belindazhu belindazhu is offline
 
Join Date: Mar 2009
Originally Posted by peterska2 View Post
There is one thing that you never seem to have enough of with a modified vBulletin site, and that is navbar space. This article covers how to add additional links to your navbar both on your regular one, and adding another row to it to stop it getting too busy. Also included in this article is showing and hiding links for guests and members.

Part One: Adding Links To Your Standard Navbar

Scenario used: You have a HTML page on your site with a map to the location of a regular meeting place for people from your site. You need to add the link to this page to your navbar for easy access by your visitors. This page is located at yoursite.com/map.html

To add a link to the additional page (it can be a page within vB or not even on your site) you need to use the following code:
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

This code contains 4 important aspects.


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

This tells you how the link will be displayed. Navbar links use the vbmenu_control class as defined in your CSS so they will always be in this format (Note: Some styles use different formats depending on the level of customization that has been carried out).



Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

This tells us where the link is going to. You can link to a page anywhere on the internet by using this format. If the page you are linking to is in the same directory as your forums then you only need to use the page name, in this case map.html



Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

This tells your browser to open the link in a new window. If you want it to open in the same window then you simply miss this code out.



Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

This displays the title of the link that will be displayed and also ends the link code and section in the navbar.


The best place to add the code for your additional link, is either immediately before or after the link to the calendar
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Part Two: Creating Another Row In Your Navbar

If you have a number of modifications installed that have required additional links on your navbar, it quickly becomes very full. Now you can install a modification to add another navbar to your site, or you can simply create another row in your existing one.

When adding another row, it is important that you use a new table, otherwise your links will be forced into alignment with those on the top row, leaving an unsightly gap at the right side of the row.

In your navbar template, locate the following code:
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

and add below
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Now you have set up your extra row, you can start adding links to it.

First remove the Sample link from the code above by deleting that line from the template. Then using the method from Part One, add your new links to this row. You can move links from the top row by cutting and pasting them into the new row.


Part Three: Showing Links To Guests Or Members Only

There are some things that you really don't want guests to know about. After all, what is the point of showing a guest the link to the usercp when all they will get is a no permissions message? So what can you do about it? Wrapping the whole code for the link in an if conditional will only show the link to those who meet the criteria set.

To show a link to members only use:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

This literally means what it says. If you are a member, then show the link.

The same works for guests:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Using these two conditions, you can show and hide links to guests and members. Any links that do not use a condition will always show.



I hope that this helps with managing links on your navbar better. Feel free to ask any questions related to this.
thanks, reserved.
Reply With Quote
  #45  
Old 14 Aug 2009, 06:48
ilrglen's Avatar
ilrglen ilrglen is offline
 
Join Date: Jun 2008
Real name: Glen Kohut
Here's an interesting problem. What does a guy do when he apparently hits the character limit when adding links? I have a lot on my site and I've pretty much deleted every tab and comment in my navbar to make more room. Any suggestions?
Reply With Quote
Reply

Similar Article
Article Author Type Replies Last Post
Additional Navbar 3.5.3 and up attroll vBulletin 3.5 Template Modifications 91 26 Dec 2007 02:12
Additional Navbar attroll vBulletin 3.0 Full Releases 235 24 Feb 2006 04:51



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Article Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 19:13.

Layout Options | Width: Wide Color: