Support Forums

Only Certain Users Can Register

This is a discussion on Only Certain Users Can Register within the Pre Sales Questions forums, part of the Pre-Sales & Testimonials category; Hi, I want to set up a new classifieds site for a certain organisation. Everyone that will be using the ...


Go Back   68 Classifieds Forums > Pre-Sales & Testimonials > Pre Sales Questions

Reply
 
Thread Tools Display Modes
Old 09-18-2009, 09:45 PM   #1
Genius At Work
 
bowers01's Avatar
 
Join Date: May 2008
Location: Geelong, Victoria, Australia
Posts: 1,000
Rep Power: 29
bowers01 is on a distinguished road
Default Only Certain Users Can Register

Hi,
I want to set up a new classifieds site for a certain organisation. Everyone that will be using the site will have the same email address domain([email protected]) i only want people with that domain email address to be able to register. Is this going to be possible?
If not i can manually check each account but i would like auto everything because i can trust what they will post. This will be done with v4.1.6 and the TemplateCodes pack.
Cheers,
Nick
__________________
Nick Bowers
68c v4.09 Developer Custom Template
bowers01 is offline   Reply With Quote
Old 09-18-2009, 09:57 PM   #2
68 Classifieds Staff
 
Eric Barnes's Avatar
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 5,434
Rep Power: 128
Eric Barnes is just really nice Eric Barnes is just really nice
Default

Really anything is possible. However you would need to edit the validation portion of the userjoin file. I would recommend looking at this php function:
PHP: strstr - Manual
__________________
Eric Barnes
68 Classifieds Developer
Customer Area | Issue Tracker | Documentation | 68C Mods | 68 @ Twitter | My Modules
Eric Barnes is offline   Reply With Quote
Old 09-18-2009, 10:22 PM   #3
68 Evangelist & Developer
 
 
Join Date: Jan 2007
Location: Pennsylvania, USA
Posts: 1,875
Rep Power: 55
Mike-N-Tosh is just really nice Mike-N-Tosh is just really nice
Default

Actually, I already made this module. I call it domain filter. Once installed, you as the admin can enter as many allowed domain names as you like. Once entered, when a user fills out the the email address field during registration it is checked against the allowed domains. If it does not match an allowed domain, then it throws them an error, if it is allowed it just continues the registration process.

I made it for a client. I never released it, because I hadn't ever heard of anyone besides this one client wanting a feature like that. This was made for v4.1.x.
__________________
Mike-N-Tosh
IndianaPC.org - A community website (v3.1.10 Developer - heavily modified & used as the CMS)
Sandbox [localhost(v3.1.10, v4.0.9, 4.1.10)] for development and customization
Visit My blog: reviews, tips, tricks, tutorials and my store with Templates, Mods & Docs
Web Hosting | Web Design & Development | 68 Classifieds Customizations
I am not a 68C employee, just a user and try to help out
Mike-N-Tosh is offline   Reply With Quote
Old 09-18-2009, 10:28 PM   #4
Genius At Work
 
bowers01's Avatar
 
Join Date: May 2008
Location: Geelong, Victoria, Australia
Posts: 1,000
Rep Power: 29
bowers01 is on a distinguished road
Default

Quote:
Originally Posted by Mike-N-Tosh
Actually, I already made this module. I call it domain filter. Once installed, you as the admin can enter as many allowed domain names as you like. Once entered, when a user fills out the the email address field during registration it is checked against the allowed domains. If it does not match an allowed domain, then it throws them an error, if it is allowed it just continues the registration process.

I made it for a client. I never released it, because I hadn't ever heard of anyone besides this one client wanting a feature like that. This was made for v4.1.x.
Excellent, i will contact you when im reay, i doubt this will be happening for about a month, im just putting ideas together and currently buying the domain names.
Cheers
__________________
Nick Bowers
68c v4.09 Developer Custom Template
bowers01 is offline   Reply With Quote

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17