vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=192)
-   -   Forum Home Enhancements - Home in Navbar (https://vborg.vbsupport.ru/showthread.php?t=172679)

TCE Killa 03-10-2008 10:00 PM

Home in Navbar
 
I haven't seen this posted on here before, and I have done it myself, so I thought I would share it with you all incase you ever wondered how to do it or wanted to do it.

Basically, this adds your homepage (http://www.yourdomain.com) to your navbar as 'Home'.

I don't think their is any need of a screenshot but if you want one, I'll post one.

This is especially good if you have a homepage full of activities or a templated professional homepage... This will give your users a very easy quick click to take them to your homepage.

In your navbar template, find:

PHP Code:

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

Add above or below, whichever order you would prefer (mines above):

PHP Code:

<td class="vbmenu_control"><a href="$vboptions[homeurl]$session[sessionurl_q]">Home</a></td

Done.... Very simple but can be very handy to some people especially with very good homepages. Please click install! Thanks:up:

iogames 03-11-2008 04:45 AM

Can I add a 'second navbar' on each subforums with links just related to that subforum?

[i.e. Phones or Movies?]

josepheseven 03-11-2008 04:45 AM

looks nice...will come handy someday :)

Thanks...

TCE Killa 03-11-2008 04:02 PM

Quote:

Originally Posted by iogames (Post 1462025)
Can I add a 'second navbar' on each subforums with links just related to that subforum?

[i.e. Phones or Movies?]

That is most certainly possible, just have a play around and see what you can do.

Thanks josepheseven:up:

blind-eddie 03-16-2008 02:33 PM

I have a few non-vb pages, my home page is vba. But I also have other vba pages that some members prefere to use as their home page. Is there a way to allow each member the option to pick which page they want as their home page. In other words, if a member clicks home in the navbar, they would go to the home page they chose. It would be different for all.

Boofo 03-16-2008 04:40 PM

Quote:

Originally Posted by blind-eddie (Post 1466169)
I have a few non-vb pages, my home page is vba. But I also have other vba pages that some members prefere to use as their home page. Is there a way to allow each member the option to pick which page they want as their home page. In other words, if a member clicks home in the navbar, they would go to the home page they chose. It would be different for all.

You should be able to do that with a profile field and then just use $bbuserinfo[fieldxx] in the navbar link.

blind-eddie 03-16-2008 06:06 PM

Thanks, I guess I will try that....wish me luck.

I would need to also create a message popup saying member needs to set home page in profile as well.

Boofo 03-16-2008 07:01 PM

If you are running 3.7.0 beta 6, it has that function in there now. It is in the setup for the profile field. If you run into any problems, give me a shout. ;)

TCE Killa 03-16-2008 10:37 PM

Quote:

Originally Posted by blind-eddie (Post 1466169)
I have a few non-vb pages, my home page is vba. But I also have other vba pages that some members prefere to use as their home page. Is there a way to allow each member the option to pick which page they want as their home page. In other words, if a member clicks home in the navbar, they would go to the home page they chose. It would be different for all.

Here is how you do it.... Mind you, Home will not be in the navbar until someone posts an internet address for their home.

Create new profile field, it is your choice what you write in and the options you give. Make not of the field number.

Replace:

PHP Code:

<td class="vbmenu_control"><a href="$vboptions[homeurl]$session[sessionurl_q]">Home</a></td

Or if you haven't added home into your navbar yet...

Find:

PHP Code:

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

Add above or replace the Home you added:

PHP Code:

<if condition="$bbuserinfo['fieldXX']"><td class="vbmenu_control"><a href="$bbuserinfo[fieldXX]$session[sessionurl_q]">Home</a></td></if> 

Change the XX's to your field number.

Enjoy!

Boofo 03-16-2008 10:43 PM

There you go! ;)


All times are GMT. The time now is 05:38 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.01167 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
  • (5)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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