SocialEngine 4: Remove E-mail From Settings

Do you have a problem with users using their real e-mail address to sign up to your SE Site and then changing it to a FAKE email address?

By users changing the e-mail address can use you to have a lot of bounce back emails and you SE messages not getting through also if the FAKE e-mail is liked to a real account they could SPAM your Domain which can cause a few problems for you.

This small mod can help remove that problem by removing the E-mail field from the settings section once they have signed up.

They would need to contact an Admin to change this.

Find and Open

find this around line 45-50

 // Init email
    $this->addElement('Text', 'email', array(
      'label' => 'Email Address',
      'required' => true,
      'allowEmpty' => false,
      'validators' => array(
        array('NotEmpty', true),
        array('EmailAddress', true),
        array('Db_NoRecordExists', true, array(Engine_Db_Table::getTablePrefix().'users', 'email', array('field' => 'user_id', 'value' => $this->getItem()->getIdentity())))
    $this->email->getValidator('NotEmpty')->setMessage('Please enter a valid email address.', 'isEmpty');
    $this->email->getValidator('Db_NoRecordExists')->setMessage('Someone has already registered this email address, please use another one.', 'recordFound');

And comment this code or removed (better to comment it out)

Save and re-upload to your Site. Don’t forget to backup your site before making any changes.

Looking for quality web hosting? Look no further than Arvixe Web Hosting!

Tags: , , , , , , , , , , , | Posted under SocialEngine | RSS 2.0

Author Spotlight

Andrew Cross

Hi, I'm Andrew. A am a 26, ICT Administrator which offers support to company's around the South Wales Area. I have created a few social sites for myself and other company's. So far 2 out of 3 have been successful using the powerful SocialEngine Script. I continue to try and help the community of SocialEngine by giving Support and Technical Help where possible.

Leave a Reply

Your email address will not be published. Required fields are marked *