vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Help needed with navbar in 3.5.4 (https://vborg.vbsupport.ru/showthread.php?t=110382)

Devil Woman 03-14-2006 08:38 PM

Help needed with navbar in 3.5.4
 
I have searched for a while now for help on this and found nothing, I have even asked for help in a hack I used to use on a previous version and nothing, what it is is I wish to add more links to the navbar on VB 3.5.4 but when I go to navbar template and search for calendar its not there so now I am completly stuck, how would I add new links to the navbar in 3.5.4 any help is appreciated

Thanks

Is this possible at all on 3.5.4? I have looked everywhere for help, I have even tried everything I can think of on my test board and nothing

Would it be easier for me to use a 2nd navbar?

Thanks

Treak 03-16-2006 06:08 AM

im in the same predicament.. i want to add another link! but i dunno how!

i made a similar thread if mine gets responded to i shall tell ya!

k lady i got you some answers..

here ye are.

for yo calendar question..

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

if you wanna rename that or add another link on just do this

Just replace the calendar code (it's in my first post) with what you want.

For example: replacing it with a link to vBulletin.com:

Code:
<td class="vbmenu_control"><a href="http://www.vbulletin.com/">Official vBulletin site</a></td>

Darat 03-16-2006 07:05 AM

In your navbar template find the section that starts with:

<!-- nav buttons bar -->

Under that you will see lines like:

Code:

<td class="vbmenu_control"><a href="faq.php$session[sessionurl_q]" accesskey="5">$vbphrase[faq]</a></td>
Adding another one of those will add a new link to the navbar - just edit the href tag to whatever and replace the vbphrase[faq] with whatever text you want to display.

Treak 03-16-2006 07:05 AM

ha it works! tried and true!

www.lokiart.com/forums/index.php

i replaced my Calender link with my Application to be a mod link!!

hope i helped you in some way!

i aggree darat! but! some people do not know or understand vbphrase stuff..
so this might be a litle easier! i edited this up a bit.. obviously

<td class="vbmenu_control"><a href="insert the link to the page you want here">Name that will appear on the Navbar goes here!</a></td>

Devil Woman 03-16-2006 08:08 PM

Is it just me as I am not finding either, could it be because I am using different templates and not the default template?

Thanks

Edit: I have found <!-- nav buttons bar --> but all I get below it is

Quote:

<!-- / nav buttons bar -->
<br />
<if condition="$show['forumdesc']">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="alt1" width="100%"><strong>$foruminfo[title]</strong> <span class="smallfont">$foruminfo[description]</span></td>
</tr>
</table>
<br />
</if>

<if condition="$show['popups']">
and in 2 templates I am using I am not able to find <!-- nav buttons bar --> or <!-- / nav buttons bar -->

Darat 03-17-2006 05:32 AM

You need to look below: <!-- nav buttons bar --> not below: <!-- / nav buttons bar -->

Rich 03-17-2006 10:44 AM

Hello,

Quote:

and in 2 templates I am using I am not able to find <!-- nav buttons bar --> or <!-- / nav buttons bar -->
Why are you looking in 2 templates? If you want to edit the navbar, open up the navbar template. (Style Manager, <<>>, Navigation / Breadcrumb Templates, navbar)

Do as stated, and search for: <!-- nav buttons bar -->

If you are searching in any template other than the "navbar" template, you won't find what we are talking about. If you have modified your navbar template in the past, you may not find what we are talking about.

Devil Woman 03-17-2006 02:15 PM

What I mean is the actual style I have looked below the <!-- nav buttons bar --> and all I get is nothing stated as above just <!-- / nav buttons bar --> below it.

I am editing the navbar template in each style and only 1 style I use can I find the <!-- nav buttons bar --> the other 2 styles I have on my board I can not find this code in the navbar

I have never modified the navbar template before as this is the only reason I need to modify my navbar template and I am not able to find what I am looking for to edit it

Nikki

miner 03-17-2006 02:52 PM

Quote:

Originally Posted by Devil Woman
What I mean is the actual style I have looked below the <!-- nav buttons bar --> and all I get is nothing stated as above just <!-- / nav buttons bar --> below it.

I am editing the navbar template in each style and only 1 style I use can I find the <!-- nav buttons bar --> the other 2 styles I have on my board I can not find this code in the navbar

I have never modified the navbar template before as this is the only reason I need to modify my navbar template and I am not able to find what I am looking for to edit it

Nikki

it differs in various styles you use, some designs are cutomised with the nav links in the header, so post your site links so we could help you out...

Devil Woman 03-17-2006 04:18 PM

My site is at www.darksidemedia.biz/forums

Cheers

Freesteyelz 03-17-2006 06:29 PM

As Darat and Rich pointed out look between <!-- nav buttons bar --> and <!-- / nav buttons bar -->. Here is your code below (from view source):

Code:

<!-- nav buttons bar -->
<table class="tborder" cellpadding="6" cellspacing="0" border="0" width="100%" align="center" style="border-top-width:0px">
        <tr align="center">
               
               
                        <td class="vbmenu_control"><a href="register.php?" rel="nofollow">Register</a></td>
               
                <td class="vbmenu_control"><a href="faq.php?" accesskey="5">FAQ</a></td>
                <td class="vbmenu_control"><a href="memberlist.php?">Members List</a></td>
                <td class="vbmenu_control"><a href="calendar.php?">Calendar</a></td>
                               
                       
                       
               
               
        </tr>
</table>
<table cellpadding="0" cellspacing="0" border="0" width="100%" align="center" background="vbviet/misc/navbot.gif">
<tr>
        <td><img src="vbviet/misc/navbot.gif"></td>
</tr>
</table>
<!-- / nav buttons bar -->


Devil Woman 03-17-2006 06:45 PM

Thats in the vbviet template, I will go take a look in the navbar template again

Thanks alot

Edit: I have searched in the navbar template of that style that your viewed the source on and I can't find it anywhere for searching or looking, here is the code

Code:

<script type="text/javascript">
<!--
function log_out()
{
        ht = document.getElementsByTagName("html");
        ht[0].style.filter = "progid:DXImageTransform.Microsoft.BasicImage(grayscale=1)";
        if (confirm('$vbphrase[sure_you_want_to_log_out]'))
        {
                return true;
        }
        else
        {
                ht[0].style.filter = "";
                return false;
        }
}
//-->
</script>

<br />

<!-- breadcrumb, login, pm info -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
        <td class="alt1" width="100%">
                <if condition="is_array($navbits)">
                        <table cellpadding="0" cellspacing="0" border="0">
                        <tr valign="bottom">
                                <td><a href="#" onclick="history.back(1); return false;"><img src="$stylevar[imgdir_misc]/navbits_start.gif" alt="$vbphrase[go_back]" border="0" /></a></td>
                                <td>&nbsp;</td>
                                <td width="100%"><span class="navbar"><a href="$vboptions[forumhome].php$session[sessionurl_q]" accesskey="1">$vboptions[bbtitle]</a></span> $navbits[breadcrumb]</td>
                        </tr>
                        <tr>
                                <td class="navbar" style="font-size:10pt; padding-top:1px" colspan="3"><a href="$scriptpath"><img class="inlineimg" src="$stylevar[imgdir_misc]/navbits_finallink.gif" alt="$vbphrase[reload_this_page]" border="0" /></a> <strong>$navbits[lastelement]</strong></td>
                        </tr>
                        </table>                       
                <else />
                        <div class="navbar" style="font-size:10pt"><a href="$vboptions[forumhome].php$session[sessionurl_q]" accesskey="1"><img class="inlineimg" src="$stylevar[imgdir_misc]/navbits_start.gif" alt="" border="0" /></a> <strong>$vboptions[bbtitle]</strong></div>
                </if>
        </td>       
       
        <if condition="$show['member']">
       
                <td class="alt2" valign="top" nowrap="nowrap">
                <div class="smallfont">
                        <strong><phrase 1="$bbuserinfo[username]">$vbphrase[welcome_x]</phrase></strong><br />
                        <phrase 1="$pmbox[lastvisitdate]" 2="$pmbox[lastvisittime]">$vbphrase[last_visited_x_at_y]</phrase>
                        <if condition="$show['pmstats']"><br /><phrase 1="$vbphrase[unread_x_nav_compiled]" 2="$vbphrase[total_x_nav_compiled]" 3="$session[sessionurl_q]">$vbphrase[private_messages_nav]</phrase></if>
                </div>
                </td>
                <td class="alt1"><a href="$vboptions[bburl]/profile.php?do=editavatar">$navbaravatar</a></td>
        <else />
               
                <td class="alt2" nowrap="nowrap" style="padding:0px">
                       
                <!-- login form -->
                <form action="login.php" method="post" onsubmit="md5hash(vb_login_password, vb_login_md5password, vb_login_md5password_utf, $show[nopasswordempty])">
                <script type="text/javascript" src="clientscript/vbulletin_md5.js"></script>
                <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
                <tr>
                        <td class="smallfont">$vbphrase[username]</td>
                        <td><input type="text" class="bginput" style="font-size: 11px" name="vb_login_username" id="navbar_username" size="10" accesskey="u" tabindex="101" value="$vbphrase[username]" onfocus="if (this.value == '$vbphrase[username]') this.value = '';" /></td>
                        <td class="smallfont" colspan="2" nowrap="nowrap"><label for="cb_cookieuser_navbar"><input type="checkbox" name="cookieuser" value="1" tabindex="103" id="cb_cookieuser_navbar" accesskey="c" />$vbphrase[remember_me]</label></td>
                </tr>
                <tr>
                        <td class="smallfont">$vbphrase[password]</td>
                        <td><input type="password" class="bginput" style="font-size: 11px" name="vb_login_password" size="10" accesskey="p" tabindex="102" /></td>
                        <td><input type="submit" class="button" value="$vbphrase[log_in]" tabindex="104" title="$vbphrase[enter_username_to_login_or_register]" accesskey="s" /></td>
                </tr>
                </table>
                <input type="hidden" name="s" value="$session[sessionhash]" />
                <input type="hidden" name="do" value="login" />               
                <input type="hidden" name="vb_login_md5password" />
                <input type="hidden" name="vb_login_md5password_utf" />
                </form>
                <!-- / login form -->
                       
                </td>
               
        </if>       
       
</tr>
</table>
<!-- / breadcrumb, login, pm info -->

<br />
<if condition="$show['forumdesc']">
        <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
        <tr>
                <td class="alt1" width="100%"><strong>$foruminfo[title]</strong> <span class="smallfont">$foruminfo[description]</span></td>
        </tr>
        </table>
        <br />
</if>

<if condition="$show['popups']">
<!-- NAVBAR POPUP MENUS -->
       
        <if condition="$show['searchbuttons']">
        <!-- header quick search form -->
        <div class="vbmenu_popup" id="navbar_search_menu" style="display:none">
                <table cellpadding="4" cellspacing="1" border="0">
                <tr>
                        <td class="thead">$vbphrase[search_forums]</td>
                </tr>
                <tr>
                        <td class="vbmenu_option" title="nohilite">
                        <form action="search.php" method="post">
                                <input type="hidden" name="do" value="process" />
                                <input type="hidden" name="showposts" value="0" />
                                <input type="hidden" name="quicksearch" value="1" />
                                <input type="hidden" name="s" value="$session[sessionhash]" />
                                <input type="text" class="bginput" name="query" size="20" />&nbsp;$gobutton<br />
                        </form>
                        </td>
                </tr>
                <tr>
                        <td class="vbmenu_option"><a href="search.php$session[sessionurl_q]" accesskey="4" rel="nofollow">$vbphrase[advanced_search]</a></td>
                </tr>
                </table>
        </div>
        <!-- / header quick search form -->
        </if>

        <if condition="$show['member']">
        <!-- user cp tools menu -->
        <div class="vbmenu_popup" id="usercptools_menu" style="display:none">
                <table cellpadding="4" cellspacing="1" border="0">
               
                <tr><td class="thead">$vbphrase[quick_links]</td></tr>               
                <if condition="$vboptions['enablesearches']"><tr><td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=getdaily">$vbphrase[todays_posts]</a></td></tr></if>
                <tr><td class="vbmenu_option"><a href="forumdisplay.php?$session[sessionurl]do=markread">$vbphrase[mark_forums_read]</a></td></tr>
                <tr><td class="vbmenu_option"><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></tr>
                               
                <tr><td class="thead"><a href="usercp.php$session[sessionurl_q]">$vbphrase[user_control_panel]</a></td></tr>
                <if condition="$show['siglink']"><tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=editsignature">$vbphrase[edit_signature]</a></td></tr></if>
                <!--<if condition="$show['avatarlink']"><tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=editavatar">$vbphrase[edit_avatar]</a></td></tr></if>-->
                <tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=editprofile">$vbphrase[edit_profile]</a></td></tr>
                <tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=editoptions">$vbphrase[edit_options]</a></td></tr>
               
                <tr><td class="thead">$vbphrase[miscellaneous]</td></tr>
                <if condition="$show['pmstats']"><tr><td class="vbmenu_option"><a href="private.php$session[sessionurl_q]" rel="nofollow">$vbphrase[private_messages]</a></td></tr></if>
                <tr><td class="vbmenu_option"><a href="subscription.php$session[sessionurl_q]" rel="nofollow">$vbphrase[subscribed_threads]</a></td></tr>
                <tr><td class="vbmenu_option"><a href="member.php?$session[sessionurl]u=$bbuserinfo[userid]">$vbphrase[my_profile]</a></td></tr>
                <if condition="$show['wollink']"><tr><td class="vbmenu_option"><a href="online.php$session[sessionurl_q]">$vbphrase[whos_online]</a></td></tr></if>
               
                </table>
        </div>
        <!-- / user cp tools menu -->
        </if>
<!-- / NAVBAR POPUP MENUS -->

<!-- PAGENAV POPUP -->

        <div class="vbmenu_popup" id="pagenav_menu" style="display:none">
                <table cellpadding="4" cellspacing="1" border="0">
                <tr>
                        <td class="thead" nowrap="nowrap">$vbphrase[go_to_page]</td>
                </tr>
                <tr>
                        <td class="vbmenu_option" title="nohilite">
                        <form action="$vboptions[forumhome].php" method="get" onsubmit="return this.gotopage()" id="pagenav_form">
                                <input type="text" class="bginput" id="pagenav_itxt" style="font-size:11px" size="4" />
                                <input type="button" class="button" id="pagenav_ibtn" value="$vbphrase[go]" />
                        </form>
                        </td>
                </tr>
                </table>
        </div>

<!-- / PAGENAV POPUP -->
</if>

unless I am mistaken and missing something but even when I search for <!-- nav buttons bar --> I am not finding it now

leftie 03-17-2006 07:14 PM

Hi devil women, i found i had the same problem finding things in navbar template for some skins. I found where to put stuff was in the header template, i think that this is where you will find all your nav buttons that you are looking to edit. Try your search in this template.

Devil Woman 03-17-2006 07:16 PM

Thankyou very much leftie found it all in there :)

Thanks alot :)

Thanks all for the help

leftie 03-17-2006 07:19 PM

Hey great np, i helped someone at last. :D

Devil Woman 04-12-2006 07:56 PM

I am having another problem I now wish to move the links I want from the navbar so I can only add them into the custom links bar but when I go to search for the code I put in, its now not there when I look in the source on the website it's there but isnt there when I look for it when i edit the template I can't find it

Does anyone know why this may be?

Nikki

peterska2 04-12-2006 09:40 PM

try your header template. quite a number of styles have the navabr links located in the header.

Devil Woman 04-12-2006 09:42 PM

I have tried both places m8, they are not in either, I can't understand it because the links are working properly and they are showing in the source but not when I search and I have gone down slowly on each template to see if I have missed it or the search hasnt picked it up, nothing

Nikki

peterska2 04-12-2006 09:45 PM

I can take a look at it if you like.

I've sent you a PM.

Devil Woman 04-12-2006 10:47 PM

All sorted now, thanks peterska :)

Nikki


All times are GMT. The time now is 07:40 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.01408 seconds
  • Memory Usage 1,852KB
  • 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
  • (3)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (20)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