vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=236)
-   -   Forum Display Enhancements - New look for Posting Rules (Rules at the bottom of forum display) (https://vborg.vbsupport.ru/showthread.php?t=245309)

Hell Bomb 06-25-2010 10:00 PM

New look for Posting Rules (Rules at the bottom of forum display)
 
1 Attachment(s)
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>


Taurus1 06-26-2010 01:01 PM

Thanks man. Looks much better!!

Kolektor 06-26-2010 01:29 PM

simple but nice :)

cgway.net 08-19-2010 12:38 PM

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>

this will be better

Hell Bomb 08-20-2010 08:31 PM

Quote:

Originally Posted by cgway.net (Post 2086286)
i think it's need some extra modification

this will be better

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.

merk_aus 11-14-2010 12:18 AM

Looks awesome mate great work and your effort is much appreciated.


All times are GMT. The time now is 09:17 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.01100 seconds
  • Memory Usage 1,735KB
  • 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
  • (2)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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