The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
How to add "Home" Button to my forums?
How can I add a Home Button (as shown below in the image) to have it link to my main website?
My main website URL is: http://bbmatrix.net (just in-case there was some code that you needed to give me) Thanks My forums are running on the latest official vBulletin v4.1.8 |
#2
|
|||
|
|||
You could do this: edit the navbar template and add the part in red (this section is at the very top of the template code):
Code:
<div id="navbar" class="navbar"> <ul id="navtabs" class="navtabs floatcontainer<vb:if condition="$show['member'] AND $notifications_total"> notify</vb:if>"> {vb:raw template_hook.navtab_start} <vb:if condition="!$vboptions['selectednavtab'] AND THIS_SCRIPT != 'search'"> <li><a class="navtab" href="bbmatrix.net">Home</a></li> <li class="selected"><a class="navtab" href="{vb:link forumhome}">{vb:rawphrase forum}</a> |
2 благодарности(ей) от: | ||
MaXimus, sakamoto ryoma |
#3
|
|||
|
|||
Quote:
When I added the code in red, The Home Button did appear BUT, it takes me to >>> http://bbmatrix.net/forums/bbmatrix.net which is an invalid URL obviously, why is it having the bbmatrix.net/forums as a prefix? I just want it to direct to http://bbmatrix.net Thank you --------------- Added [DATE]1321450962[/DATE] at [TIME]1321450962[/TIME] --------------- Ahh I fixed it! Had to change the code from: <li><a class="navtab" href="bbmatrix.net">Home</a></li> to <li><a class="navtab" href="http://bbmatrix.net">Home</a></li> That was simple! Thank you very much for guiding me! I really appreciate it! |
#4
|
|||
|
|||
That was my fault, you did post the url you want to go to and I didn't use it. Anyway, glad you got it working. |
#5
|
|||
|
|||
Quote:
Thanks for your help! |
#6
|
|||
|
|||
Quote:
Thanks in advance ! |
#7
|
|||
|
|||
You just need to add a phrase in the phrase manager (use Phrase Type GLOBAL). Then in the navbar template, use {vb:rawphrase varname}, where "varname" is the Varname you entered when you created the phrase. Then you should be able to add translations for all your languages.
|
#8
|
|||
|
|||
Quote:
|
#9
|
|||
|
|||
Just discovered my buttons disappear when I go to Blogs, how to have them displaying there as well ?
|
#10
|
|||
|
|||
thanks a lot! great tips
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|