Registration photo Registration photo
 

News:

CPG Release 1.6.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

Main Menu

Registration photo

Started by loverboy, August 23, 2004, 10:42:51 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

loverboy

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?

Joachim Müller

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

loverboy

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!

syedali

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

Joachim Müller

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.