The Arcive of vBulletin Modifications Site. |
|
Minify the "Posting Rules" box Details »»
|
|||||||||||||||||||||||||
This is a dead-simple template hack to make the "Posting rules" or forum rules box take less vertical space. A picture is worth more than 2-3k of my words:
Before & After: ![]() To do this, you only have to change 2 lines in the forumrules template. The instructions are below, and also in the attached *.txt file. Time to install: 18-33 seconds ![]() Change the default template: Code:
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="180">
<thead>
<tr>
<td class="thead">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumrules')"><img id="collapseimg_forumrules" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumrules].gif" alt="" border="0" /></a>
$vbphrase[posting_rules]
</td>
</tr>
</thead>
<tbody id="collapseobj_forumrules" style="$vbcollapse[collapseobj_forumrules]">
<tr>
<td class="alt1" nowrap="nowrap"><div class="smallfont">
<if condition="!$show['codeonly']">
<div><phrase 1="$rules[postnew]">$vbphrase[you_may_x_post_new_threads]</phrase></div>
<div><phrase 1="$rules[postreply]">$vbphrase[you_may_x_post_replies]</phrase></div>
<div><phrase 1="$rules[attachment]">$vbphrase[you_may_x_post_attachments]</phrase></div>
<div><phrase 1="$rules[edit]">$vbphrase[you_may_x_edit_your_posts]</phrase></div>
<hr />
</if>
<div><phrase 1="misc.php?$session[sessionurl]do=bbcode" 2="$bbcodeon">$vbphrase[vb_code_is_x]</phrase></div>
<div><phrase 1="misc.php?$session[sessionurl]do=showsmilies" 2="$smilieson">$vbphrase[smilies_are_x]</phrase></div>
<div><phrase 1="misc.php?$session[sessionurl]do=bbcode#imgcode" 2="$imgcodeon">$vbphrase[img_code_is_x]</phrase></div>
<div><phrase 1="$htmlcodeon">$vbphrase[html_code_is_x]</phrase></div>
</div></td>
</tr>
</tbody>
</table>
Code:
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="180">
<thead>
<tr>
<td class="thead"<if condition="!$show['codeonly']"> colspan="2"</if>>
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumrules')"><img id="collapseimg_forumrules" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumrules].gif" alt="" border="0" /></a>
$vbphrase[posting_rules]
</td>
</tr>
</thead>
<tbody id="collapseobj_forumrules" style="$vbcollapse[collapseobj_forumrules]">
<tr>
<td class="alt1" nowrap="nowrap"><div class="smallfont">
<if condition="!$show['codeonly']">
<div><phrase 1="$rules[postnew]">$vbphrase[you_may_x_post_new_threads]</phrase></div>
<div><phrase 1="$rules[postreply]">$vbphrase[you_may_x_post_replies]</phrase></div>
<div><phrase 1="$rules[attachment]">$vbphrase[you_may_x_post_attachments]</phrase></div>
<div><phrase 1="$rules[edit]">$vbphrase[you_may_x_edit_your_posts]</phrase></div>
</div></td><td class="alt1" nowrap="nowrap"><div class="smallfont">
</if>
<div><phrase 1="misc.php?$session[sessionurl]do=bbcode" 2="$bbcodeon">$vbphrase[vb_code_is_x]</phrase></div>
<div><phrase 1="misc.php?$session[sessionurl]do=showsmilies" 2="$smilieson">$vbphrase[smilies_are_x]</phrase></div>
<div><phrase 1="misc.php?$session[sessionurl]do=bbcode#imgcode" 2="$imgcodeon">$vbphrase[img_code_is_x]</phrase></div>
<div><phrase 1="$htmlcodeon">$vbphrase[html_code_is_x]</phrase></div>
</div></td>
</tr>
</tbody>
</table>
Supporters / CoAuthors Show Your Support
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
||||
|
||||
|
Thank's for the simple ideia.
Great job. KK |
|
#3
|
||||
|
||||
|
Nice one, thanks. Installed.
But i think the right title for this would be "Minimize" or "Resize"... |
|
#4
|
|||
|
|||
|
thanks you.installed
|
|
#5
|
|||
|
|||
|
Thanks, it works great, and saves a bit of useless white space
![]() ps. you have an extra > in your instructions Code:
td class="thead"<if condition="!$show['codeonly']"> colspan="2"</if>> |
|
#6
|
||||
|
||||
|
Quote:
The very last > is actually the end of the <td> tag. I put the conditional inside the tag. |
|
#7
|
||||
|
||||
|
Bah, vBSEO makes it look like the normal thing :P
|
|
#8
|
||||
|
||||
|
Nice little mod. Thanks.
|
|
#9
|
||||
|
||||
|
Thanks for sharing! Installed.
|
|
#10
|
||||
|
||||
|
Ya know...it's the simple things in life that makes one happy...
Great Mod...short, but Great! Clicks "Installed". |
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|