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)

blind-eddie 03-17-2008 09:46 AM

AWSOME!!! Thank you very much.

Boofo 03-17-2008 10:34 AM

Quote:

Originally Posted by TCE Killa (Post 1466548)
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.

TCE Killa 03-17-2008 02:46 PM

Quote:

Originally Posted by Boofo (Post 1466903)
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.

LCN2007 03-17-2008 03:38 PM

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?

TCE Killa 03-17-2008 04:08 PM

Quote:

Originally Posted by LCN2007 (Post 1467085)
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.

vithorius 04-03-2008 12:49 PM

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

Thank you so very much! :up:

blind-eddie 07-11-2008 04:33 PM

Edited & Moved HERE

TCE Killa 01-26-2010 01:49 AM

No problem


All times are GMT. The time now is 01:34 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.01114 seconds
  • Memory Usage 1,737KB
  • 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
  • (3)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
  • (8)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