Advanced search  

News:

cpg1.5.46 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter recently discovered vulnerabilities. It is important that all users who run version cpg1.5.44 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Email information "Registration notification" to admin  (Read 4854 times)

0 Members and 1 Guest are viewing this topic.

eminitradingschool

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Email information "Registration notification" to admin
« on: August 07, 2014, 01:43:08 am »

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
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15429
Re: Email information "Registration notification" to admin
« Reply #1 on: August 07, 2014, 10:02:59 am »

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?
Logged

eminitradingschool

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: Email information "Registration notification" to admin
« Reply #2 on: August 08, 2014, 09:41:34 pm »

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/

Logged

Joe Carver

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1498
  • aka 'i-imagine'
    • Home Page
Re: Email information "Registration notification" to admin
« Reply #3 on: August 09, 2014, 02:55:50 am »

First you need to update your Coppermine:
Quote
<!--Coppermine Photo Gallery 1.5.24 (stable)-->

Then, try this (untested):

Make a backup of register.php

Open / edit and find the line:
Code: [Select]
// otherwise, email is for information only
Change the line below it:
Code: [Select]
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, ));
To:
Code: [Select]
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,));
Save and upload.

JohannM

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 223
Re: Email information "Registration notification" to admin
« Reply #4 on: October 13, 2017, 12:50:09 am »

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 ?
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15429
Re: Email information "Registration notification" to admin
« Reply #5 on: November 03, 2017, 04:42:12 pm »

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

See here: http://forum.coppermine-gallery.net/index.php/topic,79198.0.html
Logged
Pages: [1]   Go Up
 

Page created in 0.016 seconds with 21 queries.