redarrow Posted June 7, 2006 Share Posted June 7, 2006 I am currently at the end of a long project and want to add an instant message system design by my self but need also advise please.The database as the following ( any tips more then welcomed).field name 1:member_messagescolum names:idsent_idtimedatehasreadmessagefield name2:messages_savedcolum names:sent_idtimedatemessagefield name3:Band _messengersent_idtimedatefield name4:report_usersent_iddatetimemessage Quote Link to comment https://forums.phpfreaks.com/topic/11412-instant-message-system-advise-cheers/ Share on other sites More sharing options...
.josh Posted June 7, 2006 Share Posted June 7, 2006 are you asking for database structure advice? maybe you should post this in the database forum. Or maybe you are looking for advice in general, such as IM features or something? Mebbe you should post this in the Misc. section? Dunno m8, I dun see any code to fix... Quote Link to comment https://forums.phpfreaks.com/topic/11412-instant-message-system-advise-cheers/#findComment-42858 Share on other sites More sharing options...
redarrow Posted June 7, 2006 Author Share Posted June 7, 2006 [!--quoteo(post=381058:date=Jun 7 2006, 04:27 PM:name=Crayon Violent)--][div class=\'quotetop\']QUOTE(Crayon Violent @ Jun 7 2006, 04:27 PM) [snapback]381058[/snapback][/div][div class=\'quotemain\'][!--quotec--]are you asking for database structure advice? maybe you should post this in the database forum. Or maybe you are looking for advice in general, such as IM features or something? Mebbe you should post this in the Misc. section? Dunno m8, I dun see any code to fix...[/quote]What i need to no is the stucture for the database correct before programing. Quote Link to comment https://forums.phpfreaks.com/topic/11412-instant-message-system-advise-cheers/#findComment-42859 Share on other sites More sharing options...
.josh Posted June 7, 2006 Share Posted June 7, 2006 i guess that kinda depends on what all you want the IM to do? make a list of everything you want it to do, and go from there. Quote Link to comment https://forums.phpfreaks.com/topic/11412-instant-message-system-advise-cheers/#findComment-42862 Share on other sites More sharing options...
redarrow Posted June 7, 2006 Author Share Posted June 7, 2006 [!--quoteo(post=381062:date=Jun 7 2006, 04:33 PM:name=Crayon Violent)--][div class=\'quotetop\']QUOTE(Crayon Violent @ Jun 7 2006, 04:33 PM) [snapback]381062[/snapback][/div][div class=\'quotemain\'][!--quotec--]i guess that kinda depends on what all you want the IM to do? make a list of everything you want it to do, and go from there.[/quote]get users to send messages to one another andalso save a copy of the message and then let the user have the abiltyto band a messenger or send a bad message to the admin.lol, but does the database structure look correct to you cheers.if i put a the sent message in a session and uptate the database via that session is that possable cheers. Quote Link to comment https://forums.phpfreaks.com/topic/11412-instant-message-system-advise-cheers/#findComment-42865 Share on other sites More sharing options...
wisewood Posted June 8, 2006 Share Posted June 8, 2006 On the intranet system i created for my employers, i added a simple messaging system.Users can send messages to each other, reply to messages, forward messages, delete messages from their inbox.the "my_messages" table looks like this;id (integer - primary key)date_timesenderrecipientreaddeletedsubjectmessagesender and recipient fields store the user id number from the users table, and read and deleted fields are updated with 1 if they have been read or deleted respectively.From this basic structure, you could expand it to allow other functions.Having a users table which is something like this;idusernamepasswordcan_send_messagescan_receive_messagesbannedYou could also have a blocked_users tableidusername (user id of user doing the blocking)is_blocking (user id of the user to be blocked by that user)reasonYou'll get the idea. Build something that does the basics, but leave enough scope to expand it later as required. Personal folders to move mail out of your inbox etc are something that i plan to implement into my system... as well as global announcements to all staff. Quote Link to comment https://forums.phpfreaks.com/topic/11412-instant-message-system-advise-cheers/#findComment-43125 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.