Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: is this possible?  (Read 10184 times)

0 Members and 1 Guest are viewing this topic.

bit bit spears

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 240
    • TangibleBrit.com
is this possible?
« on: July 21, 2004, 07:17:28 am »

hey, can anyone think of a way that we can manually activate users? any workarounds/hacks?

i want to keep a eye on who i let in, so i would like them to be able to register, but then i would have to send them an email my self saying they are now active-is this possible?
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: is this possible?
« Reply #1 on: July 21, 2004, 08:32:20 am »

This has been asked before. Enable "User registration requires email verification" in coppermine config, then 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__);
This way, the registration mail will be sent to you (as admin) instead of the user, and you will have to activate him (or not, your coice).

GauGau
Logged

bit bit spears

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 240
    • TangibleBrit.com
Re: is this possible?
« Reply #2 on: July 21, 2004, 07:40:53 pm »

VERY nice! Thanks gaugau-i am sooo excited now:)
Logged

Rafael_XCX

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: is this possible?
« Reply #3 on: August 11, 2006, 10:03:52 am »

Thanks a lot! I needed that too!  ;D
Logged
Pages: [1]   Go Up
 

Page created in 0.021 seconds with 19 queries.