Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Template Modifications

Reply
 
Thread Tools
Simple Rules Page Details »»
Simple Rules Page
Version: 1.00, by QsKGlobal.com QsKGlobal.com is offline
Developer Last Online: Mar 2011 Show Printable Version Email this Page

Category: Board Optimization - Version: 3.6.7 Rating:
Released: 05-26-2007 Last Update: Never Installs: 20
Template Edits
Code Changes  
No support by the author.

This will work with any version of 3.6

Installation Time: 10 minutes or less

Demo Page: www.qskglobal.com/rules.php

Step One:

Log into your admin control panel, go to Styles and Templates and find the style you'd like to add the rules page to and click Add Template.

Step Two:

Name this templete custom_Rules

Copy and Paste the following code to the body of this new template (edit the text in bold with your info):
Code:
$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
$headinclude
<title>$vboptions[bbtitle]</title>
</head>
<body>

$header
$navbar
<!-- Custom Code Start Here -->
<center>
<div style="padding:0px 0px 0px 0px">

<table class="tborder" cellpadding="0px" cellspacing="1" border="0" width="468px" <td align="center">
<tr>

<td class="thead" align="center">Official Site Rules | What can get you Banned</td>

</tr>
<tr>
<td class="alt1" align="center">
1. 
<br />
<br />
2. 
<br />
<br />
3. 
<br />
<br />
4. 
<br />
<br />
5. 
<br />
<br />
6. 


	</td>

</tr>
</table>

</div>
</center>
<!-- / Custom Code Ends here -->
$footer
</body>
</html>
Step three:

Fill in your rules.

Step Four:

Add the rules.php file (attached) to your sites main directory.

Step Five (optional):

This will add the sites rules link to your navbar
Find in template navbar:
Code:
<if condition="$show['registerbutton']">
			<td class="vbmenu_control"><a href="register.php$session[sessionurl_q]" rel="nofollow">$vbphrase[register]</a></td>
		</if>
Add the following below:

Code:
<td class="vbmenu_control"><a href="rules.php$session[sessionurl_q]">Site Rules</a></td>

Now you have a clean Rules page where you can link people to read in their welcome PM. This will help new members learn more about your board and hopefully save you some frustrations new members sometimes cause.

Show Your Support

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

Comments
  #2  
Old 05-27-2007, 10:34 PM
Gazer's Avatar
Gazer Gazer is offline
 
Join Date: May 2002
Location: Poulton-le-fylde
Posts: 44
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nice mod, thanks
will install this later
Reply With Quote
  #3  
Old 06-30-2007, 04:37 AM
The Scriblerian The Scriblerian is offline
 
Join Date: Oct 2006
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I can't get the stinkin rules.php to open correctly. Help?
Reply With Quote
  #4  
Old 07-01-2007, 10:14 PM
QsKGlobal.com QsKGlobal.com is offline
 
Join Date: Mar 2007
Location: Rockford, IL
Posts: 57
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Did you name the new template custom_Rules? That's the only reason it wouldn't show up correctly. The .php file is already precoded to pick up the template, so that's not the problem.
Reply With Quote
  #5  
Old 07-01-2007, 10:50 PM
EnIgMa1234 EnIgMa1234 is offline
 
Join Date: Mar 2006
Location: .:: Ireland ::.
Posts: 1,306
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Shouldnt this be in addons
Reply With Quote
  #6  
Old 07-02-2007, 10:09 AM
QsKGlobal.com QsKGlobal.com is offline
 
Join Date: Mar 2007
Location: Rockford, IL
Posts: 57
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by EnIgMa1234 View Post
Shouldnt this be in addons
It doesn't require any actual vB product installation, so I posted it here :/
Reply With Quote
  #7  
Old 07-02-2007, 12:15 PM
EnIgMa1234 EnIgMa1234 is offline
 
Join Date: Mar 2006
Location: .:: Ireland ::.
Posts: 1,306
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yea but it has file additions
Reply With Quote
  #8  
Old 07-14-2007, 06:19 PM
aakhan136 aakhan136 is offline
 
Join Date: Nov 2006
Posts: 84
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks
Reply With Quote
  #9  
Old 07-14-2007, 07:43 PM
Free-D Free-D is offline
 
Join Date: Jul 2007
Location: Ukraine
Posts: 27
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I think it's mistake - there's no symbol > after width="468px"
Code:
<div style="padding:0px 0px 0px 0px">

<table class="tborder" cellpadding="0px" cellspacing="1" border="0" width="468px" <td align="center">
<tr>

<td class="thead" align="center">Official Site Rules | What can get you Banned</td>
and the is no </td> for this: <td align="center"> (after width="468px" )
Reply With Quote
  #10  
Old 07-15-2007, 06:08 PM
Arrangements's Avatar
Arrangements Arrangements is offline
 
Join Date: Jul 2007
Posts: 50
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I had to modify the html so that it could work with my forum, this should be the correct html:
HTML Code:
<table class="tborder" border="0" cellpadding="6">
  <tr>
    <td class="tcat" align="center">Official Site Rules | Code of Conduct</td>
  </tr>
  <tr>
    <td class="alt1">
<p>Rules text</p>
After rules:
HTML Code:
  </tr>
</table>
A link to my working Rules
---
Great Mod, thanks.
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:51 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.05554 seconds
  • Memory Usage 2,291KB
  • Queries Executed 23 (?)
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
  • (4)bbcode_code
  • (2)bbcode_html
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)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_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete