PDA

View Full Version : Board Optimization - Simple Rules Page


QsKGlobal.com
05-26-2007, 10:00 PM
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):

$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
$headinclude
<title>$vboptions</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:
<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:

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


[B]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
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"
<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:
<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:
</tr>
</table>

A link to my working Rules (http://forum.romanceanime.com/rules.php)
---
Great Mod, thanks.

Free-D
07-15-2007, 11:17 PM
Hmm... Is anybody notice that (after installing this mod) WHO IS ONLINE page does not properly display those users who are reading page http://myforum/rules.php

Users who are reading page http://myforum/rules.php on WHO IS ONLINE page are displayed as Unknown location :eek:

How to fix it? :confused:

QsKGlobal.com
08-23-2007, 11:18 AM
Hmm... Is anybody notice that (after installing this mod) WHO IS ONLINE page does not properly display those users who are reading page http://myforum/rules.php

Users who are reading page http://myforum/rules.php on WHO IS ONLINE page are displayed as Unknown location :eek:

How to fix it? :confused:

The reason it says that is because its not a premade page with vbulletin and Who's Online can't recognize it to specify.

To anyone having trouble, if you follow those intructions perfect...you should have no trouble.

applyimage
09-30-2007, 12:04 AM
great mod.

glennybee
02-15-2008, 08:02 PM
Just what I was looking for, thank you.

Another mod to add, if you want the box to be the same width as the forum, try this...

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">

...instead of...

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

Thanks
Glen

Magnum164
02-27-2008, 02:30 AM
I know this is not related to your mod. But thought I might give you a challenge:)

Everything works. Except I have Vbadvanced CMPS and Vbadvanced Links. When clicking the Navbar it fails to find the right path. I am learning on this but haven't yet found a way to make it work. If no ideas, I will start poking around in the vbadvanced sutff.

CoryNickerson
02-27-2008, 03:21 PM
This Account Has Been Suspended
Please contact the billing/support department as soon as possible.

pwned. lol.

nice mod.

Bilderback
08-18-2008, 02:40 AM
Hmm... Is anybody notice that (after installing this mod) WHO IS ONLINE page does not properly display those users who are reading page http://myforum/rules.php
Users who are reading page http://myforum/rules.php on WHO IS ONLINE page are displayed as Unknown location :eek:

How to fix it? :confused:

You have to add two plugins.
Click here to see a great article that shows you. (https://vborg.vbsupport.ru/showthread.php?t=82882)
Or you can use the xml attached.Remember its a plugin, not a product.

I know this is not related to your mod. But thought I might give you a challenge:)
Everything works. Except I have Vbadvanced CMPS and Vbadvanced Links. When clicking the Navbar it fails to find the right path. I am learning on this but haven't yet found a way to make it work. If no ideas, I will start poking around in the vbadvanced sutff.

You can use the variable $vboptions[bburl] in front of the /rules.php

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