vBadvanced Forums  
Go Back   vBadvanced Forums > vBadvanced Products > vBadvanced CMPS > vBa CMPS v3.0 Support > "How Do I..." Questions

Reply
 
Thread Tools Display Modes
  #1  
Old 09-26-2007, 09:06 AM
toejam's Avatar
toejam toejam is offline
Member
 
Join Date: Sep 2007
Posts: 52
Default Adding "Forum" and "Home" to the Navbar

Is there a way or a link that shows how to change navigation items. I want to delete USER CP and faq and put in Home and Forums. Heres my template;

Thanks for any help.

<!-- / breadcrumb, login, pm info -->

<!-- nav buttons bar -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" align="center" style="border-top-width:0px">
<tr align="center">
<if condition="$show['member']">
<td class="vbmenu_control"><a href="usercp.php$session[sessionurl_q]">$vbphrase[user_cp]</a></td>
</if>
<if condition="$show['registerbutton']">
<td class="vbmenu_control"><a href="register.php$session[sessionurl_q]" rel="nofollow">$vbphrase[register]</a></td>
</if>
$template_hook[navbar_buttons_left]
<td class="vbmenu_control"><a href="faq.php$session[sessionurl_q]" accesskey="5">$vbphrase[faq]</a></td>
<td class="vbmenu_control"><a href="memberlist.php$session[sessionurl_q]">$vbphrase[members_list]</a></td>
<td class="vbmenu_control"><a href="calendar.php$session[sessionurl_q]">$vbphrase[calendar]</a></td>
<if condition="$show['popups']">
<if condition="$show['searchbuttons']">
<if condition="$show['member']">
<td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getnew" accesskey="2">$vbphrase[new_posts_nav]</a></td>

Last edited by toejam; 09-26-2007 at 06:58 PM.
Reply With Quote
  #2  
Old 09-26-2007, 09:42 AM
Brian's Avatar
Brian Brian is offline
Administrator
 
Join Date: Jan 2004
Location: Georgia, USA
Posts: 34,240
Default Re: Adding "Forum" and "Home" to the Navbar

If you search the hacks forum here, there are at least a few different threads with instructions for this.
Reply With Quote
  #3  
Old 09-26-2007, 10:06 AM
toejam's Avatar
toejam toejam is offline
Member
 
Join Date: Sep 2007
Posts: 52
Default Re: Adding "Forum" and "Home" to the Navbar

I looked at every one, and i couldn't make any sense on what to do.
http://www.vbadvanced.com/forum/show...ic+navbar+link
Thats a hack that isnt what Iam looking to do.
http://www.tincap.com/fora/index.php This is what I like.
Reply With Quote
  #4  
Old 09-26-2007, 05:56 PM
wakerider017 wakerider017 is offline
Junior Member
 
Join Date: Apr 2006
Posts: 14
Default Re: Adding "Forum" and "Home" to the Navbar

Check this out:

http://www.vbulletin.com/forum/showthread.php?t=108961
Reply With Quote
  #5  
Old 09-26-2007, 06:02 PM
toejam's Avatar
toejam toejam is offline
Member
 
Join Date: Sep 2007
Posts: 52
Default Re: Adding "Forum" and "Home" to the Navbar

Thank you, thats what I needed. I got the forum button on there, it took some time but I got it. Now I need to delete usercp and add home. VB should have more options with the navigation bar.
Reply With Quote
  #6  
Old 09-26-2007, 06:55 PM
toejam's Avatar
toejam toejam is offline
Member
 
Join Date: Sep 2007
Posts: 52
Default Re: Adding "Forum" and "Home" to the Navbar

I got it, in case anybody needs the code

<!-- / breadcrumb, login, pm info -->

<!-- nav buttons bar -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" align="center" style="border-top-width:0px">
<tr align="center">

<td class="vbmenu_control"><a href=""http://www.dentallabnetwork.com?"> Home </a></td>
<td class="vbmenu_control"><a href="forums.php$session[sessionurl_q]" accesskey="5">$vbphrase[forums]</a></td>



