coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Ecards & Email => Topic started by: loverboy on August 23, 2004, 10:42:51 PM

Title: Registration photo
Post by: loverboy 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?
Title: Re: Registration photo
Post by: Joachim Müller 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
Title: Re: Registration photo
Post by: loverboy 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!
Title: Re: Registration photo
Post by: syedali on August 24, 2004, 07:43:42 PM
Could you pleeeease post the tweak where the admin approves the registration.
thanks a bunch
Title: Re: Registration photo
Post by: Joachim Müller on August 25, 2004, 09:48:29 AM
edit register.php, findif (!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 withif (!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.