vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Message Board Rules 1.5 (https://vborg.vbsupport.ru/showthread.php?t=53652)

Christine 05-30-2003 10:00 PM

Message Board Rules 1.5
 
Update: Zip replaced 22 June to fix missing template instructions here

This is somewhat similar to Logician's Fast Access 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...
PHP Code:

 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:
Code:

<!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! :)


All times are GMT. The time now is 05:02 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.01098 seconds
  • Memory Usage 1,740KB
  • 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
  • (1)bbcode_code_printable
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (12)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