Welcome to Geeklog, Anonymous Friday, October 11 2024 @ 11:57 am EDT

Geeklog Forums

Removing email validation


julianna

Anonymous
I needed to remove the email validation because I wanted to pre-load Geeklog with member information and not risk having emails sent to the members during testing.

Be careful with this hack. It is not recommended for use during a live version of Geeklog because many features of Geeklog are dependant on having the member's email address on file.


In the user.php file in public_html/admin/, I replaced:

Text Formatted Code

    if (!empty ($username) && !empty ($email)) {

        if (!COM_isEmail ($email)) {
            return edituser ($uid, 52);
        }


 


with

Text Formatted Code

    if (!empty ($username)) {


 



To also remove it for members (if you want to login as the member), make the following adjustment to usersettings.php in public_html/

Text Formatted Code

//-------HIDE EMAIL VALIDATION---------------
//    if (!COM_isEmail ($A['email'])) {
//        return COM_refresh ($_CONF['site_url']
//                . '/usersettings.php?mode=edit&msg=52');
//    } else if (emailAddressExists ($A['email'], $_USER['uid'])) {
//        return COM_refresh ($_CONF['site_url']
//                . '/usersettings.php?mode=edit&msg=56');
//    } else {
//-------END HIDE------------------
{        if ($_US_VERBOSE) {
            COM_errorLog('cooktime = ' . $A['cooktime'],1);
        }

 


Please note the extra "{" after the //-------END HIDE------------------
 Quote

All times are EDT. The time is now 11:57 am.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content