vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Newbie Question - How To Add Links To The Navbar? (https://vborg.vbsupport.ru/showthread.php?t=177633)

markbolyard 05-01-2008 06:16 PM

Would be much easier if you could post a link to your forum, or PM me a link. I'd be happy to help but playing guessing games as to where you need to make edits isn't getting us anywhere :)

glenbelt 05-01-2008 06:17 PM

Quote:

Originally Posted by markbolyard (Post 1504835)
I think This member has a custom style. The button code is missing from the code in the first part of this thread, which would leave me to assume it's located in another template such as the header.

Yes, I do have a custom style (sorry if I didn't make that clear to begin with).

So should I be looking in files other than the navbar one?


Thanks

Lynne 05-01-2008 07:26 PM

Quote:

Originally Posted by glenbelt (Post 1504859)
Thanks for the reply again.

I did turn on the option to put the template name in the source code. I went to my admin CP and then turned on the Template Name in HTML Comments option. Then I went to my forum and viewed the source, and copied and pasted the above. Is there something that I'm not doing/doing wrong?

Well, you didn't copy any of the code that shows what the template name is. If you don't want to give a link to the forum as suggeted, then you need to go find the name of the template yourself in the source code and then paste that template code here.

glenbelt 05-02-2008 08:19 AM

Thanks for the help and replies again.

My forum URL is http://www.forum-money.com/


Thanks again

Lynne 05-02-2008 03:01 PM

Your navbar links are in your header template. If you post that, and let us know what links you want removed and which you want added (and where), then I think we can help you with it. (We just need to see the part of the header up to the "<!-- / NAVBAR POPUP MENUS -->" line.)

glenbelt 05-05-2008 04:37 PM

Thanks for the reply and help again. Here is the code from the Header part of the style:

Quote:

<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td style="width: 331px;"><img src="$stylevar[imgdir_misc]/header_left.jpg" alt="" width="331" height="80" /></td>
<td style="background-image:url($stylevar[imgdir_misc]/header_bg.gif);"><div style="padding-right: 15px;" align="right"><script type="text/javascript"><!--
google_ad_client = "pub-numbersgohere";
//468x60, created 30/01/08
google_ad_slot = "7492970050";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td style="background-image:url($stylevar[imgdir_misc]/links_bg.gif); height: 22px;">
<div class="headlinks" style="padding-left: 15px;">

<a href="index.php">Home</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;
<a href="faq.php$session[sessionurl_q]" accesskey="5">FAQ</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;
<a href="calendar.php$session[sessionurl_q]">Calendar</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;
<a href="memberlist.php$session[sessionurl_q]">Members List</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;
<if condition="$show['popups']">
<if condition="$show['searchbuttons']">
<if condition="$show['member']"><a href="search.php?$session[sessionurl]do=getnew" accesskey="2">$vbphrase[new_posts_nav]</a>
<else />
<a href="search.php?$session[sessionurl]do=getdaily" accesskey="2">$vbphrase[todays_posts]</a></if></if>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp ;&nbsp;&nbsp;
<a href="search.php$session[sessionurl_q]" accesskey="4" rel="nofollow" id="navbar_search">$vbphrase[search]</a> <if condition="$show['quicksearch']"><script type="text/javascript"> vbmenu_register("navbar_search"); </script></if>
</if>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp ;&nbsp;&nbsp;
<if condition="$show['member']">
<a href="$show[nojs_link]#usercptools" id="usercptools">$vbphrase[quick_links]</a> <script type="text/javascript"> vbmenu_register("usercptools"); </script></if>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp ;&nbsp;&nbsp;<a href="#">Advertise</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;
<if condition="$show['member']"><a href="usercp.php$session[sessionurl_q]">UserCp</a></if>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp ;&nbsp;&nbsp;
<if condition="$show['registerbutton']"><a href="register.php$session[sessionurl_q]" rel="nofollow">Register</a></if></div>
</td>
</tr>
</table>
<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">
<form action="search.php?do=process" method="post">
<table cellpadding="4" cellspacing="1" border="0">
<tr>
<td class="thead">$vbphrase[search_forums]</td>
</tr>
<tr>
<td class="vbmenu_option" title="nohilite">
<input type="hidden" name="do" value="process" />
<input type="hidden" name="quicksearch" value="1" />
<input type="hidden" name="childforums" value="1" />
<input type="hidden" name="exactname" value="1" />
<input type="hidden" name="s" value="$session[sessionhash]" />
<div><input type="text" class="bginput" name="query" size="25" tabindex="1001" /><input type="submit" class="button" value="$vbphrase[go]" tabindex="1004" /></div>
</td>
</tr>
<tr>
<td class="vbmenu_option" title="nohilite">
<label for="rb_nb_sp0"><input type="radio" name="showposts" value="0" id="rb_nb_sp0" tabindex="1002" checked="checked" />$vbphrase[show_threads]</label>
&nbsp;
<label for="rb_nb_sp1"><input type="radio" name="showposts" value="1" id="rb_nb_sp1" tabindex="1003" />$vbphrase[show_posts]</label>
</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>
</form>
</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=n o,menubar=no,toolbar=no,scrollbars=yes,resizable=y es,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['pmmainlink']"><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 -->

Lynne 05-05-2008 06:03 PM

To delete the calendar, remove this line:
Code:

<a href="calendar.php$session[sessionurl_q]">Calendar</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
To add another link, add this line right around (or in place of) the calendar link:
Code:

<a href="yourpage.php$session[sessionurl_q]">Your Page</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
and change the stuff in red for your new page.

glenbelt 05-08-2008 01:23 PM

Thanks again Lynne, much appreciated :)

One more question - how do I go about linking to an external link, not a .php one? I mean, this wouldn't work, would it?:

Quote:

<a href="http://www.myurl.com/$session[sessionurl_q]">My URL</a>&

Thanks again for all the help :)

Lynne 05-08-2008 02:04 PM

I think you can link to anything in your navbar unless you have some setting on your site that doesn't allow outside links.

glenbelt 05-09-2008 11:46 AM

Thanks again Lynne.

Would this line of code work though as a link to an external site?


<a href="http://www.myurl.com/$session[sessionurl_q]">My URL</a>


Do I need the "$session[sessionurl_q]" directly after the URL?



Thanks for any more help :)


All times are GMT. The time now is 01:35 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.01397 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
  • (2)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete