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)
-   -   Move Forum Rules Checkbox (https://vborg.vbsupport.ru/showthread.php?t=138930)

Cyricx 02-08-2007 10:00 PM

Move Forum Rules Checkbox
 
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
Code:

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

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

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

<!-- 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.


All times are GMT. The time now is 01:33 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.00959 seconds
  • Memory Usage 1,724KB
  • 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
  • (4)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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