Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Home in Navbar Details »»
Home in Navbar
Version: 1.00, by TCE Killa TCE Killa is offline
Developer Last Online: Nov 2012 Show Printable Version Email this Page

Category: Forum Home Enhancements - Version: 3.6.x Rating:
Released: 03-10-2008 Last Update: Never Installs: 16
Template Edits
Re-useable Code  
No support by the author.

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:

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 03-11-2008, 04:45 AM
iogames's Avatar
iogames iogames is offline
 
Join Date: Jan 2007
Location: Las Vegas, NV.
Posts: 1,433
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

[i.e. Phones or Movies?]
Reply With Quote
  #3  
Old 03-11-2008, 04:45 AM
josepheseven josepheseven is offline
 
Join Date: Jul 2007
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

looks nice...will come handy someday

Thanks...
Reply With Quote
  #4  
Old 03-11-2008, 04:02 PM
TCE Killa TCE Killa is offline
 
Join Date: Dec 2007
Posts: 330
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by iogames View Post
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:
Reply With Quote
  #5  
Old 03-16-2008, 02:33 PM
blind-eddie's Avatar
blind-eddie blind-eddie is offline
 
Join Date: Apr 2006
Location: Michigan
Posts: 2,310
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #6  
Old 03-16-2008, 04:40 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by blind-eddie View Post
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.
Reply With Quote
  #7  
Old 03-16-2008, 06:06 PM
blind-eddie's Avatar
blind-eddie blind-eddie is offline
 
Join Date: Apr 2006
Location: Michigan
Posts: 2,310
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #8  
Old 03-16-2008, 07:01 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #9  
Old 03-16-2008, 10:37 PM
TCE Killa TCE Killa is offline
 
Join Date: Dec 2007
Posts: 330
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by blind-eddie View Post
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!
Reply With Quote
  #10  
Old 03-16-2008, 10:43 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

There you go!
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:13 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04468 seconds
  • Memory Usage 2,306KB
  • Queries Executed 23 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (5)bbcode_php
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete