Simple Machines Community Forum

Archived Boards and Threads... => Archived Boards => Install and Upgrade Help => Aiheen aloitti: Edhyahya - marraskuu 22, 2010, 07:07:34 IP

Otsikko: Admin Registrations; Force Site Terms Acceptance?
Kirjoitti: Edhyahya - marraskuu 22, 2010, 07:07:34 IP
I have been using SMF for over three years and have run into something I don't know how to solve, I am hoping someone has an idea.

I am setting up a new SMF site using v1.1.12.

The site is configured to disallow guests to self-register.

The users on this site will be by invitation only for product support exclusively.

Due to the nature of the information that may be posted, we would like to have the users verify their email addresses and at the time of address verification, have a posted Terms and Usage statement with a check box the user has to check to acknowledge their acceptance (like the registration statement displayed during the registration process.)

The registration statement isn't displayed when the accounts are pre-registered by an admin....

Any ideas?
Otsikko: Re: Admin Registrations; Force Site Terms Acceptance?
Kirjoitti: Deaks - marraskuu 22, 2010, 08:22:30 IP
there are two mods that you could use:

http://custom.simplemachines.org/mods/index.php?mod=1364
http://custom.simplemachines.org/mods/index.php?mod=727
Otsikko: Re: Admin Registrations; Force Site Terms Acceptance?
Kirjoitti: Edhyahya - marraskuu 23, 2010, 12:39:37 AP
Thanks for the really quick reply!

The Updated Registration Agreement (http://custom.simplemachines.org/mods/index.php?mod=727)  did what I needed.

The problem I ran into was that upon registration by an admin the `smf_members` -> `agreement_accepted` value is initialized with 1 indicating acceptance. I want the user to review the agreement no matter what so...

In hopes of helping others, I want to document that I had to change Sources/Subs-Members.php, in:
function registerMember(&$regOptions)
around line 718:
Was:
                // --- Begin modification - Updated registration agreement ---
                // They've already accepted the registration agreement!
                'agreement_accepted' => 1,

Modified to:
                // --- Begin modification - Updated registration agreement ---
                // They've already accepted the registration agreement!
                // 'agreement_accepted' => 1,
                // Force all new registrations to accept registration agreement
                'agreement_accepted' => 0,


Thanks a ton!