PDA

View Full Version : Disabling The "I Agree" Checkbox Until A Specified Amount Time Has Elapsed


TCM
12 Nov 2005, 00:15
As requested in this thread.

This addition disables the "I Agree" checkbox on the rules page during registration until a specifed amount of time has elapsed. If it isn't obvious, this idea is that the users can't just click through right away, so they're more likely to actually read the rules.

IN TEMPLATE register_rules:

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>

ADD AFTER

<script type="text/javascript">
var agreebox = document.getElementById('cb_rules_agree');
agreebox.disabled = true;
setTimeout("agreebox.disabled = false;", 10000);
</script>

Replacing 10000 with the number of miliseconds you want it to wait before enabling the checkbox.


If you use this, please press install (http://www.vbulletin.org/forum/vborg_miscactions.php?do=installhack&threadid=100617). :)

EasyTarget
12 Nov 2005, 00:50
great idea.

and they'll probably ask you to include a txt file?

TCM
12 Nov 2005, 00:56
great idea.

and they'll probably ask you to include a txt file?

Would they? It seems that most other modifications on the first page have basic template modifications in their first post. :p

EasyTarget
12 Nov 2005, 01:06
haha guess so. I don't know what the standards are, just seems like I always see the mods asking people to add txt files. probably doesn't apply to these type of hacks.

thanks for the hack, its something I need myself as I'm always clicking through lol

Daniel
12 Nov 2005, 01:25
Nice. :)

Andreas
12 Nov 2005, 01:47
Can you please include a Textfile with the instructions?
Thank you.

Btw: I HATE sites that do this, and those that do won't see me again :)
I know the rules (as they are +- always the same) so it's just a PITA ...

TCM
12 Nov 2005, 01:50
Can you please include a Textfile with the instructions?
Thank you.Ah, so EasyTarget was right.

Include the text file, and remove it from the first post?

Andreas
12 Nov 2005, 01:54
You can leave it in the first post, that's fine - just include a textfile as well.
It's good to have a textfile for future reference (when upgrading, etc.) :)

akanevsky
12 Nov 2005, 01:59
Btw: I HATE sites that do this, and those that do won't see me again
I know the rules (as they are +- always the same) so it's just a PITA ...

Same here.

DJ XtAzY
12 Nov 2005, 02:08
Same here.

same since this may lower user registration rate

Tidy
12 Nov 2005, 02:11
Wow, Thank you very much, a very handy addition!

Boofo
12 Nov 2005, 06:29
haha guess so. I don't know what the standards are, just seems like I always see the mods asking people to add txt files. probably doesn't apply to these type of hacks.

thanks for the hack, its something I need myself as I'm always clicking through lol

The text file request applies to all hacks/mods/plug-ins. It is easier to re-install later on if they upgrade when they have the instruction in a file on their computer instead of having to hunt it down here. ;)

Snake
12 Nov 2005, 13:22
Thanks man!

OllieRocks
10 Dec 2005, 10:06
/me installs! :)

Delphiprogrammi
02 Mar 2006, 20:05
verry nice idea

/me clicked install