<if condition="$show['member']">
<td class="vbmenu_control"><a href="usercp.php$session[sessionurl_q]">$vbphrase[user_cp]</a></td>
</if>
<if condition="$show['registerbutton']">
<td class="vbmenu_control"><a href="register.php$session[sessionurl_q]" rel="nofollow">$vbphrase[register]</a></td>
</if>
$template_hook[navbar_buttons_left]

<td class="vbmenu_control"><a href="memberlist.php$session[sessionurl_q]">$vbphrase[members_list]</a></td>

<if condition="$show['popups']">
<if condition="$show['searchbuttons']">
<if condition="$show['member']">
<td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getnew" accesskey="2">$vbphrase[new_posts_nav]</a></td>
<else />
Reply With Quote
  #7  
Old 09-26-2007, 10:20 PM
KW802's Avatar
KW802 KW802 is offline
Administrator
 
Join Date: Mar 2004
Location: A galaxy far, far away...
Posts: 5,030
Default Re: Adding "Forum" and "Home" to the Navbar

Suggestion: Instead of having both Home & Forums on the navbar at the same time use a conditional to switch between the two dynamically.

Examples:
http://www.vbadvanced.com/forum/showthread.php?t=6826
http://www.vbadvanced.com/forum/showthread.php?t=41
Reply With Quote
  #8  
Old 09-27-2007, 05:03 PM
toejam's Avatar
toejam toejam is offline
Member
 
Join Date: Sep 2007
Posts: 52
Default Re: Adding "Forum" and "Home" to the Navbar

I will try that. I love your site coolscifi. Do you know how to find different background colors, I am looking for a darker blue like the vbulletin.org or CinVin.com

Last edited by toejam; 09-27-2007 at 05:09 PM.
Reply With Quote
  #9  
Old 09-27-2007, 05:23 PM
KW802's Avatar
KW802 KW802 is offline
Administrator
 
Join Date: Mar 2004
Location: A galaxy far, far away...
Posts: 5,030
Default Re: Adding "Forum" and "Home" to the Navbar

Quote:
Originally Posted by toejam View Post
I will try that.
If you have problems, just let us know.

Quote:
Originally Posted by toejam View Post
I love your site coolscifi. Do you know how to find different background colors, I am looking for a darker blue like the vbulletin.org or CinVin.com
I took a look at your site... a nice clean look to it. What part of it do want to make a different color?
Reply With Quote
  #10  
Old 09-27-2007, 05:32 PM
toejam's Avatar
toejam toejam is offline
Member
 
Join Date: Sep 2007
Posts: 52
Default Re: Adding "Forum" and "Home" to the Navbar

The blue that I have for the background. It was a vb style color that had a url attached to it. I think a little darker would look better or a color that fades. Your SinVin background looks awesome. Plus I need a header that has a professional look to it. I made whats there with paint in windows. I thought about asking in paid services for a little help.
Reply With Quote
  #11  
Old 09-27-2007, 07:59 PM
princeedward princeedward is offline
Banned
 
Join Date: Feb 2007
Posts: 51
Default Re: Adding "Forum" and "Home" to the Navbar

This mod is good also...but what i did to my site is also the other way...coz' i said to myself..why do i need two word on my navbar? like Home and Forums...so i did like this...if i or the members are on Portal Page which is my Homepage...they can see/click only the Forums to my navbar (left) which a direct link to my forum...the other way also...if they are on my Forum Page...they can see/click only to my navbar the word Home which is the direct link to my portal...meaning auto-change...

No Image

Code:
<td class="vbmenu_control"><if condition="THIS_SCRIPT == 'adv_index'"><a href="http://yoursite.com/index.php"> Forums <else /> <a href="http://yoursite.com/"> Home </if></a></td>
With Image

Code:
<td align="left" valign="top" width="90" height="55"><if condition="THIS_SCRIPT == 'adv_index'"><a href="http://yoursite.com/index.php"><img src="$stylevar[imgdir_misc]/nav_forums.gif" border="0" alt="" /><else /><a href="http://yoursite.com/"><img src="$stylevar[imgdir_misc]/nav_home.gif"  border="0" alt="" /></if></a></td>
best regards to all....


Last edited by princeedward; 09-27-2007 at 08:09 PM.
Reply With Quote
  #12  
Old 09-27-2007, 08:06 PM
KW802's Avatar
KW802 KW802 is offline
Administrator
 
