vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Changing Nav Bar Template (https://vborg.vbsupport.ru/showthread.php?t=101724)

club racer 11-27-2005 08:32 PM

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 -->


Rover416 11-27-2005 08:59 PM

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>

club racer 11-27-2005 10:07 PM

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

Rover416 11-27-2005 11:51 PM

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.


All times are GMT. The time now is 03:29 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01102 seconds
  • Memory Usage 1,763KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (5)bbcode_code_printable
  • (2)bbcode_html_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete