Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Applicant Email Verification Hacks
Just wanted to post about some modifications I made to the ApplicantEmailVerification extension:
The goal was to change the "About Membership" text on the sign-up page to reflect the e-mail verification process. In my case, I'd set the new member role to "Member" rather than "Applicant" so that applicants could get immediate access after clicking on the verification link. Consequently the text about administrators reviewing the role, etc. really didn't apply.
I added the following line to default.php, line 59:
And added the following entry to language.php:
This modification is a hack and should be treated as such. It would probably need more intelligence about whether the new member role was set to something with sign-in permissions before it would be more generally useful.
The goal was to change the "About Membership" text on the sign-up page to reflect the e-mail verification process. In my case, I'd set the new member role to "Member" rather than "Applicant" so that applicants could get immediate access after clicking on the verification link. Consequently the text about administrators reviewing the role, etc. really didn't apply.
I added the following line to default.php, line 59:
if ($ConstantManager->_settings['APPLICANT_EMAIL_VERIFICATION_ON']) $Context->Dictionary['AboutMembership'] = $Context->Dictionary['EmailVerification_AboutMembership'];
And added the following entry to language.php:
$Context->SetDefinition('EmailVerification_AboutMembership', '<h2>About membership</h2>
<p>This membership <strong>application</strong> form does not grant immediate access to the site. After applying, you should receive an email from '.$Context->Configuration['SUPPORT_EMAIL'].'. Follow the instructions it describes to activate your membership. If you cannot find this email in your mailbox, check your "junk mail" or "spam trap" folder.</p>
<p>Please do not enter invalid or incorrect information in this form or you will most likely not be granted access to the site.</p>
<p>All information entered in this form will be kept strictly confidential.</p>');
This modification is a hack and should be treated as such. It would probably need more intelligence about whether the new member role was set to something with sign-in permissions before it would be more generally useful.
0
This discussion has been closed.
Comments
It might like you did, but you should use
if ($Context->Configuration['APPLICANT_EMAIL_VERIFICATION_ON']) = $Context->Dictionary['AboutMembership'] = $Context->Dictionary['EmailVerification_AboutMembership'];