Log in

View Full Version : Horizontal "Posting Rules" table


Kirk Y
06-19-2005, 11:48 AM
I hope this is the right section... I wasn't sure where else to post this. But anyway, to the point. I'd like to make my "Posting Rules" box horizontal, rather than vertical. I'm looking for something like what this site has. My predicament is this: I've gotten the rules/bbcode restrictions set horizontal, as is the box... my problem is that the Posting Rules bar doesn't run the full length of the table. See the attached screenshot to see what I mean. Any and all help is/will be much appreciated! :D

deathemperor
06-19-2005, 02:50 PM
you're very lucky today that I also changed that on my site. Use this code for the forumrules template:

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="280">
<tr>
<td class="thead" colspan="<if condition="!$show['codeonly']">2<else />1</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>
<tr id="collapseobj_forumrules" style="$vbcollapse[collapseobj_forumrules]">
<if condition="!$show['codeonly']">
<td class="alt1" nowrap="nowrap"><div class="smallfont">

<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>
</if>
<td class="alt1" nowrap="nowrap"><div class="smallfont">
<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>
</table>

Kirk Y
06-19-2005, 07:21 PM
Many thanks deathemperor, but now a new problem has arisen. When I collapse the Posting Rules box, the bar shortens, how can I make it so that it's the same length as it is when it's not collapsed? See screenshots.

Edit: Also, would you mind telling me how you got the title bar to run the full length of the table?

deathemperor
06-19-2005, 11:32 PM
reapply the code in my previous post.

also next time try not to attch using bmp image, thanks

Kirk Y
06-20-2005, 07:26 PM
Thanks, sorry abou the BMPs, I was in a hurry and just used Paint for the screenshots. Thanks again!