HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


Validation

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#26088 (In Topic #6079)
Avatar

Well-settled

How do I make it so that members don't need to validate by email? I keep getting complaints about it and I personally don't like it either…
:'(
 

Coming Soon: Syntyx Community (http://syntyx.net)

Syntyx Community will be a software community. Current projects include PCAno (Virtual Piano) and XCryptoTool (Extremely Secure File Encryption Software).

Website will be powered by ocPortal, of course ;)
Back to the top
 
Posted
Rating:
#26093
Avatar

Honoured member

Setup, configuration, Forum options. Un-tick Require member validation

:D  Dont shoot the messenger!!  :D

How many of you believe in telekinesis? Raise my hand.

Chris Graham said

I guess a warning in your line of work tends tomean 'run for cover'. Fortunately it's not so severe when it comes to computers ;).
Back to the top
 
Posted
Rating:
#26094
Avatar

It's not a good idea to be disabling things like this, as it leaves your site open to registrations by people with invalid e-mail addresses, and bots. However, here's a patch for what you want off the top of my head:
Change lines 245-254 of /pages/modules/join.php from:

Code

// Send confirm mail
      $zone=get_module_zone('join');
      if ($zone!='') $zone.='/';
      $url=get_base_url().'/'.$zone.'index.php?page=join&type=step4&email='.rawurlencode($email_address).'&code='.$validated_email_confirm_code;
      $url_simple=get_base_url().'/'.$zone.'index.php?page=join&type=step4';
      $redirect_url=get_param('redirect_url','');
      if ($redirect_url!='') $url.='&redirect_url='.ocp_url_encode($redirect_url);
      $message=do_lang('OCF_SIGNUP_TEXT',comcode_escape(get_site_name()),comcode_escape($url),array($url_simple,$email_address,strval($validated_email_confirm_code)),$language);
      require_code('mail');
      mail_wrap(do_lang('__JOIN',get_site_name()),$message,array($email_address),$username);
To:

Code

// Send confirm mail
      /*$zone=get_module_zone('join');
      if ($zone!='') $zone.='/';
      $url=get_base_url().'/'.$zone.'index.php?page=join&type=step4&email='.rawurlencode($email_address).'&code='.$validated_email_confirm_code;
      $url_simple=get_base_url().'/'.$zone.'index.php?page=join&type=step4';
      $redirect_url=get_param('redirect_url','');
      if ($redirect_url!='') $url.='&redirect_url='.ocp_url_encode($redirect_url);
      $message=do_lang('OCF_SIGNUP_TEXT',comcode_escape(get_site_name()),comcode_escape($url),array($url_simple,$email_address,strval($validated_email_confirm_code)),$language);
      require_code('mail');
      mail_wrap(do_lang('__JOIN',get_site_name()),$message,array($email_address),$username);*/
Then change line 238 from:

Code

      /*$member_id=*/ocf_make_member($username,$password,$email_address,$groups,$dob_day,$dob_month,$dob_year,$actual_custom_fields,$timezone_offset,($additional_group!=-1)?$additional_group:NULL,$validated,time(),time(),'','','',0,1,$reveal_age,'','','',1,0,1,$language,$allow_emails,'',get_ip_address(),$validated_email_confirm_code,true,'','');
To:

Code

      /*$member_id=*/ocf_make_member($username,$password,$email_address,$groups,$dob_day,$dob_month,$dob_year,$actual_custom_fields,$timezone_offset,($additional_group!=-1)?$additional_group:NULL,$validated,time(),time(),'','','',0,1,$reveal_age,'','','',1,0,1,$language,$allow_emails,'',get_ip_address(),'',true,'','');

I have not tested this, though.


Last edit: by Philip

Back to the top
 
Posted
Rating:
#26095
Avatar

Leon said

Setup, configuration, Forum options. Un-tick Require member validation

That's for validation of new members by the site staff, and I suggest that scurless make sure it is enabled, or his site will may get flooded with bots.

Back to the top
 
Posted
Rating:
#26097
Avatar

Well-settled

The problem is nobody is recieving the validation mail, despite the settings being correct :'(

Coming Soon: Syntyx Community (http://syntyx.net)

Syntyx Community will be a software community. Current projects include PCAno (Virtual Piano) and XCryptoTool (Extremely Secure File Encryption Software).

Website will be powered by ocPortal, of course ;)
Back to the top
 
Posted
Rating:
#26098
Avatar

If you're sure the settings are correct, then you'll have to contact your hosts about enabling e-mail from PHP on your site. Make sure to try with and without the SMTP checkbox ticked in the settings first, though.

Back to the top
 
Posted
Rating:
#26101
Avatar

Well-settled

I found out the problem,  :$ I hadn't created an e-mail account after having my hosting repaired!

Coming Soon: Syntyx Community (http://syntyx.net)

Syntyx Community will be a software community. Current projects include PCAno (Virtual Piano) and XCryptoTool (Extremely Secure File Encryption Software).

Website will be powered by ocPortal, of course ;)
Back to the top
 
Posted
Rating:
#26102
Avatar

Well-settled

Actually it STILL doesnt work...

Coming Soon: Syntyx Community (http://syntyx.net)

Syntyx Community will be a software community. Current projects include PCAno (Virtual Piano) and XCryptoTool (Extremely Secure File Encryption Software).

Website will be powered by ocPortal, of course ;)
Back to the top
 
1 guests and 0 members have just viewed this: None
Control functions:

Quick reply   Contract

Your name:
Your message: