The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Follow us links in line with breadbrumb Details »» | |||||||||||||||||||||||||||||||
I had been looking to place follow us links on the forum. Tried using advertisements, and sidebar but nothing seemed to much helpful, and also they don't show up on every page, as the follow us links should. Finally, I made this little modification in templates to place the Follow Us links in line with breadcrumb.
Snapshot: I am going to share with you how I did it. it requires a little code editing in the admin section of your board, so if you're not comfortable doing that please don't try on a live board, or ask someone who can do it for you. 1. Go to the Styles and temples > Style manager > Choose "edit templates" for the style you want to edit 2. Click on CSS templates and a list will open up. Click on Additional.css and go to the end of the template. 3. Paste the following code there. Code:
/* New Crumb */ #breadcrumbx { margin-bottom: 5px; width: auto; } #breadcrumbR { float: right; } #breadcrumbR li { display: inline; list-style-type: none; margin: 0; padding: 0; } #breadcrumbR ul { margin: 0; padding: 0; } #breadcrumbL { float: left; } /* End New crumb */ 4. We have prepared CSS for the modification, now we need to place the actual code in the templates. 5. Go to the "Navigation/breadcrumb templates" and click on it to open templates under it. Click on template named "navbar" 6. Find : Code:
<div class="body_wrapper"> Find: Code:
<div id="breadcrumb" class="breadcrumb"> <ul class="floatcontainer"> <li class="navbithome"><a href="index.php{vb:raw session.sessionurl_q}" accesskey="1"><img src="{vb:stylevar imgdir_misc}/navbit-home.png" alt="{vb:rawphrase home}" /></a></li> {vb:raw navbits.breadcrumb} {vb:raw navbits.lastelement} </ul> <hr /> </div> 8. Replace this code with the following code: Code:
<div id="breadcrumbX"> <div id="breadcrumbL"> <div id="breadcrumb" class="breadcrumb"> <ul class="floatcontainer"> <li class="navbithome"><a href="index.php{vb:raw session.sessionurl_q}" accesskey="1"><img src="{vb:stylevar imgdir_misc}/navbit-home.png" alt="{vb:rawphrase home}" /></a></li> {vb:raw navbits.breadcrumb} {vb:raw navbits.lastelement} </ul><hr> </div> </div> <div id="breadcrumbR"> <ul> <li> <a href="http://twitter.com/books_writers"> <img src="/images/follow/twitter.jpg"> </a> </li> <li><a href="https://www.facebook.com/BooksWritersCom/"> <img src="/images/follow/facebook.jpg"> </a> </li> <li><a href="http://plus.google.com/u/0/104621077342474730540"> <img src="/images/follow/googleplus.jpg"> </a> </li> <li><a href="https://www.youtube.com/user/bookswriters"> <img src="/images/follow/youtube.jpg"> </a> </li> <li><a href="http://books-writers.blogspot.com/"> <img src="/images/follow/blogger.jpg"> </a> </li><li><a href="https://delicious.com/bookswriters"> <img src="/images/follow/delicious.jpg"> </a> </li><li><a href="http://www.stumbleupon.com/stumbler/bookswriters"> <img src="/images/follow/stumbleupon.jpg"> </a> </li><li><a href="admin@zigverve.com"> <img src="/images/follow/email.jpg"> </a> </li><li><a href="http://bookswriters.tumblr.com/"> <img src="/images/follow/tumblr.jpg"> </a> </li><li><a href="http://zigverve.com/forum/external.php?type=RSS2"> <img src="/images/follow/rss.jpg"> </a> </li> </ul> </div> <br clear="all"> </div> 9. Save. 10. Download the attached zip (followlinks.zip for white background jpg files and followpngtransparent.zip for png transparent background)file and upload them to your forum's files. 11. Open your forum and you should see the Follow Us! links in the right side of your breacrumb. Download Now
Screenshots
Show Your Support
|
Благодарность от: | ||
puertoblack2003 |
Comments |
#12
|
|||
|
|||
I like this mod but it's altered the layout of the forum house icon and split it over a couple of lines... Can anyone suggest how to realign it? Many thanks.
|
#13
|
|||
|
|||
It seems to have altered the way the structure is shown? Anyone any ideas please?
http://flipfloptrader.com/forumdispl...?2-Forum-Rules This is my code from navbar 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:raw navigation} {vb:raw template_hook.navtab_end} </ul> <vb:if condition="$vboptions['enablesearches']"> <div id="globalsearch" class="globalsearch"> <form action="search.php?{vb:raw session.sessionurl}do=process" method="post" id="navbar_search" class="navbar_search"> <vb:comment><input type="hidden" name="s" value="{vb:raw session.sessionurl}" /></vb:comment> <input type="hidden" name="securitytoken" value="{vb:raw bbuserinfo.securitytoken}" /> <input type="hidden" name="do" value="process" /> <span class="textboxcontainer"><span><input type="text" value="" name="query" class="textbox" tabindex="99"/></span></span> <span class="buttoncontainer"><span><input type="image" class="searchbutton" src="{vb:stylevar imgdir_button}/search<vb:if condition="$stylevar['textdirection'] == 'rtl'">_rtl</vb:if>.<vb:if condition="is_browser('ie') AND !is_browser('ie', 7)">gif<vb:else />png</vb:if>" name="submit" onclick="document.getElementById('navbar_search').submit;" tabindex="100"/></span></span> </form> <ul class="navbar_advanced_search"> <li><a href="search.php{vb:raw session.sessionurl_q}" accesskey="4">{vb:rawphrase advanced_search}</a></li> {vb:raw template_hook.navbar_advanced_search} </ul> </div> </vb:if> </div> </div><!-- closing div for above_body --> <div class="body_wrapper"> <div id="breadcrumbX"> <div id="breadcrumbL"> <div id="breadcrumb" class="breadcrumb"> <ul class="floatcontainer"> </div> <li class="navbithome"><a href="index.php{vb:raw session.sessionurl_q}" accesskey="1"><img src="{vb:stylevar imgdir_misc}/navbit-home.png" alt="{vb:rawphrase home}" /></a></li> {vb:raw navbits.breadcrumb} {vb:raw navbits.lastelement} </ul><hr> </div> </div> <div id="breadcrumbR"> <ul> </li> <li><a href="https://www.youtube.com/channel/UCDdkrXiyRU57k7HulZCyA5g"> <img src="/social/youtube.png"> </a> </li> <li><a href="http://www.instagram.com/flipfloptrader/"> <img src="/social/instagram.png"> </a> </li> </ul> </div> <br clear="all"> </div> {vb:raw ad_location.ad_navbar_below} {vb:raw ad_location.global_below_navbar} <vb:if condition="$show['notices'] AND THIS_SCRIPT != 'register'"> <form action="profile.php?do=dismissnotice" method="post" id="notices" class="notices"> <input type="hidden" name="do" value="dismissnotice" /> <input type="hidden" name="s" value="{vb:raw session.sessionurl}" /> <input type="hidden" name="securitytoken" value="{vb:raw bbuserinfo.securitytoken}" /> <input type="hidden" id="dismiss_notice_hidden" name="dismiss_noticeid" value="" /> <input type="hidden" name="url" value="{vb:raw return_link}" /> <ol> {vb:raw notices} </ol> </form> </vb:if> |
#14
|
|||
|
|||
Hello AutoFx,
It seems you've not correctly placed the code. After going through your code I found and unnecessary </div> here: Code:
<ul class="floatcontainer"> </div> |
#15
|
|||
|
|||
Quote:
|
#16
|
|||
|
|||
Because the code you used is still the same old wrong one. Please use the exact code that I've provided only replacing the social profile links.
|
#17
|
|||
|
|||
If I remove this mod it goes back to normal so would that suggest something within the code?
|
#18
|
|||
|
|||
Quote:
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:raw navigation} {vb:raw template_hook.navtab_end} </ul> <vb:if condition="$vboptions['enablesearches']"> <div id="globalsearch" class="globalsearch"> <form action="search.php?{vb:raw session.sessionurl}do=process" method="post" id="navbar_search" class="navbar_search"> <vb:comment><input type="hidden" name="s" value="{vb:raw session.sessionurl}" /></vb:comment> <input type="hidden" name="securitytoken" value="{vb:raw bbuserinfo.securitytoken}" /> <input type="hidden" name="do" value="process" /> <span class="textboxcontainer"><span><input type="text" value="" name="query" class="textbox" tabindex="99"/></span></span> <span class="buttoncontainer"><span><input type="image" class="searchbutton" src="{vb:stylevar imgdir_button}/search<vb:if condition="$stylevar['textdirection'] == 'rtl'">_rtl</vb:if>.<vb:if condition="is_browser('ie') AND !is_browser('ie', 7)">gif<vb:else />png</vb:if>" name="submit" onclick="document.getElementById('navbar_search').submit;" tabindex="100"/></span></span> </form> <ul class="navbar_advanced_search"> <li><a href="search.php{vb:raw session.sessionurl_q}" accesskey="4">{vb:rawphrase advanced_search}</a></li> {vb:raw template_hook.navbar_advanced_search} </ul> </div> </vb:if> </div> </div><!-- closing div for above_body --> <div class="body_wrapper"> <div id="breadcrumbX"> <div id="breadcrumbL"> <div id="breadcrumb" class="breadcrumb"> <ul class="floatcontainer"> <li class="navbithome"><a href="index.php{vb:raw session.sessionurl_q}" accesskey="1"><img src="{vb:stylevar imgdir_misc}/navbit-home.png" alt="{vb:rawphrase home}" /></a></li> {vb:raw navbits.breadcrumb} {vb:raw navbits.lastelement} </ul><hr> </div> </div> <div id="breadcrumbR"> <ul> <li> <a href="http://twitter.com/books_writers"> <img src="/images/follow/twitter.jpg"> </a> </li> <li><a href="https://www.facebook.com/BooksWritersCom/"> <img src="/images/follow/facebook.jpg"> </a> </li> <li><a href="http://plus.google.com/u/0/104621077342474730540"> <img src="/images/follow/googleplus.jpg"> </a> </li> <li><a href="https://www.youtube.com/user/bookswriters"> <img src="/images/follow/youtube.jpg"> </a> </li> <li><a href="http://books-writers.blogspot.com/"> <img src="/images/follow/blogger.jpg"> </a> </li><li><a href="https://delicious.com/bookswriters"> <img src="/images/follow/delicious.jpg"> </a> </li><li><a href="http://www.stumbleupon.com/stumbler/bookswriters"> <img src="/images/follow/stumbleupon.jpg"> </a> </li><li><a href="admin@zigverve.com"> <img src="/images/follow/email.jpg"> </a> </li><li><a href="http://bookswriters.tumblr.com/"> <img src="/images/follow/tumblr.jpg"> </a> </li><li><a href="http://zigverve.com/forum/external.php?type=RSS2"> <img src="/images/follow/rss.jpg"> </a> </li> </ul> </div> <br clear="all"> </div> {vb:raw ad_location.ad_navbar_below} {vb:raw ad_location.global_below_navbar} <vb:if condition="$show['notices'] AND THIS_SCRIPT != 'register'"> <form action="profile.php?do=dismissnotice" method="post" id="notices" class="notices"> <input type="hidden" name="do" value="dismissnotice" /> <input type="hidden" name="s" value="{vb:raw session.sessionurl}" /> <input type="hidden" name="securitytoken" value="{vb:raw bbuserinfo.securitytoken}" /> <input type="hidden" id="dismiss_notice_hidden" name="dismiss_noticeid" value="" /> <input type="hidden" name="url" value="{vb:raw return_link}" /> <ol> {vb:raw notices} </ol> </form> </vb:if> |
#19
|
|||
|
|||
Please remove the code of this mod entirely, from html and css both. Let me see if I am able to replicate the problem at my end. Inform me as soon as you've done that.
|
#20
|
|||
|
|||
Done, thanks.
|
#21
|
|||
|
|||
Alright, try this. In the additional.css add the following code:
Code:
/* New Crumb */ #breadcrumbx { margin-bottom: 5px; width: auto; } #breadcrumbR { float: right; } #breadcrumbR li { display: inline; list-style-type: none; margin: 0; padding: 0; } #breadcrumbR ul { margin: 0; padding: 0; } /* End New crumb */ Code:
<div id="breadcrumb" class="breadcrumb"> <ul class="floatcontainer"> <li class="navbithome"><a href="index.php{vb:raw session.sessionurl_q}" accesskey="1"><img src="{vb:stylevar imgdir_misc}/navbit-home.png" alt="{vb:rawphrase home}" /></a></li> {vb:raw navbits.breadcrumb} {vb:raw navbits.lastelement} </ul> <hr /> </div> Code:
<div id="breadcrumbX"> <div id="breadcrumbL"> <div id="breadcrumb" class="breadcrumb"> <ul class="floatcontainer"> <li class="navbithome"><a href="index.php{vb:raw session.sessionurl_q}" accesskey="1"><img src="{vb:stylevar imgdir_misc}/navbit-home.png" alt="{vb:rawphrase home}" /></a></li> {vb:raw navbits.breadcrumb} {vb:raw navbits.lastelement} </ul><hr> </div> </div> <div id="breadcrumbR"> <ul> <li><a href="https://www.youtube.com/channel/UCDdkrXiyRU57k7HulZCyA5g"> <img src="/social/youtube.png"> </a> </li> <li><a href="http://www.instagram.com/flipfloptrader/"> <img src="/social/instagram.png"> </a> </li> </ul> </div> <br clear="all"> </div> |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|