DJTim666 Posted August 13, 2007 Share Posted August 13, 2007 Ok, I just coded a mail system for my members on my site. But I want to give my users the option to block another user. The problem is I haven't got an idea of how to do this. Please offer some help. If you prefer MSN or AIM I have both. MSN: djtim2005@gmail.com AIM: Freudian666 Quote Link to comment https://forums.phpfreaks.com/topic/64748-solved-making-a-block-list/ Share on other sites More sharing options...
uwannadonkey Posted August 13, 2007 Share Posted August 13, 2007 let users block people by their ID's mysql - store the ID's when a person mails someone, do a simple check: if ( $user->ID = X-user's block list) sorry, you arent allowed to send mail just some ideas Quote Link to comment https://forums.phpfreaks.com/topic/64748-solved-making-a-block-list/#findComment-322915 Share on other sites More sharing options...
hostfreak Posted August 13, 2007 Share Posted August 13, 2007 Like uwannadonkey said, block by the ID's. Then have a MySQL table to manage blocked ID's. Then on the "send mail" page load the blocked ID's from the database into an array. Then check to see if the blocked ID is in the array (in_array()). Quote Link to comment https://forums.phpfreaks.com/topic/64748-solved-making-a-block-list/#findComment-322922 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.