PDA

View Full Version : Move Forum Rules Checkbox


Cyricx
02-08-2007, 10:00 PM
This modification moves the checkbox within the forum rules that a user reads when registering to your forums. This forces them to at least scroll through the rules before skipping by.

Idea by: boeserwolf
https://vborg.vbsupport.ru/showthread.php?t=138514

Pretty quick and easy, just one file edit to "register_rules".

This should really help those boards that have alot of rules they wish users would at least skim through before skipping by :)

Parkw?chter
02-12-2007, 01:57 PM
nice work:)

BigJimTheLug
02-14-2007, 03:02 AM
Can this also help me change the colors of the forum rules without changing other things?

If so, how?

Cyricx
02-21-2007, 06:12 PM
The font color of the forum rules comes from the "page" setting in your styles and templates.

You can either change the color of the font in your page setting of your style.

Or you can change this

<div class="page" style="border:thin inset; padding:$stylevar[cellpadding]px;<if condition="!is_browser('konqueror')"> height:175px; overflow:auto</if>">


to a different class, for example to use alt1 (one of the main background/font colors of user's posts) you would change it to

<div class="alt1" style="border:thin inset; padding:$stylevar[cellpadding]px;<if condition="!is_browser('konqueror')"> height:175px; overflow:auto</if>">


You can see where I changed class="page" to class="alt1"

I would suggest changing your setting rather then changing the class though as if you are having an issue with the text being hard to read in the rules box, there is a good chance that you are having other issues on your site with visibility that you may not be aware of :)

sv1cec
04-20-2007, 09:59 AM
Lovely, I've been searching for something like that for months. So simple!

Thanks!

mlomenzo
06-14-2007, 04:22 PM
when I applied this mod ( a great idea) my rules disappeared adn only a checkbox sits in the rules box now. the rules are gone. Could you update this hack to work with 3.6.7

thanks, Gread mod

mlomenzo
06-14-2007, 04:31 PM
I ansswered my own question. All you have to do is the following:
in the register_rules template

Find:<div><label for="cb_rules_agree"><input type="checkbox" name="agree" id="cb_rules_agree" value="1" /><strong><phrase 1="$vboptions[bbtitle]">$vbphrase[read_agree_abide_by_rules]</phrase></strong></label></div>


Now cut and paste it right below this code in the same template. : <!-- regular forum rules -->
<phrase 1="$vboptions[forumhome].php$session[sessionurl_q]" 2="$vboptions[bbtitle]">$vbphrase[forum_rules_description]</phrase>

This code appears in the same order in the template... one is right below the other. hope that makes sense.