Aceful Posted August 27, 2015 Share Posted August 27, 2015 Hello, I've been using Open-Source Social Network a while now and i've tried to edit this chat but i can't find a way to put in a auto-delete after the message has been seen by the receiver. I have tried asking about it in the official Open-Source Social Network website forum with no luck. Was wondering if anyone here has any idea. I deleted the image folder and sound folder to reduce the size. And i've been trying to work it out in actions/markread.php OssnChat.zip Any ideas would be greatly appreciated. Quote Link to comment https://forums.phpfreaks.com/topic/297964-auto-delete-chat-message-after-it-has-been-seen/ Share on other sites More sharing options...
QuickOldCar Posted August 28, 2015 Share Posted August 28, 2015 From their forum they have this sql query. DELETE FROM ossn_messages WHERE(message_from='10' OR message_to='10') The number 10 would be the users guid. That query would delete all messages a certain user, modify to your needs, make any required forms or scripts to do as you require. Quote Link to comment https://forums.phpfreaks.com/topic/297964-auto-delete-chat-message-after-it-has-been-seen/#findComment-1519802 Share on other sites More sharing options...
Aceful Posted August 31, 2015 Author Share Posted August 31, 2015 From their forum they have this sql query. DELETE FROM ossn_messages WHERE(message_from='10' OR message_to='10') The number 10 would be the users guid. That query would delete all messages a certain user, modify to your needs, make any required forms or scripts to do as you require. Thanks for the reply! i failed to notice it until now due to moving to a new house, hehe! Anyway, i've looked for the user guide but i can't seem to find it. Now im really feeling nubish. Also i'm not very familiar with PHP, so i doubt i would even be able to set up a script like that. Quote Link to comment https://forums.phpfreaks.com/topic/297964-auto-delete-chat-message-after-it-has-been-seen/#findComment-1520026 Share on other sites More sharing options...
Aceful Posted August 31, 2015 Author Share Posted August 31, 2015 And now i realize i have misread your question, anyway. heh x.x Quote Link to comment https://forums.phpfreaks.com/topic/297964-auto-delete-chat-message-after-it-has-been-seen/#findComment-1520032 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.