vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Links added to the nav bar.... (https://vborg.vbsupport.ru/showthread.php?t=215129)

New Joe 06-02-2009 02:21 AM

Links added to the nav bar....
 
I've just installed the vBadvanced Home Page and it works fine, but as soon as I leave the Home Page to go into my Forum I am unable to link back as I don't have a link installed on my nav bar.

How do I insert a link for the Home Page into the nav bar.:confused:
Easy steps please guys as I am new to all of this.

Thanks.
:cool:

josh2007 06-02-2009 02:56 AM

Go to Admin CP->Style and Templates->Style Manager->%YOUR STYLE&->Edit Templates (in dropdown box)->then down to Navigation/Breadcrum Templates->Expand/Collapse-> then navbar

Click Customize

Look for:
Quote:

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

<td class="vbmenu_control"><a href="YOUR FORUM URL">Portal</a></td>
Change YOUR FORUM URL to the path of your forum index

New Joe 06-02-2009 03:13 AM

Thanks, where you said Change "YOUR FORUM URL to the path of your forum index" where would I find this path to add?

josh2007 06-02-2009 03:27 AM

lol easy you go to your forum homepage where it shows all the forums and subforums and the currently active users. That is your forum url

should end like /forums/index.php
(depending what directory your forum is in)
If you have more trouble post your site link here

Biker_GA 06-02-2009 03:39 AM

In your navbar template find:

Code:

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

After that put in:

Code:

<!-----Link to Portal (Home)----->
                        <td class="vbmenu_control"><a href="http://www.yourforumname.com$session[sessionurl_q]">$vbphrase[portal]</a></td>
<!-----End Link to Portal (Home)----->

Save the template.

Then create a phrase called Portal. The text for the phrase can be anything you wish. I use Home. :)

josh2007 06-02-2009 03:42 AM

either way works lol

New Joe 06-02-2009 03:44 AM

Quote:

Originally Posted by josh2007 (Post 1821766)
Go to Admin CP->Style and Templates->Style Manager->%YOUR STYLE&->Edit Templates (in dropdown box)->then down to Navigation/Breadcrum Templates->Expand/Collapse-> then navbar

Click Customize

Look for:


Add underneath:


Change YOUR FORUM URL to the path of your forum index

All done, that worked great, :up::D
next thing for my nav bar is to insert a Forum link, this link is where I want it to direct me to my main Forum, same code as above with a different path?
If so where would I find the main forum path within my Admin Panel?

Thanks.:cool:

josh2007 06-02-2009 03:45 AM

yes and your admin panel path should be yourdomain.com/forums/admincp

New Joe 06-02-2009 03:49 AM

Sorry, I didn't mean an Admin Panel path , I meant a path to my main forum.
Where you I find that path to insert to replace, <td class="vbmenu_control"><a href="YOUR FORUM URL">Portal</a></td>
(Your Forum)
Thanks again.

josh2007 06-02-2009 03:51 AM

should be http://www.YOURDOMAIN.com/forums/index.php

replace YOURDOMAIN with whats between the www. and the .com lol

--------------- Added [DATE]1243918343[/DATE] at [TIME]1243918343[/TIME] ---------------

also if you dont like the word portal you can change Portal in the code and change it to whatever you want to appear in the navbar

Biker_GA 06-02-2009 03:56 AM

In the example I gave, Portal is just the name of the phrase. The actual text I use for the phrase is Home.

josh2007 06-02-2009 03:57 AM

true :)

New Joe 06-02-2009 04:11 AM

All worked great.
Big up and thanks to all.

Now I just need to be able to install/Up load a Theme/Style to my Forum.
I have another Thread around here somewhere.

New Joe 06-10-2009 08:31 AM

New question is, when a poster clicks on one of the links on the nav bar how do I make it so it automatically opens up a new Tab instead of opening the new page in the same Tab?

Dismounted 06-10-2009 10:20 AM

After the <a, add target="_blank".

New Joe 06-13-2009 04:17 AM

Thanks that worked.


All times are GMT. The time now is 08:52 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.01044 seconds
  • Memory Usage 1,747KB
  • 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
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (16)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