Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> CNB Your Account
Author Message
izone
Involved
Involved



Joined: Sep 07, 2004
Posts: 354
Location: Sweden

PostPosted: Tue Sep 13, 2005 4:11 am Reply with quote

Hi

In cnbya there is possibility to make a list of non allowing e-mail domains.

How should I make it the opposit, to have a list for only e-mail from those domain could register?

I need to only allow vistiors with for ex. xxx.com e-mail (name@xxx.com) could register.

Please help.
 
View user's profile Send private message
hitwalker
Sells PC To Pay For Divorce



Joined:
Posts: 5661

PostPosted: Tue Sep 13, 2005 5:41 am Reply with quote

That is almost impossible ...
I think you would have a better chance when you were using a standard your-account.
The cnbya is fully coded with included mail options..
Gonna be a tough one.. Sad
 
View user's profile Send private message
izone







PostPosted: Wed Sep 14, 2005 2:29 am Reply with quote

hitwalker, thanks, but if I go back to standard module is there a way to do it? How?
 
hitwalker







PostPosted: Wed Sep 14, 2005 3:13 am Reply with quote

well i said it would be easier...
but it still has to be re-coded.
but to be honest..,are you realy wanna do this?
its not that easy to rewrite your_account so it only accepts one domain..
 
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Wed Sep 14, 2005 3:37 am Reply with quote

See if this is what you're trying to do: [ Only registered users can see links on this board! Get registered or login! ]
 
View user's profile Send private message
izone







PostPosted: Wed Sep 14, 2005 7:16 am Reply with quote

Raven, thanks Raven, but as I looked at those codes they do stop reg. from what domain I add to the list in the code.

Here is the story>

There is a PRIVATE site for an university which is only for students and teachers of that university. All the students and teachers has got an e-mail account which is for ex. [ Only registered users can see links on this board! Get registered or login! ]. What I want is only those who have email like this could becaome member of the site.

With your codes I have to write down every domain name in the world (almost) to exclude them from being members. Is there any way to make it works as I wanted?

I don't know is there somehow to add a

if emaildomain = @university.com
then allow

if not = dissallow

Thanks for helping me.
 
Raven







PostPosted: Wed Sep 14, 2005 8:18 am Reply with quote

Code:
$emailParts = explode('@',$user_email);

if ($emailParts[1] != 'university.com') $stop = "<center>"."Domain not allowed"."</center><br>";
 
izone







PostPosted: Wed Sep 14, 2005 4:52 pm Reply with quote

thanks Raven, it works with a glance. worship

Is there anything that u don't know about php or nuke?!!! Laughing
 
hitwalker







PostPosted: Wed Sep 14, 2005 5:26 pm Reply with quote

yes i bet he doesnt know how many characters are used to write the 7.6 ...lol
(is he counting now ? )
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> CNB Your Account

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©