*

Recent

Author Topic: Disable Email Activation  (Read 5025 times)

am-fs

  • Owner
  • Developer
  • Full Member
  • ******
  • Posts: 228
  • Force: +1/-0
    • Great Flash Games
Disable Email Activation
« on: October 17, 2011, 09:08:15 PM »
Is there a simple way to disable this?

edit DB dd_users, activation_key set to 0 didnt work

 ???


Adam LaCombe

  • Sr. Member
  • ****
  • Posts: 433
  • Force: +17/-0
    • My Blog
Re: Disable Email Activation
« Reply #1 on: October 17, 2011, 09:15:31 PM »
Honestly I haven't been working with the FAS script for such a long time I forgot how things are exactly set up.
So I think I have it set up from dd_settings instead of having it set right inside a config file.
sooo edit the DB, table dd_settings, column email_require
Change the value from 1 to 0

Lemme know if that fixes things

am-fs

  • Owner
  • Developer
  • Full Member
  • ******
  • Posts: 228
  • Force: +1/-0
    • Great Flash Games
Re: Disable Email Activation
« Reply #2 on: October 17, 2011, 09:26:09 PM »
Thanks Adam for the quick reply, im actually using v2.1
I dont see email_require on tables dd_settings or dd_users

Adam LaCombe

  • Sr. Member
  • ****
  • Posts: 433
  • Force: +17/-0
    • My Blog
Re: Disable Email Activation
« Reply #3 on: October 17, 2011, 09:59:55 PM »
Hmmm if its not there then check /includes/core.php
look for: $email_require

am-fs

  • Owner
  • Developer
  • Full Member
  • ******
  • Posts: 228
  • Force: +1/-0
    • Great Flash Games
Re: Disable Email Activation
« Reply #4 on: October 18, 2011, 07:27:05 AM »
Not seeing it there either


Frank

  • Sr. Member
  • ****
  • Posts: 257
  • Force: +4/-0
Re: Disable Email Activation
« Reply #5 on: October 18, 2011, 08:38:24 AM »
This should keep you busy and it's not just as simple as changing one thing only.

 ;D

 
Code: [Select]
D:\xampp\htdocs\arcade\templates\red-blue\login_emailcheck.php (1 hits)
Line 23: if($ir['activation_key'] == "0"){
  D:\xampp\htdocs\arcade\templates\red-blue\memberslist.php (1 hits)
Line 14: $r = $db->query(sprintf("SELECT * FROM dd_users WHERE activation_key='0' && userid!='1' ORDER BY username ASC LIMIT $limits,$max"));
  D:\xampp\htdocs\arcade\templates\red-blue\myaccount.php (3 hits)
Line 436: $activation_number = rand( );
Line 438: $message = ''.$l_dear.' '.$user_name.',<br />'.$l_email_change_a.' <a href="'.$domain.'/'.$directorypath.'">'.$sitename.'</a>. <a href="'.$domain.'/'.$directorypath.'/index.php?action=activateemail&amp;newemail='.$email.'&oldemail='.$current_email.'&amp;id='.$activation_number.'">'.$l_click_here.'</a> '.$l_email_change_b.'<br />'.$l_thanks.'<br />'.$sitename.' '.$l_adminisration.'';
Line 445: mysql_query("UPDATE dd_users SET `new_email`='$email', `new_email_key`='$activation_number' WHERE userid='{$usrdata['userid']}'");
  D:\xampp\htdocs\arcade\templates\red-blue\signup_emailcheck.php (4 hits)
Line 23: $activation_number = rand( );
Line 71: activation_key=\'%s\',
Line 74: pass_answer =\'%s\'', $user_name, $pass, $activation_number, $email, $question, $answer));
Line 83: $message = ''.$l_from.' '.$sitename.'<br /><br />'.$l_dear.' '.$user_name.',<br /><br />'.$l_thank_register_a.' <a href="'.$domain.'">'.$sitename.'</a>.<br /><br /> <a href="'.$domain.'/'.$directorypath.'/index.php?action=activate&amp;id='.$activation_number.'">'.$l_click_here.'</a> '.$l_thank_register_b.'<br /><br />'.$l_thank_register_c.'<br /><br />'.$sitename.' '.$l_adminisration.'';
  D:\xampp\htdocs\arcade\templates\red-blue\activate_account.php (4 hits)
