Thread: Miscellaneous Hacks - Check E-mail Address Before Registration
View Single Post
  #77  
Old 08-05-2011, 03:27 PM
laynespeers laynespeers is offline
 
Join Date: Mar 2011
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by FireFish View Post
Just FYI; since I installed this, I'm averaging about 2-3 'Contact Us' messages a week from guests who are wanting to register with email accounts at like sbcglobal.net or other major domains. They complain that they can't due to an error regarding 'contacting their email server'.

Although I totally love the idea & am sure it works most of the time, I can't loose those members & therefore must disable this mod. v
Quote:
Originally Posted by Twin_Turbo View Post
I just got word from a member with a cox email address that he gets this message:

"Please enter another e-mail address. We were unable to contact your
e-mail server and verify that your e-mail address exists. If you
continue to have registration problems, please contact us for
assistance."

Could it be because he is using opera or mozilla?
The post right above you was explaining how to get around get around the default restrictions with the email servers. Well, they showed you how to get around the yahoo email server. Here, I will explain how you can make acceptions for different email servers.

Whenever you are contacted by someone saying that they cannot access the website due to email restrictions, simple add that email server to the .xml script. Here, I will show you what I am trying to say.

Okay, so first things first. You are going to want to open your os_validate_email_1.0.xml file. Once the file is open to editable mode, search for the following:
Code:
if (!validate_email($vbulletin->GPC['email'])) {
   $userdata->error('os_email_notvalid');
}
Now that you have found the main method that verifies the email servers that the script is aloud to interact with, you are going to need to modify it just a little bit. The next thing that you are going to need to do is replace that code with the following:
Code:
if (!preg_match("/yahoo/i", (" $vbulletin->GPC['email'])) {
 if (!validate_email($vbulletin->GPC['email'])) {
   $userdata->error('os_email_notvalid');
 }
}
Okay, so before we replaced that code, this script could not work with yahoo email servers, if you would like more information on the reasoning for that, see post #.

Now, I am going to explain how you are to go about adding more email servers to the list. This is very simple, and you won't take long to figure it out. As and example, I am going to add sbcglobal to the list. Okay, inorder to add another email server to the list, you are going to want to paste the following code right after "/yahoo/i",:
Code:
"/sbcglobal/i",
Okay, once you have added that, your code should like something like:
Code:
if (!preg_match("/yahoo/i", "/sbcglobal/i", (" $vbulletin->GPC['email'])) {
 if (!validate_email($vbulletin->GPC['email'])) {
   $userdata->error('os_email_notvalid');
 }
}
So basically, when someone contacts you saying that they are unable to connect to your website with their email server, you will simply go into your script and add the email server. Also, do not add the domain extension when adding an email server, only add the main name of the email domain.

I am sorry if this doesn't work properly, I'm really not that great of a web programmer as I personally prefer to work with Java, but I thought I would speak up and help those in need .

Best Regards,
Layne
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01070 seconds
  • Memory Usage 1,785KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete