View Full Version : Forum Home Enhancements - Home in Navbar
TCE Killa
03-10-2008, 10:00 PM
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:
<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):
<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
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
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
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:
<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:
<td class="vbmenu_control"><a href="usercp.php$session[sessionurl_q]">$vbphrase[user_cp]</a></td>
Add above or replace the Home you added:
<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! ;)
blind-eddie
03-17-2008, 09:46 AM
AWSOME!!! Thank you very much.
Boofo
03-17-2008, 10:34 AM
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:
<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:
<td class="vbmenu_control"><a href="usercp.php$session[sessionurl_q]">$vbphrase[user_cp]</a></td>
Add above or replace the Home you added:
<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
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
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 (https://vborg.vbsupport.ru/showthread.php?t=185071)
TCE Killa
01-26-2010, 01:49 AM
No problem
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.