Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Message Board Rules 1.5 Details »»
Message Board Rules 1.5
Version: 1.00, by Christine Christine is offline
Developer Last Online: May 2012 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 05-30-2003 Last Update: Never Installs: 23
 
No support by the author.

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!

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 05-31-2003, 08:20 PM
Chris M's Avatar
Chris M Chris M is offline
 
Join Date: Dec 2001
Location: Northampton, England
Posts: 6,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice

Satan
Reply With Quote
  #3  
Old 05-31-2003, 08:32 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Excellent idea.
Reply With Quote
  #4  
Old 05-31-2003, 08:39 PM
all-the-vb's Avatar
all-the-vb all-the-vb is offline
 
Join Date: Apr 2003
Location: Norwich,Uk
Posts: 174
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very nice.
thank you!
Reply With Quote
  #5  
Old 05-31-2003, 09:04 PM
Christine's Avatar
Christine Christine is offline
 
Join Date: Oct 2001
Location: PA
Posts: 472
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
  #6  
Old 05-31-2003, 09:44 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Or you can add a link at the bottom (in the footer).
Reply With Quote
  #7  
Old 06-01-2003, 04:10 PM
hayl hayl is offline
 
Join Date: Feb 2003
Location: egypt
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very nice.
Thanks
Reply With Quote
  #8  
Old 06-22-2003, 07:09 PM
electrolov electrolov is offline
 
Join Date: Dec 2002
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #9  
Old 06-22-2003, 08:25 PM
Christine's Avatar
Christine Christine is offline
 
Join Date: Oct 2001
Location: PA
Posts: 472
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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:
Reply With Quote
  #10  
Old 06-22-2003, 09:01 PM
electrolov electrolov is offline
 
Join Date: Dec 2002
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yep, did the same.

thanks for updating the folder for everyone else.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04764 seconds
  • Memory Usage 2,295KB
  • Queries Executed 23 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (1)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete