Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
  #1  
Old 11-27-2005, 08:32 PM
club racer club racer is offline
 
Join Date: Oct 2005
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Changing Nav Bar Template

Ok
So originally, I had just the forum page. So, when you click on "home" on the Nav Bar you are directed to the forum page. Now, I have installed the VBadv CMPS, and when viewing the forum page there is no real way to go back to the new home page.

So, I would like for the user (when viewing the forum) to be able to click on "home" in the Nav Bar and have that take them back to the cmps page.

I've looked in the nav bar template quite a few times, and can't seem to find the home button or the link to where this goes once clicked (so I can change it).

Any help?
I'm running 3.5 with a skin from vbskinworks.com

Thanks

just as an fyi

this is where I'm looking in the nav bar template.....let me know if I need to go somewhere else
HTML Code:
<!-- nav buttons bar -->
<div align="center">
	<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>
		<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>
				<else />
				<td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getdaily" accesskey="2">$vbphrase[todays_posts]</a></td>
				</if>
				<td id="navbar_search" class="vbmenu_control"><a href="search.php$session[sessionurl_q]" accesskey="4" rel="nofollow">$vbphrase[search]</a> <script type="text/javascript"> vbmenu_register("navbar_search"); </script></td>
			</if>
			<if condition="$bbuserinfo['userid']">
				<td id="usercptools" class="vbmenu_control"><a href="$show[nojs_link]#usercptools">$vbphrase[quick_links]</a> <script type="text/javascript"> vbmenu_register("usercptools"); </script></td>		
			</if>
		<else />		
			<if condition="$show['searchbuttons']">
				<td class="vbmenu_control"><a href="search.php$session[sessionurl_q]" accesskey="4">$vbphrase[search]</a></td>
				<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 />
				<td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getdaily" accesskey="2">$vbphrase[todays_posts]</a></td>
				</if>
			</if>
			<td class="vbmenu_control"><a href="forumdisplay.php?$session[sessionurl]do=markread" rel="nofollow">$vbphrase[mark_forums_read]</a></td>
			<if condition="$bbuserinfo['userid']">			
				<td class="vbmenu_control"><a href="#" onclick="window.open('misc.php?$session[sessionurl]do=buddylist&amp;focus=1','buddylist','statusbar=no,menubar=no,toolbar=no,scrollbars=yes,resizable=yes,width=250,height=300'); return false;">$vbphrase[open_buddy_list]</a></td>			
			</if>			
		</if>
		<if condition="$bbuserinfo['userid']">
			<td class="vbmenu_control"><a href="login.php?$session[sessionurl]do=logout&amp;logouthash=$bbuserinfo[logouthash]" onclick="return log_out()">$vbphrase[log_out]</a></td>
		</if>
	</tr>
	</table>
</div>
<!-- / nav buttons bar -->
Reply With Quote
  #2  
Old 11-27-2005, 08:59 PM
Rover416 Rover416 is offline
 
Join Date: Jun 2005
Location: United Kingdom
Posts: 78
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

EDIT: I have just noticed you are using the soness style.

look in the header template and find

Code:
<td width="47"><a href="index.php"><img src="$stylevar[imgdir_misc]/home.jpg" width="47" height="30" border="0"></a></td>
and change it to

Code:
<td width="47"><a href="cmps_index.php"><img src="$stylevar[imgdir_misc]/home.jpg" width="47" height="30" border="0"></a></td>
Reply With Quote
  #3  
Old 11-27-2005, 10:07 PM
club racer club racer is offline
 
Join Date: Oct 2005
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Rover416
EDIT: I have just noticed you are using the soness style.

look in the header template and find

Code:
<td width="47"><a href="index.php"><img src="$stylevar[imgdir_misc]/home.jpg" width="47" height="30" border="0"></a></td>
and change it to

Code:
<td width="47"><a href="cmps_index.php"><img src="$stylevar[imgdir_misc]/home.jpg" width="47" height="30" border="0"></a></td>

Hey now! There is a good edit! Thanks, going to see if it works now

when I open the header template this is what I see
HTML Code:
<!-- logo -->
<a name="top"></a>
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
<tr>
	<td align="$stylevar[left]"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a></td>
	<td align="$stylevar[right]">
		&nbsp;
	</td>
</tr>
</table>
<!-- /logo -->

<!-- content table -->
$spacer_open

$_phpinclude_output
I cant see where I change it to cmps_index.php
Reply With Quote
  #4  
Old 11-27-2005, 11:51 PM
Rover416 Rover416 is offline
 
Join Date: Jun 2005
Location: United Kingdom
Posts: 78
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It seems that your header template has been reverted,maybe when john did the header for you.

I think your best bet would be to ask on vBskinworks,that first bit of code is right since this is what i think should be there from viewing the source code.

Code:
<td width="47"><a href="index.php"><img src="/forum/soness/misc/home.jpg" width="47" height="30" border="0"></a></td>
<td width="83" id="usercptools"><img src="/forum/soness/misc/quicklinks.jpg" width="83" height="30"><script type="text/javascript">vbmenu_register("usercptools",true); </script></td>
<td width="66"><a href="usercp.php"><img src="/forum/soness/misc/usercp.jpg" width="66" height="30" border="0"></a></td>
<td width="70"><a href="memberlist.php"><img src="/forum/soness/misc/members.jpg" width="70" height="30" border="0"></a></td>
<td width="73"><a href="register.php"><img src="/forum/soness/misc/register.jpg" width="73" height="30" border="0"></a></td>
<td width="77"><a href="calendar.php"><img src="/forum/soness/misc/calendar.jpg" width="77" height="30" border="0"></a></td>
<td width="56" id="navbar_search"><img src="/forum/soness/misc/search.jpg" width="56" height="30"><script type="text/javascript">vbmenu_register("navbar_search",true); </script></td>
<td width="54"><a href="faq.php"><img src="/forum/soness/misc/faq.jpg" width="54" height="30" border="0"></a>
He must have it reading from another file since your header on your forum but without seeing the files i would not know where he has put it.
Reply With Quote
Reply

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


All times are GMT. The time now is 01:18 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04354 seconds
  • Memory Usage 2,221KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (5)bbcode_code
  • (2)bbcode_html
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (4)post_thanks_box
  • (4)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (4)post_thanks_postbit_info
  • (4)postbit
  • (4)postbit_onlinestatus
  • (4)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete