Advertisement:

Author Topic: Make sure people read the registration agreement.  (Read 84779 times)

Offline Tristan Perry

  • SMF Hero
  • ******
  • Posts: 2,498
  • Gender: Male
    • Tristan Perry
Make sure people read the registration agreement.
« on: October 31, 2004, 12:35:20 PM »
Hello,
  I was getting tired of people skipping the registration agreement (Which has my forum rules in it) and then asking a question about the forum rules. To prevent this, I made this small mod that stops people from not reading the board registration agreement.

In Register.template.php
Find:

Code: [Select]
<div align="center">
<input type="submit" name="regSubmit" value="', $txt[97], '" />
</div>

Replace with:
Code: [Select]
<div align="center">
<input type="hidden" name="time" value="'. time() . '" />
<input type="submit" name="regSubmit" value="', $txt[97], '" />
</div>

In /Sources/Register.php
IN SMF 1.1 Find:

Code: [Select]
// Collect all extra registration fields someone might have filled in.
WHILE IN SMF 1.0 Find:
Code: [Select]
// Trim any whitespace from the username.
Add above it:
Code: [Select]
// Read the registration agreement!
if ( !empty($modSettings['requireAgreement']) )
{
if( ( time() - $_POST['time'] ) < 20 )
fatal_error('
Congratulations! You just broken the Official World record for speed-reading!
Actually, we know you didn\'t read the forum rules, so please do so before continuing.
<br /><br />Please click <a href="', $scripturl, '?action=register">here</a> to re-register.',false);
}


All done. This shows an error message if people take less than 20 seconds registering. To change the amount of time before the error message isn't shown:

Find:
if( ( time() - $_POST['time'] ) < 20 )

And replace the number '20' with the amount of seconds you want. Also the error message may not be what you want to show to your new members, so change the part that says:

Quote
Congratulations! You just broken the Official World record for speed-reading!
      Actually, we know you didn\'t read the forum rules, so please do so before continuing.
      <br /><br />Please click <a href="'.$scripturl.'index.php?action=register">here</a> to re-register.

To what you want to say  :)
 I hope this helps,
 Tau Online.Org
« Last Edit: July 11, 2006, 05:20:29 AM by Tau Online »

Offline Owdy

  • SMF Fossil
  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 15,590
  • Gender: Male
  • W00t!
    • janoloferiksson on LinkedIn
    • @@jaoler on Twitter
Re: Make sure people read the registration agreement.
« Reply #1 on: October 31, 2004, 12:49:50 PM »
Heh, nice one. I have to try this :)
Former Lead Support Specialist

Tarvitsetko apua SMF foorumisi kanssa? Otan työtehtäviä vastaan, lue:http://www.simplemachines.org/community/index.php?topic=375918.0

Offline A.M.A

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 2,133
  • Gender: Male
  • ..
Re: Make sure people read the registration agreement.
« Reply #2 on: October 31, 2004, 12:54:01 PM »
Indeed, a nice and clever tip Tau Online
Really sorry .. real life is demanding my full attention .. will be back soon hopefully :)

Offline Nederland

  • Semi-Newbie
  • *
  • Posts: 46
Re: Make sure people read the registration agreement.
« Reply #3 on: November 01, 2004, 08:09:05 AM »
Very nice, i think i will use it on my board, thx again!

Offline Tristan Perry

  • SMF Hero
  • ******
  • Posts: 2,498
  • Gender: Male
    • Tristan Perry
Re: Make sure people read the registration agreement.
« Reply #4 on: November 01, 2004, 12:19:54 PM »
Heh, nice one. I have to try this :)
Indeed, a nice and clever tip Tau Online
Thanks, I appreciate it  :)
Very nice, i think i will use it on my board, thx again!
Thanks, and your welcome  :)
« Last Edit: November 01, 2004, 01:25:16 PM by Tau Online »

Offline Trekkie101

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 8,157
  • Gender: Male
  • Ad Astra!
    • https://www.facebook.com/DLRPRoundup on Facebook
    • @dlrproundup on Twitter
    • DLRP Roundup
Re: Make sure people read the registration agreement.
« Reply #5 on: November 01, 2004, 12:45:51 PM »
Im gonna use this all the time, this is great, and plus gets them everytime.

Offline Tristan Perry

  • SMF Hero
  • ******
  • Posts: 2,498
  • Gender: Male
    • Tristan Perry
Re: Make sure people read the registration agreement.
« Reply #6 on: November 01, 2004, 02:27:14 PM »
Im gonna use this all the time, this is great, and plus gets them everytime.
lol! Thanks  :)

Offline Peter Duggan

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 4,663
  • Gender: Male
    • Peat Stack or Pete's Tack?
Re: Make sure people read the registration agreement.
« Reply #7 on: November 01, 2004, 03:18:30 PM »
Im gonna use this all the time, this is great, and plus gets them everytime.

Perhaps I'll register at all your forums and pour myself a drink while you think I'm reading the agreement! >:D

Offline Ben_S

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 11,702
  • xxx
Re: Make sure people read the registration agreement.
« Reply #8 on: November 01, 2004, 04:36:42 PM »
Personally, I never read a registration agreement, and forcing a time to wait won't make me, I'll either go and surf on another tab then come back, or just leave fully.

People just generally don't do reading agreements, they should, but they don't.
Liverpool FC Forum with 14 million+ posts.

Offline Oldiesmann

  • Developer
  • SMF Super Hero
  • *
  • Posts: 24,814
  • Gender: Male
  • Ask me about the function DB :)
    • oldiesmann on Facebook
    • Oldiesmann on GitHub
    • http://www.linkedin.com/in/michaeleshom on LinkedIn
    • @oldiesmann on Twitter
    • Archie Comics Fan Forum
Re: Make sure people read the registration agreement.
« Reply #9 on: November 02, 2004, 10:38:57 AM »
The default registration agreement is a bit lengthy, and I rarely read those things, but this is a neat trick. I love the error message too. :)
Michael Eshom
Webmaster / SMF Lead Developer
oldiesmann@simplemachines.org

Offline Tristan Perry

  • SMF Hero
  • ******
  • Posts: 2,498
  • Gender: Male
    • Tristan Perry
Re: Make sure people read the registration agreement.
« Reply #10 on: November 02, 2004, 12:24:45 PM »
Personally, I never read a registration agreement, and forcing a time to wait won't make me, I'll either go and surf on another tab then come back, or just leave fully.

People just generally don't do reading agreements, they should, but they don't.
The default registration agreement is a bit lengthy, and I rarely read those things, but this is a neat trick. I love the error message too. :)
Bah! Spolit-sports  :P Just joking. Thanks for the compliments Olidesmann :)

Offline Winters

  • Jr. Member
  • **
  • Posts: 266
  • Gender: Female
    • DykesVision. Reality-based.
Re: Make sure people read the registration agreement.
« Reply #11 on: November 06, 2004, 03:59:43 PM »
Hello Tau,

