PDA

View Full Version : Mini Mods - Minify the "Posting Rules" box


Analogpoint
09-26-2007, 10:00 PM
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:
http://www.analogpoint.com/static/images/posting-rules-screenshot.png

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:
<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>

To this:
<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>

killerkraft
09-27-2007, 05:19 PM
Thank's for the simple ideia.

Great job.

KK

Magnumutz
09-27-2007, 05:35 PM
Nice one, thanks. Installed.

But i think the right title for this would be "Minimize" or "Resize"...

muratksk
09-27-2007, 08:28 PM
thanks you.installed :)

Hornstar
09-28-2007, 06:13 AM
Thanks, it works great, and saves a bit of useless white space :)

ps. you have an extra > in your instructions

td class="thead"<if condition="!$show['codeonly']"> colspan="2"</if>>

Analogpoint
09-28-2007, 01:46 PM
Thanks, it works great, and saves a bit of useless white space :)Thanks.


ps. you have an extra > in your instructions

The very last > is actually the end of the <td> tag. I put the conditional inside the tag.

Magnumutz
09-28-2007, 07:17 PM
Bah, vBSEO makes it look like the normal thing :P

chkdgate
10-07-2007, 07:21 PM
Nice little mod. Thanks.

Wheezy
10-11-2007, 05:42 AM
Thanks for sharing! Installed.

Saviour
11-05-2007, 03:42 AM
Ya know...it's the simple things in life that makes one happy...

Great Mod...short, but Great! Clicks "Installed".

DDIG
11-09-2007, 03:05 PM
Very nice and simple. I clicked 'installed'.

dvbusuario
11-10-2007, 02:30 AM
Nice, thanks.

youradhere4222
11-10-2007, 03:08 PM
I've already totally removed it. ;)

Mecho
02-07-2009, 10:03 PM
i have tried this , but here is the result :

Any idea ?

Dingo14
02-11-2009, 08:49 AM
i have tried this , but here is the result :



Any idea ?

just do the edits don't change the whole template I had the same problem when i just did the edits all was good

Mecho
02-12-2009, 06:26 AM
just do the edits don't change the whole template I had the same problem when i just did the edits all was good

thanks mate .

SOLVED.

thompson
02-12-2009, 11:15 AM
thanks.

is it possible to let only registered see the box ?

letsjoy
08-02-2011, 06:52 PM
Anything similar for vb 4 ?
Thanks