Line 10: $res=mysql_query("SELECT * from `dd_users` WHERE `activation_key`='$id'") or die(mysql_error());
Line 12: $key=clean($row[activation_key]);
Line 29: $sql3 ="UPDATE `dd_users` SET `activation_key`='0' WHERE `activation_key`='$id'";
Line 29: $sql3 ="UPDATE `dd_users` SET `activation_key`='0' WHERE `activation_key`='$id'";

am-fs

  • Owner
  • Developer
  • Full Member
  • ******
  • Posts: 228
  • Force: +1/-0
    • Great Flash Games
Re: Disable Email Activation
« Reply #6 on: October 19, 2011, 09:37:29 PM »
Thanks ............mort 8)

Here is how if anyone else would like to Disable Email Activation

* First make a backup of database in phpmyadmin and make a back up copy of file signup_emailcheck.php *

Edit phpmyadmin table => dd_users, activation_key change to 0 (Default)

Edit: signup_emailcheck.php

Find:
Code: [Select]
$activation_number = rand( );
Replace Wih:
Code: [Select]
$activation_number = (0);
Find:
Code: [Select]
echo '<div class=\'msg\'>Thank you for signing up!<br> <font color=red>Please check your email for an activation key!</font></div>';
Replace With:
Code: [Select]
echo '<div class=\'msg\'>Thank you for signing up!<br> <font color=red>Please Sign In.</font></div>';
Change the message to your liking.

This will only bypass signup activation, if email is changed then they will have to activate there new address.

Im doing this only because im not sure all emails are getting sent out.

Adam LaCombe

  • Sr. Member
  • ****
  • Posts: 433
  • Force: +17/-0
    • My Blog
Re: Disable Email Activation
« Reply #7 on: October 19, 2011, 09:57:31 PM »
I just double checked again.. /includes/core.php
find: $email_require = $set['email_require'];
that means in dd_settings there is a column named: email_require
set it to: 0

If you really can't find it.. PM me your ftp or ssh login details and I will see if I can find it.
If its really not there then I guess there must be a mixup on the download section here on FAS.

Frank

  • Sr. Member
  • ****
  • Posts: 257
  • Force: +4/-0
Re: Disable Email Activation
« Reply #8 on: October 19, 2011, 11:13:39 PM »
I can't find $email_require in any files, and I'm using FAS 2 beta?

And I also thought he did a good job in doing what he did - That's how I would have done it to simply change the requirements of signing up. ;)

Adam LaCombe

  • Sr. Member
  • ****
  • Posts: 433
  • Force: +17/-0
    • My Blog
Re: Disable Email Activation
« Reply #9 on: October 20, 2011, 01:23:50 AM »
Well I will upload the newer one then.

Thats an alright job I guess, but it will still send out emails...
I guess I did more to the beta version and didn't upload the changes but... there is a var that depending on 1 or 0 will require you to have a active email or not.
When signing up if its 1, then it will send a email activation. If it is 0 then it will not send a email activation.
If its 1 then when logging in it either includes the email required login page or if its 0 it includes the regular login page that does not need to have a active email.

Honestly... don't use the beta version lol not yet at least.
I just have a few more things to fix and then I will upload the fixed beta rc3? I think its 3.. its been a while lol.

Frank

  • Sr. Member
  • ****
  • Posts: 257
  • Force: +4/-0
Re: Disable Email Activation
« Reply #10 on: October 20, 2011, 08:17:32 AM »
Well I will upload the newer one then.

Tha'd be nice - Whoopee! ;D