cunga_lunga Posted June 6, 2007 Share Posted June 6, 2007 I need some contribution where I can restrict NEW customer (or affiliate) form page, file create_account.php (or affiliate_signup.php) with password or some code or anything. I need this for affiliates, but if something like this has for customers its good enough. Is something like this exists? Thank you. Milos Quote Link to comment Share on other sites More sharing options...
Guest Posted June 6, 2007 Share Posted June 6, 2007 (edited) Well if you can do coding all you need to do is if the customer is logged in, use the customid to do a query on the customer_info table and pull the how many logins - use an if statement with the query to see if the customer logged in maybe less then 5 times to restrict, or pull the date created and use a range from the current date to see if the customer has recently created the account in that range. But just thinking of this, if they are not logged in (IE seeing those create account pages) you cant run a query on either since there is no information to compare to. Maybe theres another way, but thats how I see it. If they are logged in, well you can then block them from other pages. --------> But if they are not logged in, you really cant see if they exist because they are not logged in. BUT You could compare the e-mail from those forms on those pages with the databases (customer of affiliate) to see if it already exists. If it does then just dont let the process complete and throw an error message. That would be your best way. Edited June 6, 2007 by central50 Quote Link to comment Share on other sites More sharing options...
Guest Posted June 6, 2007 Share Posted June 6, 2007 You know I was not thinking. If the person is a customer already and then go to sing up for a new account, the system should already throw an error saying that e-mail exists. Same thing for affiliate I believe. Now if you want to block a affiliate from signing up as a customer, you can cross link like I stated above, and vis versa. Quote Link to comment Share on other sites More sharing options...
cunga_lunga Posted June 6, 2007 Author Share Posted June 6, 2007 Well interesting thinking, I must say, but this what I need is little more simpler I think. Maybe I was not clear and understanding... here is s simpler problem description: I want to only people that I know can register as NEW affiliate? Thats why I was thinking to restrict the page for NEW USER with some code or password? Quote Link to comment Share on other sites More sharing options...
Guest Posted June 6, 2007 Share Posted June 6, 2007 I'm not really understanding what you are trying to say. You want to only allow people to register as a new affiliate? Or do you want to only allow people that you wish to register as a affiliate? If you password the register page, you wont be getting a new customers.. Quote Link to comment Share on other sites More sharing options...
cunga_lunga Posted June 6, 2007 Author Share Posted June 6, 2007 If you password the register page, you wont be getting a new customers.. Yes this, last one you said... its just I am not going to password register page for customers, but for affiliates. I want that only invited people can register as affiliate! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.