PDA

View Full Version : Message Board Rules 1.5


Christine
05-30-2003, 10:00 PM
Update: Zip replaced 22 June to fix missing template instructions here (https://vborg.vbsupport.ru/showthread.php?postid=411719#post411719)

This is somewhat similar to Logician's Fast Access (https://vborg.vbsupport.ru/showthread.php?s=&threadid=34861&highlight=rules) hack, so if this isn't want you are looking for -- try there!

I will support this hack, so post any questions you may have. I have been running it since 2.2.6, now on 2.3.0.

Situation:

We wanted our members to be shown our board rules before they register. We had a seperate web page for the board rules, so every time we changed them, we had to change them 3 times -- on that page and the signupcoppa and signupadult templates.

What this does:

Sets up the rules as a variable, so they can be used anywhere, sets up the rules page as a standalone URL

Difficulty:

This hack requires a template addition and the difficulty will depend on the complexity of the template that you create. This hack does require a working knowledge of html table structures!

Template Note:

It was our preference to leave Jelsoft's opening statements on the signupcoppa and signupadult
templates, but not on the rules page, so this hack was written with that assumption. If you wish to do differently, adjust the templates as necessary.


There are two sets of instructions in the zip because of the register_imagebit template reference in 2.3.0 that doesn't appear in 2.2.x.

Included in this zip:

rules.php
ruleshack230.txt instructions
ruleshack22x.txt instructions
sample_ruleslist.txt for template help
sample_signupcoppa.txt for template help
rules.gif header button (vB default color)



Cheers!

Chris M
05-31-2003, 08:20 PM
Nice:)

Satan

Boofo
05-31-2003, 08:32 PM
Excellent idea. ;)

all-the-vb
05-31-2003, 08:39 PM
Very nice.
thank you!

Christine
05-31-2003, 09:04 PM
Thanks!

I forgot to include this in the zip -- here is a header button .gif for vBulletin original style in case anyone wants it.

You can modify your own by downloading the vBulletin Graphics Development kit from the members area of www.vbulletin.com and adding a 'rules' layer to header.psd.

If you are using vButton, you will need to add 'rules' as a user defined header button.

Cheers!

Boofo
05-31-2003, 09:44 PM
Or you can add a link at the bottom (in the footer). ;)

hayl
06-01-2003, 04:10 PM
Very nice.
Thanks

electrolov
06-22-2003, 07:09 PM
installed, as a test, looks great, in the registration forms, even with some complictated rules, nice job.

one question?
how can i link to just the rules
...forums/rules.php?s=

is a blank page?

actually, to get a $ruleslist page to show up, do we need to be making a new template called rules?
last line of yr rules.php is this...
eval("dooutput(\"".gettemplate("rules")."\");");

would that template called "rules", include header and such
$ruleslist
then $footer and such

and then bam, u get a rule page?

Christine
06-22-2003, 08:25 PM
Hmmm,

I thought that was in the instructions. I will double check and reupload.

Here is the rules template: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>$bbtitle - Message Board Rules</title>
</head>
<body>
<p>
$headinclude
<p>
$header
<table cellpadding="2" cellspacing="0" border="0" width="95%" align="center">
<tr>
<td width="100%"><img src="http://www.yoursite.com/path/to/images/vb_bullet.gif" alt="" border="0" align="absmiddle">
<normalfont><b><a href="index.php?s=$session[sessionhash]">$bbtitle</a> &gt;
<b>Message Board Rules</b></normalfont></td>
</tr>
</table>
<br>
<br>
$ruleslist
<br>
$footer
</body>
</html>Note -- this is parsing the imagesfolder, so you will need to manually override that from this copy.

New Zip uploaded:

electrolov
06-22-2003, 09:01 PM
yep, did the same.

thanks for updating the folder for everyone else.

Aerith_Freak
07-04-2003, 06:49 PM
Nice Addition, I like the idea.

^-^

Rubicant
07-20-2003, 02:35 PM
Installed this hack, thanks! :)