Join Date: Mar 2004
Location: A galaxy far, far away...
Posts: 5,030
Default Re: Adding "Forum" and "Home" to the Navbar

Quote:
Originally Posted by KW802 View Post
Suggestion: Instead of having both Home & Forums on the navbar at the same time use a conditional to switch between the two dynamically.

Examples:
http://www.vbadvanced.com/forum/showthread.php?t=6826
http://www.vbadvanced.com/forum/showthread.php?t=41
Quote:
Originally Posted by princeedward View Post
This mod is good also...but what i did to my site is also other way...coz' why do i need two word on my navbar? like Home and Forums...so i did like this...if i or the members are on Portal Page which is my Homepage...they can see/click only the Forums at my navbar (left) which a direct link to my forum...the other way also...if they are on my Forum Page...they can see/click only at my navbar the word Home which is the direct link to my portal...meaning auto-change...

Code:
<td class="vbmenu_control"><if condition="THIS_SCRIPT == 'adv_index'"><a href="http://epaloids.com/index.php"> Forums <else /> <a href="http://epaloids.com/"> Home </if></a></td>
Reply With Quote
  #13  
Old 10-03-2007, 11:29 AM
towermatt's Avatar
towermatt towermatt is offline
Senior Member
 
Join Date: Jun 2007
Posts: 516
Default Re: Adding "Forum" and "Home" to the Navbar

I love this thing. Question though.

I have it running on my site and wanted to make it so my photopost page says "forum" when you are looking at it up there.

the THIS_SCRIPT for Photopost is ppindex

Is there a way to add that conditional to the code above?
Reply With Quote
  #14  
Old 10-03-2007, 11:56 AM
KW802's Avatar
KW802 KW802 is offline
Administrator
 
Join Date: Mar 2004
Location: A galaxy far, far away...
Posts: 5,030
Default Re: Adding "Forum" and "Home" to the Navbar

Towermatt,

PhotoPost Pro or PhotoPost vBGallery?
Reply With Quote
  #15  
Old 10-03-2007, 12:04 PM
towermatt's Avatar
towermatt towermatt is offline
Senior Member
 
Join Date: Jun 2007
Posts: 516
Default Re: Adding "Forum" and "Home" to the Navbar

Ooops--sorry about that. It is the PhotoPost Pro--and I have not upgraded to the new version yet.

Thanks KW802
Reply With Quote
  #16  
Old 10-03-2007, 12:28 PM
Brian's Avatar
Brian Brian is offline
Administrator
 
Join Date: Jan 2004
Location: Georgia, USA
Posts: 34,240
Default Re: Adding "Forum" and "Home" to the Navbar

Quote:
Originally Posted by towermatt View Post
I love this thing. Question though.

I have it running on my site and wanted to make it so my photopost page says "forum" when you are looking at it up there.

the THIS_SCRIPT for Photopost is ppindex

Is there a way to add that conditional to the code above?
You should be able to use something like this:
Code:
<if condition="THIS_SCRIPT == 'adv_index' OR THIS_SCRIPT == 'ppindex'">
Reply With Quote
  #17  
Old 10-03-2007, 12:46 PM
towermatt's Avatar
towermatt towermatt is offline
Senior Member
 
Join Date: Jun 2007
Posts: 516
Default Re: Adding "Forum" and "Home" to the Navbar

WOOHOO!! That worked!

Thanks so much as usual Brian.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding "Forum" and "Home" to the Navbar satfix "How Do I..." Questions 3 09-18-2007 09:25 AM
"New Posts" total not updating after "Marking Forums Read" unless we "log out" Mithan Troubleshooting & Problems 3 07-12-2006 07:28 PM
How do I add the "Home" and "Forum" link on nav bar? HuangA Troubleshooting / "How do I..." Questions 60 05-20-2006 08:33 PM
Newbie: Missing the "Home" and "Register" in the top Navigation Perkyd Troubleshooting / "How do I..." Questions 2 09-25-2005 10:19 PM


All times are GMT -4. The time now is 09:11 PM.

Forums Powered by vBulletin, Copyright ©2000-2009, Jelsoft Enterprises Ltd.
Please note that vBadvanced is in no way affiliated with Jelsoft Enterprises Ltd, nor will Jelsoft be able to provide any support for our products.