The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
New look for Posting Rules (Rules at the bottom of forum display) Details »» | |||||||||||||||||||||||||||||
New look for Posting Rules (Rules at the bottom of forum display)
Developer Last Online: Sep 2022
Hey everyone working on a new theme and I have always thought that the posting rules could use a little tweak to make them a little nicer looking well I found a simple solution to show all of the information but have it wider instead of it being so tall. Check out the screenshot to see what it does.
How to install: 1. Go to Styles & Templates. 2. Select "Edit Templates" on the theme you would like to apply this to. 3. Open the "forumrules" template 4. Replace everything with the code provided below. Code:
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="260"> <thead> <tr> <td COLSPAN="2" 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><if condition="$can['postnew']">$vbphrase[you_may_post_new_threads]<else />$vbphrase[you_may_not_post_new_threads]</if></div> <div><if condition="$can['reply']">$vbphrase[you_may_post_replies]<else />$vbphrase[you_may_not_post_replies]</if></div> <div><if condition="$can['attachment']">$vbphrase[you_may_post_attachments]<else />$vbphrase[you_may_not_post_attachments]</if></div> <div><if condition="$can['editpost']">$vbphrase[you_may_edit_your_posts]<else />$vbphrase[you_may_not_edit_your_posts]</if></div> </td> <td class="alt1" nowrap="nowrap"> </if> <div><phrase 1="misc.php?$session[sessionurl]do=bbcode" 2="$bbcodeon">$vbphrase[bb_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> Screenshots
Show Your Support
|
Comments |
#2
|
||||
|
||||
Thanks man. Looks much better!!
|
#3
|
|||
|
|||
simple but nice
|
#4
|
|||
|
|||
i think it's need some extra modification
Code:
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="260"> <thead> <tr> <td COLSPAN="2" 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><if condition="$can['postnew']">$vbphrase[you_may_post_new_threads]<else />$vbphrase[you_may_not_post_new_threads]</if></div> <div><if condition="$can['reply']">$vbphrase[you_may_post_replies]<else />$vbphrase[you_may_not_post_replies]</if></div> <div><if condition="$can['attachment']">$vbphrase[you_may_post_attachments]<else />$vbphrase[you_may_not_post_attachments]</if></div> <div><if condition="$can['editpost']">$vbphrase[you_may_edit_your_posts]<else />$vbphrase[you_may_not_edit_your_posts]</if></div> </if></div></td> <td class="alt1" nowrap="nowrap"> <div class="smallfont"> <div><phrase 1="misc.php?$session[sessionurl]do=bbcode" 2="$bbcodeon">$vbphrase[bb_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> <tr> <td colspan="2" nowrap="nowrap" class="alt1"> <div class="smallfont"><phrase 1="misc.php?$session[sessionurl]do=showrules">$vbphrase[forum_rules_link]</phrase></div> </td> </tr> </tbody> </table> |
#5
|
|||
|
|||
besides the forum rules link at the bottom its the same thing with some unneeded code. I purposely left out the link to forum rules on the bottom because I have a better way to display the rules on my forum.
|
#6
|
|||
|
|||
Looks awesome mate great work and your effort is much appreciated.
|
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|