vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Horizontal "Posting Rules" table (https://vborg.vbsupport.ru/showthread.php?t=83382)

Kirk Y 06-19-2005 11:48 AM

Horizontal "Posting Rules" table
 
1 Attachment(s)
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:

HTML Code:

<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

1 Attachment(s)
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!


All times are GMT. The time now is 09:49 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01134 seconds
  • Memory Usage 1,738KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete