Topics

User Functions

Events

There are no upcoming events

What's New

Stories

1 new Stories in the last 2 weeks

Comments last 2 weeks

No new comments

Trackbacks last 2 weeks

No new trackback comments

Links last 2 weeks

No recent new links

NEW FILES last 14 days

No new files

Welcome to Geeklog Saturday, May 25 2013 @ 12:57 AM EDT


 Forum Index > Extensions > Cool Hacks New Topic Post Reply
 Removing email validation
   
Anonymous: julianna
 06/27/05 05:18PM (Read 1400 times)  



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:

PHP Formatted Code

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

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


 


with

PHP 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/

PHP 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
Content generated in: 0.79 seconds
New Topic Post Reply

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