Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Template Modifications
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)
Version: 1.00, by Hell Bomb Hell Bomb is offline
Developer Last Online: Sep 2022 Show Printable Version Email this Page

Category: Forum Display Enhancements - Version: 3.8.4 Rating:
Released: 06-25-2010 Last Update: Never Installs: 7
Template Edits
Re-useable Code Translations  
No support by the author.

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

File Type: gif Posting-RUles.gif (9.4 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 06-26-2010, 01:01 PM
Taurus1's Avatar
Taurus1 Taurus1 is offline
 
Join Date: Dec 2009
Posts: 648
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks man. Looks much better!!
Reply With Quote
  #3  
Old 06-26-2010, 01:29 PM
Kolektor Kolektor is offline
 
Join Date: Jun 2010
Posts: 115
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

simple but nice
Reply With Quote
  #4  
Old 08-19-2010, 12:38 PM
cgway.net cgway.net is offline
 
Join Date: Aug 2007
Posts: 82
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #5  
Old 08-20-2010, 08:31 PM
Hell Bomb Hell Bomb is offline
 
Join Date: Jun 2009
Posts: 385
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by cgway.net View Post
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.
Reply With Quote
  #6  
Old 11-14-2010, 12:18 AM
merk_aus merk_aus is offline
 
Join Date: Feb 2008
Location: Australia
Posts: 582
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:34 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04356 seconds
  • Memory Usage 2,271KB
  • Queries Executed 20 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (5)postbit
  • (1)postbit_attachment
  • (6)postbit_onlinestatus
  • (6)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete