Uutiset:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu
Advertisement:

Admin Registrations; Force Site Terms Acceptance?

Aloittaja Edhyahya, marraskuu 22, 2010, 07:07:34 IP

« edellinen - seuraava »

Edhyahya

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?

Deaks

~~~~
Former SMF Project Manager
Former SMF Customizer

"For as lang as hunner o us is in life, in nae wey
will we thole the Soothron tae owergang us. In truth it isna for glory, or wealth, or
honours that we fecht, but for freedom alane, that nae honest cheil gies up but wi life
itsel."

Edhyahya

Thanks for the really quick reply!

The Updated Registration Agreement  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!

Advertisement: