Support > cpg1.5 email

Email information "Registration notification" to admin

(1/2) > >>

eminitradingschool:
I have read thru the previous threads regarding changing the Email information "Registration notification" to admin. I do not see anything current to version 1.5. The information I see seems a little incomplete and spread out. Is there a tutorial somewhere with what files to edit and lines to insert to add this functionality?

The important information to me would be the users email address.
If its not to difficult I would like to add a field for a real name.

Thanks in advance. Jordan

Αndré:
I'm not sure if I understood your question correctly. Registration notifications work as expected, but you want to change the content of the email which is sent to the admin, correct?

eminitradingschool:
Yes, that is correct. It only sends me a username and I really want an email address. I have it set so everyone can view to thumbnail level and then they need to register. No admin approval required. I can get to the email addresses but I have to go to the individual users and profiles. It's kind of complex.

Thanks Jordan

http://nqtrader.us/chartlibrary/

Joe Carver:
First you need to update your Coppermine:

--- Quote ---<!--Coppermine Photo Gallery 1.5.24 (stable)-->
--- End quote ---

Then, try this (untested):

Make a backup of register.php

Open / edit and find the line:

--- Code: ---// otherwise, email is for information only
--- End code ---

Change the line below it:

--- Code: ---cpg_mail($admin['email'], sprintf($lang_register_php_def['notify_admin_email_subject'], $CONFIG['gallery_name']), sprintf($lang_register_php_def['notify_admin_email_body'], $user_name, ));
--- End code ---

To:

--- Code: ---cpg_mail($admin['email'], sprintf($lang_register_php_def['notify_admin_email_subject'], $CONFIG['gallery_name']), sprintf($lang_register_php_def['notify_admin_email_body'], $user_name, $email,));
--- End code ---

Save and upload.

JohannM:
Hi there

How can I add the IP address of the user that registered  to the same email send to admin when a user registered ?

Navigation

[0] Message Index

[#] Next page

Go to full version