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
  #12  
Old 03-17-2008, 09:46 AM
blind-eddie's Avatar
blind-eddie blind-eddie is offline
 
Join Date: Apr 2006
Location: Michigan
Posts: 2,310
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

AWSOME!!! Thank you very much.
Reply With Quote
  #13  
Old 03-17-2008, 10:34 AM
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 TCE Killa View Post
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!
There should be a way to check if it is a valid url.
Reply With Quote
  #14  
Old 03-17-2008, 02:46 PM
TCE Killa TCE Killa is offline
 
Join Date: Dec 2007
Posts: 330
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Boofo View Post
There should be a way to check if it is a valid url.
Yeah I was thinking this, any ideas?

And no problem eddie.

Btw eddie, please click installed, thanks.
Reply With Quote
  #15  
Old 03-17-2008, 03:38 PM
LCN2007 LCN2007 is offline
 
Join Date: Jul 2007
Posts: 323
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I know there is a way but im not sure how to make the Home button change to Forum and link to the forum when on the home page and vice-versa.

Can someone help?
Reply With Quote
  #16  
Old 03-17-2008, 04:08 PM
TCE Killa TCE Killa is offline
 
Join Date: Dec 2007
Posts: 330
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by LCN2007 View Post
I know there is a way but im not sure how to make the Home button change to Forum and link to the forum when on the home page and vice-versa.

Can someone help?
Very simple, download a template. Design the PSD in Photoshop how you would like it, then slice the areas you want links, add the forum URL to the forums link... Then do this code for your navbar template, and you're all set up.
Reply With Quote
  #17  
Old 04-03-2008, 12:49 PM
vithorius's Avatar
vithorius vithorius is offline
 
Join Date: Feb 2008
Location: Portugal
Posts: 347
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is a simple hack, but VERY USEFUL when you use vbAdvanced!

Thank you so very much! :up:
Reply With Quote
  #18  
Old 07-11-2008, 04: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

Edited & Moved HERE
Reply With Quote
  #19  
Old 01-26-2010, 01:49 AM
TCE Killa TCE Killa is offline
 
Join Date: Dec 2007
Posts: 330
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No problem
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 01:20 AM.


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.07197 seconds
  • Memory Usage 2,301KB
  • Queries Executed 25 (?)
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
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (8)postbit
  • (9)postbit_onlinestatus
  • (9)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_postinfo_query
  • fetch_postinfo
  • 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