Support Forums

filtering emails during registration possible?

This is a discussion on filtering emails during registration possible? within the Technical Support forums, part of the Technical Support Forums category; Hi, I am trying to limit the people who will use my classified based on email address. Here is the ...


Go Back   68 Classifieds Forums > Technical Support Forums > Technical Support

This topic is resolved.

If you have a similar issue that this thread does not address, open a new related support topic.

 
Thread Tools Display Modes
Old 08-25-2008, 05:02 PM   #1
Junior Member
 
Join Date: Aug 2008
Posts: 20
Rep Power: 6
Shadman is on a distinguished road
Default filtering emails during registration possible?

Hi, I am trying to limit the people who will use my classified based on email address.

Here is the logic behind the code. I want to know if this is feasible and how difficult it will be to implement.

I like to input an evaluation code on the registration page of my template.

It will only evaluate emails. It will compare the email that the user input with an external database (which I connect to via API) to see if there is an exact match. If it is then then they can complete their registration and have an account. If not they will get an error page.

Here is the email input portion of the code as it stands by default.

Code:
<tr>
<td class="formleft"><span class='required'>{$smarty.const.LANG_STAR}</span>{$smarty.const.LANG_USER_EMAIL_CONFIRM}{$smarty.const.LANG_COLON}<br /><span class="small">{$smarty.const.LANG_USER_MUST_MATCH}</span></td>
<td class="formright"><input name="emailconfirm" type="text" id="emailconfirm" value="{$emailconfirm}" size="{$smarty.const.FIELD_SIZE}" /></td>
</tr>
I need help with the php and building this evaluator. How would I do this? is there a sample code I can look at and mimic? I am a php newbie.

Thanks
Shadman is offline  
Old 08-25-2008, 05:46 PM   #2
68 Classifieds Staff
 
Eric Barnes's Avatar
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 5,303
Rep Power: 125
Eric Barnes is a jewel in the rough
Default

I would have to recommend contacting them and seeing if they have any examples. The login.php file handles the original posted email then you will need to take that and integrate with their API. Sorry can't help to much because every system is different.
__________________
Eric Barnes
68 Classifieds Developer
Customer Area | Issue Tracker | Documentation | 68C Mods | 68 @ Twitter | My Modules
Eric Barnes is offline  
Old 08-25-2008, 06:52 PM   #3
Junior Member
 
Join Date: Aug 2008
Posts: 20
Rep Power: 6
Shadman is on a distinguished road
Default

Thanks for replying.

I have an question, can this be done with a PHP Comparison Operators? without messing with the login.php?
Shadman is offline  
Old 08-25-2008, 07:31 PM   #4
Coder
 
Join Date: Mar 2006
Posts: 4,915
Rep Power: 120
Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light
Default

Quote:
Originally Posted by Shadman
Thanks for replying.

I have an question, can this be done with a PHP Comparison Operators? without messing with the login.php?
Your question doesnt make sense and without knowing more about the API your going to use no one can offer any substantial help.

Whats likely to happen is you have to pass along the e-mail address of someone who is registering to a emote script and it in turn will say yes or no and you in turn continue based on that. So yes, in a sense there will be comparison operators but we cant really give you an example because we have no idea what you are using.

php.net has all sorts of examples of comparison operators. But if you wantspecific answers you have to provide specific details.
__________________
Larry

Knowledge learned is more valuable than knowledge given.
Lhotch is offline  
Closed Thread

Tags
emails limit members api

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Registration in 2 steps frommarcq Technical Support 2 04-06-2008 09:58 AM
Looking for some discussion about the emails sent from 68C civ v3.1 Questions & Support 7 09-14-2007 11:07 PM
Account Activation \ Registration Emails free2take v3.1 Suggestions and Feedback 4 08-29-2007 05:38 AM
Blank Registration Email and Registration Error djdogs v3.1 Questions & Support 5 02-27-2007 06:40 AM
New Registration newone v3.1 Questions & Support 7 07-21-2006 04:58 AM


All times are GMT -4. The time now is 05:55 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0