vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=192)
-   -   Board Optimization - Simple Rules Page (https://vborg.vbsupport.ru/showthread.php?t=148259)

QsKGlobal.com 05-26-2007 10:00 PM

Simple Rules Page
 
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. ;)

Gazer 05-27-2007 10:34 PM

nice mod, thanks
will install this later

The Scriblerian 06-30-2007 04:37 AM

I can't get the stinkin rules.php to open correctly. Help?

QsKGlobal.com 07-01-2007 10:14 PM

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.

EnIgMa1234 07-01-2007 10:50 PM

Shouldnt this be in addons

QsKGlobal.com 07-02-2007 10:09 AM

Quote:

Originally Posted by EnIgMa1234 (Post 1280882)
Shouldnt this be in addons

It doesn't require any actual vB product installation, so I posted it here :/

EnIgMa1234 07-02-2007 12:15 PM

Yea but it has file additions

aakhan136 07-14-2007 06:19 PM

Thanks

Free-D 07-14-2007 07:43 PM

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" )

Arrangements 07-15-2007 06:08 PM

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.


All times are GMT. The time now is 11:32 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.01113 seconds
  • Memory Usage 1,739KB
  • 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
  • (4)bbcode_code_printable
  • (2)bbcode_html_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete