Welcome the Technical Support section. Help us in assisting you by providing us with a concise and descriptive elaboration of your issues. Be specific and if possible, provide us with a step-by-step instruction in replicating your problem.
Include Profile Information in Admin Notification of Registration
I'm working on a site where registration is actually considered membership in the organization. When someone joins, an email is sent to admins (regional leaders) notifying them of a new member. Right now, we're using CiviCRM but would like to migrate everything to Jomsocial. The ONLY sticking point right now is this notification email. Currently, the email that goes out has, what is the equivalent of, their profile information (first name, last name, street address, city, state, zip, email address, phone number, etc). I know that we can collect that in Jomsocial on registration, but I can find no way to include this info in the admin email.
Any suggestions as this is a VERY SIGNIFICANT issue for using JS on this site. Thanks!
It's may be a bit hard to achieve and for sure it will require core files to hack. Notification email to admin is composed by using language constant:
COM_COMMUNITY_SEND_MSG_ADMIN
that loads few variables:
Hello %s,\n\nA new user has registered at %s.\nThis e-mail contains the details:\n\nName: %s\nE-mail: %s\nUsername: %s\n\nPlease do not respond to this message. This message is automatically generated and is sent for your information only.
You can see variables in order. in the same order they are displayed by langauge constant..
What you need to do is to select certain data from database and loads them to variables and use them as argument in this line.
User data are stored in table _community_profile_fields_values.
- Instead of saying: 'it's not working', explain the problem in detail.
- Screenshots with the URL visible in them and the problem marked are more than welcome.
- Tell us how to replicate the problem, we can't fix it if we can't find it.
- Make sure that your site/server meets JomSocial System Requirements
- Make sure to setup JomSocial Cron Job
- Always provide us with access details to the backend and ftp. We need it to debug problems.
- If you have a similar problem, but a solution you found isn't working, open a new thread instead of 'merging' with an existing one.
- Use the "Thank You" feature on any post that helped you