importing members - membership approval email
Posted
#4795
(In Topic #1040)

Standard member

I have noticed a difference when validating a member using the standard member directory vs using the member import tool.
With the standard member directory option, then the e-mail is presented correctly, however when the member is validated during the import of a .csv file, the e-mail shows :
Your xxx membership has been approved
Your member account, {2}, on xxx has been validated. You may now log in:{3}
Where {2} should show the account name, and {3} should show the url.
Note i have a custom version of composr, and if this is present on the current version, and if there is a simple edit to a file ?
Thanks
Chris
Posted

Site director

Only the changes in cns_members_action2.php are needed.
Become a fan of Composr on Facebook or add me as a friend. Add me on on Mastodon. Follow me on Minds (where I am most active). Support me on Patreon
- If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
- If so, please let others know about Composr whenever you see the opportunity or support me on Patreon.
- If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying Composr on fun personal projects.
- If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Posted

Standard member

Thanks. FYI there is a small type in your commited code on cns_members_action2.php
$vb_subject should be $vm_subject
$vm_subject = do_lang('VALIDATED_MEMBER_SUBJECT', get_site_name(), null, get_lang($member_id)); $vm_body = do_lang('MEMBER_VALIDATED', get_site_name(), $_username, $login_url, get_lang($member_id)); mail_wrap($vm_subject, $vm_body, array($email_address), $_username, $login_url, '', 3, null, false, null, false, false, false, 'MAIL', false, null, null, $join_time);
Changes incorporated on my site, and working as expected.
Chris
1 guest and 0 members have just viewed this.