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.

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

Quote:

Originally Posted by Free-D (Post 1292268)
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...

Code:

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

Code:

<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

Quote:

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

Quote:

Originally Posted by Free-D (Post 1292268)
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.
Or you can use the xml attached.Remember its a plugin, not a product.

Quote:

Originally Posted by Magnum164 (Post 1451823)
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
Code:

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


All times are GMT. The time now is 04:57 PM.

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.01126 seconds
  • Memory Usage 1,764KB
  • 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
  • (7)bbcode_code_printable
  • (2)bbcode_html_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (17)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