Hi, I'd like to create a user system registration on my website. People will create their accounts, and it will send the information to a database. The script will read the data from the database, and create sub-accounts automatically. My hosting provider only offers shared servers. So when I try to create the sub-account "mike" for example, it says that it is already used, but it isn't used under my account. I want this system registration to automatically tell the visitor whether the user is available or not, keeping this in mind. Is this possible? Or do I need to get my own hosted server? I've been using PHP and Javascript already, not a pro at it yet, but might just need a few fix ups to certain scripts here or there. Can somebody help me in telling me what I need to add to my scripts to be able and get this to function? Or if you offer your own original scripts, or any others that you seen on the web, please let me know. Thanks a lot. luceduce
when you try to create a sub-account where? in what admin interface? if i guess correctly, you're trying to create a new name in the hoster's account list. hosters account list is not your database.. do you know how to work with a database from php? do you know how to setup a sql database table? If you're gonna add users, you might aswell add groups too. So you'll need a users table, groups table, and a userGroupList table.. Let me know if you want me to suggest a simple structure for the 3 tables. And lastly, do you know how to make HTML forms and submit them to php?
Okay, well I'm trying to create the following sub-account: http://www.example.com/~mike It says that the username "mike" is already in use (since I am in a shared hosting with my hosting provider..if you need the name of the host provider I could give it to you) I've been programming with PHP, MySQL databases, XHTML, CSS and Javascript for not too long now... I think I got the idea of how to get an HTML form to submit to a PHP page, but then again I'm not using my own scripts, I'm using other people's scripts I've found online... so far they work good too. PHP and databases, also I've used those lately in a script I've been testing out. Works fine for now too. But again, it's not my original work, so I'm not an "expert" in creating these scripts just yet. About the groups, what exactly do you mean though? How would a group be used in here? And for what reasons? I'm not sure I understand the whole "group" concept in this sub-account scenario. I could show you the links where I've found my login scripts/user account registration systems too....I've found quite a few of them actually....but obviously, just like the usual, none of them have exactly what I want. They each have a bit of all of it, but not one of them has it all! If you could take a look at the scripts, maybe you'd understand more? Let me know if you prefer to see the links, or show me some script of your own perhaps. Thanks, luceduce
use .htaccess to redirect URLS, so a URL like www.example.com/mike would redirect to www.example.com/users.php?user=mike then, create users.php which would accept a "user" variable in the query string (like in the example above), and pull all information for the specified user out of your database. That way your users are defined in your database and you don't have to mess around with user accounts with your host. but that example makes some assumptions about your setup and what you're trying to accomplish. Please post link to your pages or more info about your project so we can get a better idea of what you're trying to do!
Yes this might be a way to go about it, I guess. Will this create the user their very own website though (their own "ftp") or just their own profile....this is why I was thinking of using the host's user accounts. In some way I'd like to do some mix up of the following two sites: totsites.com + facebook.com the user would have their very own website, but they would be able to register their own "available" account username and once the registration is done with, they receive all the account info through email. Click a link to active the account, and then they'll have access to "log in" and edit/manage their website right away. So in a way I guess you way of www.example.com/users.php?user=mike could work, i guess? I'm not 100% which is the best of things that I would need, maybe some ideas? Do you think the whole "facebook" idea of having their own profile/website would be a good + SIMPLE idea?
With 'group' i meant a group of users. If you're going to offer different levels of service to different groups of users, you need a groups table to keep track of them. You can then assign rights to both users and groups (on objects(=functionality/pages)) The idea to use mod_rewrite from .htaccess is a good one.. I've just started with that myself. Not simple probably
to create a myspace clone? or just a groups system with access rights per object? I can help you with the latter, but with not creating the whole darn site Since i'm building my own CMS, based on a different design philosophy than most CMSes currently out there, i simply don't know if a standard CMS can fullfill your needs.. But I bet there's something out there that can help.. If you're gonna create a myspace clone from scratch in PHP, then you'd need tons of tables to keep track of all the info, you'd need a good template engine (smarty perhaps) to facilitate people customizing the look of their page, you'd need a dedicated host as your number of users grow (so you'd need a *minimum* 80$/month income from it just to host it). How do you want to do this? as simple as possible? If so, then you might want to repost this question in the 'content management' section, as "what cms is best for a myspace clone?"
No It will not be a myspace clone. Will be creating sites for users...depending on what they are looking for. They choose whether they want a blog template site, forum site, personalized for a baby site, and so on. Before the visitor creates their account, they must fill in a form telling me more about which type of site they want created. Personal or Business related? (with hidden fields, if they hit the personal or business answer) How many pages will your site require? Which color scheme are you looking for? Tell me more about your website needs: (with a textarea) and more questions of the sort Following this list of questions, they then get sent to the last step, where they create their user account (username, password, confirm password). and underneath this block of questions, is a list of questions concerning their personal info (first name, last name, email, confirm email, and so on...) i have the html form created, but i'm just not sure how to make it send to a "php" page, and submit the info in a database. the user account that will be created should go in one table concerning "users" and the website info would go in a different table "website info" for example.... I hope this explains enough of what I want done for this part. Let me know if you can help me with this please. Thank you.
Here is an example of a PHP Login Sytem that I've been looking at: http://evolt.org/node/60384 But like I said, I want the user to fill in a form/survey depending on which type of site they want created BEFORE they go ahead and register their username/account. Anybody know how to do this? or if it can be done in the first place?
Yep, it can be done, just not yet by you.. If you're looking for a technical director for your webhosting/design company, i'm not your man You'd wanna work with standard CMSes like phpbb/vbulletin, wordpress &/ drupal, because that would cut your costs significantly. If you'd have to develop all the software you need in a reasonable amount of time you're talking tens of thousands in development cost, possibly more than a ton, by a professional _team_ of coders. So i dont think that's an option.. So get a techie who's good with opensource code and system administration, get a designer to do your photoshopping, and you got yourself a webdesign team