Ondes Posted April 5, 2008 Share Posted April 5, 2008 Hello everyone. I've been trying to get help with this issue here for quite some time now, and here's to hoping that someone here can lend me a hand! I downloaded the PHP member system from a site, www.maaking.com. It is good for what I want, save for one thing. Currently, a user registers, gets the confirmational email, and then can go ahead and see the protected area. My site has a different need though. I need to alter the system so that after a user registers they do NOT get access after the confirmation email... instead, I am able to go to the admin area and verify members I want, and be able to deny members I don't want and delete their registration. As I mentioned previously, I've been trying to get help with this for quite some time. I can't really write PHP and any help from anyone would be greatly appreciated! I will be quite greatful if someone can help me get this time, as I've tried many many forums and tutorials and friends, and I've always came up dry. If no one can give me a hand with what I've got, perhaps someone could recommend a similar script that allows me to do what I need! Thanks. Quote Link to comment https://forums.phpfreaks.com/topic/99647-php-member-system/ Share on other sites More sharing options...
drisate Posted April 5, 2008 Share Posted April 5, 2008 The problem is ... your not asking for help ... you asking for somebody to do it for you. And unless you would like to buy the service of a programmer i don't think anybody will really help on this. phpfreaks.com is abbout helping pepol ready to actuly try to understand and learn. Ask a question on a buged script and we can help you ... as a question on how to do something ... we can also help you ... but ask us to do it for you ... now you lose us. What i would do in your position is add a new feild called "ok" in your user table and depending on the way the login script is made check if ok is = to 1. If it is gon on with the loging if not show a message. Now in your admin section you probably have a list of members. When you clique on them theres probably a profile. You should add in there a form that appears if the session is an admin session. something simple like a dropdown menu with accept/refuse. then you send the form in to the same page using a new $_GET var. in your source you if the $_GET var is active you somply update the members profile with the value of the posted field. Something like that <?php if ($_GET[mod]=="1"){ $update=mysql_query("UPDATE users SET ok='$_POST[check]' where userid='$_GET[userid]") or die (mysql_error()); if ($_POST[check]=="1"){ echo "Member accepted"; }else{ echo "Member refused"; } }else{ ?> <form method="POST" action="<?php echp $PHP_SELF?mod=1&userid=$_GET[id]; ?>"><p> <select size="1" name="check"> <option value="1">ok</option> <option value="0">Refuse</option> </select> <input type="submit" value="Submit" name="send"></p> </form> <?php } ?> Quote Link to comment https://forums.phpfreaks.com/topic/99647-php-member-system/#findComment-509759 Share on other sites More sharing options...
Ondes Posted April 5, 2008 Author Share Posted April 5, 2008 Sorry if I sounded like I just want it done for me. I would like to learn. I would like to be able to be walked through, but I may need quite a few details. Perhaps instead of even using my script I have, you or someone else has a recommendation of a good solid script that does what I need from it? I'm still quite lost here, sorry. Thanks! Quote Link to comment https://forums.phpfreaks.com/topic/99647-php-member-system/#findComment-509761 Share on other sites More sharing options...
Ondes Posted April 5, 2008 Author Share Posted April 5, 2008 Sorry couldn't modify above post. I attempted this fix, and it didn't work. Script seems finicky and upon adding the php to the users area in the admins section, the page refreshed blank. Perhaps a suggestion for a different script would suffice. Quote Link to comment https://forums.phpfreaks.com/topic/99647-php-member-system/#findComment-509783 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.