I implemented this, but it does not seem to work. Could it be that our using a RC1 theme is not compatible? (The rest has been updated to RC2. Link: http://forum.dykesvision.com . We have set it so registrations must be approved.)

Offline Tristan Perry

  • SMF Hero
  • ******
  • Posts: 2,498
  • Gender: Male
    • Tristan Perry
Re: Make sure people read the registration agreement.
« Reply #12 on: November 06, 2004, 04:05:29 PM »
Hello Tau,

I implemented this, but it does not seem to work. Could it be that our using a RC1 theme is not compatible? (The rest has been updated to RC2. Link: http://forum.dykesvision.com . We have set it so registrations must be approved.)
Strange, you've edited the right part of Regsiter.template.php, are you sure you've edited the /Sources/Register.php file? From the looks of things you haven't, otherwise the error message would be shown.. Could you please re-try to the steps for editing the Regsiter.php source file, and then see if this works?

Offline Winters

  • Jr. Member
  • **
  • Posts: 266
  • Gender: Female
    • DykesVision. Reality-based.
Re: Make sure people read the registration agreement.
« Reply #13 on: November 07, 2004, 03:52:19 PM »
Tau,

thanks for your reply. I re-did the steps and yes, I did edit register.php. Still...

I'm beginning to think I must have made a really stupid mistake, but I can't figure our which one... Should I chmod anything, btw.?
« Last Edit: November 07, 2004, 03:54:16 PM by Winters »

Offline Tristan Perry

  • SMF Hero
  • ******
  • Posts: 2,498
  • Gender: Male
    • Tristan Perry
Re: Make sure people read the registration agreement.
« Reply #14 on: November 07, 2004, 04:23:51 PM »
Tau,

thanks for your reply. I re-did the steps and yes, I did edit register.php. Still...

I'm beginning to think I must have made a really stupid mistake, but I can't figure our which one... Should I chmod anything, btw.?
That's very odd.. nothing has changed from RC1 to RC2 that would prevent this from working... could you PM me your FTP details so I can make this work? If you don't feel comfortable doing that (I understand if you do!) then could you send me your Register.php file so I can take a better look at things? The fact that you aren't getting any parse errors seems to suggest you haven't copied it correctly, or pu tit in the wrong place, but I can't be certain about that..
« Last Edit: November 07, 2004, 04:25:58 PM by Tau Online »

Offline Winters

  • Jr. Member
  • **
  • Posts: 266
  • Gender: Female
    • DykesVision. Reality-based.
Re: Make sure people read the registration agreement.
« Reply #15 on: November 09, 2004, 04:15:15 PM »
Tau,

thanks for your reply. I re-did the steps and yes, I did edit register.php. Still...

I'm beginning to think I must have made a really stupid mistake, but I can't figure our which one... Should I chmod anything, btw.?
That's very odd.. nothing has changed from RC1 to RC2 that would prevent this from working... could you PM me your FTP details so I can make this work? If you don't feel comfortable doing that (I understand if you do!) then could you send me your Register.php file so I can take a better look at things? The fact that you aren't getting any parse errors seems to suggest you haven't copied it correctly, or pu tit in the wrong place, but I can't be certain about that..

Actually, the wrong place could be a good guess, as I do remember not finding a file which was supposed to be somewhere (very accurate, huh?). I'll send you the ftp details; however, this is a sort of test run, I mean, the forum is online, but the forum I'd like to implement this in is actually alive, so I would need you tell me  what went wrong  here?

Offline Tristan Perry

  • SMF Hero
  • ******
  • Posts: 2,498
  • Gender: Male
    • Tristan Perry
Re: Make sure people read the registration agreement.
« Reply #16 on: November 09, 2004, 04:28:45 PM »
Actually, the wrong place could be a good guess, as I do remember not finding a file which was supposed to be somewhere (very accurate, huh?). I'll send you the ftp details; however, this is a sort of test run, I mean, the forum is online, but the forum I'd like to implement this in is actually alive, so I would need you tell me  what went wrong  here?

I've recieved your FTP details, I'll get this up working soon, I have to go offline in a second, so I'll give this a go tommorow.
« Last Edit: November 09, 2004, 04:34:08 PM by Tau Online »

Offline TarantinoArchives

  • Full Member
  • ***
  • Posts: 442
  • Gender: Male
  • Call it, friendo
    • The Quentin Tarantino Archives
Re: Make sure people read the registration agreement.
« Reply #17 on: November 20, 2004, 12:09:53 PM »
tau, can you make a mod/package for this? would be awesome

Offline Tristan Perry

  • SMF Hero
  • ******
  • Posts: 2,498
  • Gender: Male
    • Tristan Perry
Re: Make sure people read the registration agreement.
« Reply #18 on: November 20, 2004, 03:38:08 PM »
tau, can you make a mod/package for this? would be awesome
It's really too small to warrant a mod status, also I don't know how to make mods!

Offline HoTmetal

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 2,950
Re: Make sure people read the registration agreement.
« Reply #19 on: December 15, 2004, 08:40:17 PM »
Great, now I can add the part about owning their sole & it will all be legal ;D j/k

BTW I looked @ your forum & it didn't show the names, just the karma, its this because I wasn't logged in?
« Last Edit: December 16, 2004, 03:09:08 AM by rickc »