Advanced search  

News:

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

Pages: [1]   Go Down

Author Topic: Registration photo  (Read 4162 times)

0 Members and 1 Guest are viewing this topic.

loverboy

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 23
Registration photo
« on: August 23, 2004, 10:42:51 pm »

We tweaked the register.php so that an admin has to approve all apps.  Any way to implement an 'upload photo' option into the register.php, so that the user can send a photo from their computer via email to the admin?
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Registration photo
« Reply #1 on: August 23, 2004, 10:53:09 pm »

upload photo won't go into register.php (at least not in the coppermine core code), as it would defeat the purpose of the whole user management of coppermine (I just can't see the point of this). You're of course welcome to post a mod that does what you're requesting.

GauGau
Logged

loverboy

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 23
Re: Registration photo
« Reply #2 on: August 24, 2004, 02:40:13 am »

ahahahahah! wish i know how to mod!!!!

i was looking for not a way to upload a photo to the gallery.

but just some way to attach a photo in email to the mod.

we basically only want to authorize people to our gallery who can submit a photo to start!
Logged

syedali

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 36
Re: Registration photo
« Reply #3 on: August 24, 2004, 07:43:42 pm »

Could you pleeeease post the tweak where the admin approves the registration.
thanks a bunch
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Registration photo
« Reply #4 on: August 25, 2004, 09:48:29 am »

edit register.php, find
Code: [Select]
if (!cpg_mail($email, sprintf($lang_register_php['confirm_email_subject'], $CONFIG['gallery_name']), strtr($lang_register_confirm_email, $template_vars))) {
            cpg_die(CRITICAL_ERROR, $lang_register_php['failed_sending_email'], __FILE__, __LINE__);
and replace with
Code: [Select]
if (!cpg_mail($CONFIG['gallery_admin_email'], sprintf($lang_register_php['confirm_email_subject'], $CONFIG['gallery_name']), strtr($lang_register_confirm_email, $template_vars))) {
            cpg_die(CRITICAL_ERROR, $lang_register_php['failed_sending_email'], __FILE__, __LINE__);
(not tested though). This will send the registration email to the admin instead of the user registering.

GauGau

P.S. Please check if your keyboard is still working. Your "E" key appears to be stuck.
Logged
Pages: [1]   Go Up
 

Page created in 0.027 seconds with 15 queries.