The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Show/Hide Subforums Details »» | |||||||||||||||||||||||||
Show/Hide Subforums & Save Page Load Time...! Hello All, Hope this mod is not present already and this mod will be useful to save page load time for busy/huge forums like ours. Lets Start GOTO --> Style Manager --> forumhome_forumbit_level1_post Find: Code:
{vb:raw forum.subforums} Code:
<div class="divspoiler"> <input type="button" class="mc" value="→ MORE SUBFORUMS" onclick="if (this.parentNode.nextSibling.childNodes[0].style.display != '') { this.parentNode.nextSibling.childNodes[0].style.display = ''; this.value = '↑ HIDE SUBFORUMS'; } else { this.parentNode.nextSibling.childNodes[0].style.display = 'none'; this.value = '↓ SHOW SUBFORUMS'; }" /> </div><div><div class="spoiler" style="display: none;"> <div style="padding:1px;">{vb:raw forum.subforums}</div> </div></div> Button Style CSS: [Add below code any were in additional.css template] Code:
.mc { display: inline-block; margin-top: 8px; background: #f9f9f9; background: -moz-linear-gradient(top,#f9f9f9 0,#eaeaea 100%); background: -webkit-gradient(linear,left top,left bottom,color-stop(0%,#f9f9f9),color-stop(100%,#eaeaea)); background: -webkit-linear-gradient(top,#f9f9f9 0,#eaeaea 100%); background: -o-linear-gradient(top,#f9f9f9 0,#eaeaea 100%); background: -ms-linear-gradient(top,#f9f9f9 0,#eaeaea 100%); background: linear-gradient(top,#f9f9f9 0,#eaeaea 100%); filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#F9F9F9',endColorstr='#EAEAEA',GradientType=0); height: auto; border: 1px solid #cacaca; border-radius: 3px; padding: 7px; text-align: left; line-height: 23px; box-shadow: inset 0 1px 2px white,0px 1px 1px rgba(0,0,0,0.12); padding-left: 9px; font-weight: bold; text-transform: uppercase; color: #6f6f6f; text-shadow: 0 1px white; margin-top: 10px; cursor:pointer; -moz-border-radius: 5px; -webkit-border-radius: 5px; -khtml-border-radius: 5px; border-radius: 5px; } .mc:hover { background: #fefefe; background: -moz-linear-gradient(top, #fefefe 0, #fbfbfb 100%); background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #fefefe), color-stop(100%, #fbfbfb)); background: -webkit-linear-gradient(top, #fefefe 0, #fbfbfb 100%); background: -o-linear-gradient(top, #fefefe 0, #fbfbfb 100%); background: -ms-linear-gradient(top, #fefefe 0, #fbfbfb 100%); background: linear-gradient(top, #fefefe 0, #fbfbfb 100%); filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FEFEFE', endColorstr='#FBFBFB', GradientType=0); } .mc:active { box-shadow: inset 0 1px 5px rgba(0, 0, 0, 0.40), 0px 1px 1px rgba(0, 0, 0, 0.12); } LIVE DEMO Thanks All Show Your Support
|
Благодарность от: | ||
sodasusu |
Comments |
#12
|
|||
|
|||
This works great using vb4.2.0
no problems at all! |
2 благодарности(ей) от: | ||
mohammed146, ramesh_umk3 |
#13
|
|||
|
|||
Works on 4.2.1 too
Thanks a lot |
2 благодарности(ей) от: | ||
mohammed146, ramesh_umk3 |
#14
|
|||
|
|||
good work
|
Благодарность от: | ||
ramesh_umk3 |
#15
|
|||
|
|||
anyway to make this work on certain forums only?
|
Благодарность от: | ||
ramesh_umk3 |
#16
|
|||
|
|||
Yes possible just use if - else it will work below is example and demo
PHP Code:
PHP Code:
|
#17
|
|||
|
|||
Excellent One thing I did notice: If there is no Forum Description entered the Button locates it self to the right but if there is a Description the button will stay under the Description.
Trying to figure out...How to keep the button under Forum Title without the forum Description? |
Благодарность от: | ||
ramesh_umk3 |
#18
|
|||
|
|||
perfect, thanks
|
#19
|
|||
|
|||
Quote:
Code:
<vb:if condition="$show['forumdescription']"><p class="forumdescription">{vb:raw forum.description}</p></vb:if> |
#20
|
|||
|
|||
I could be wrong but I believe the code would add a forum description?
Here is an image of what it looks like when there is No forum description... |
#21
|
|||
|
|||
Show/Hide Subforums buttons removed from Demo site?
|
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|