Jump to content

Auto-Delete chat message after it has been seen


Aceful

Recommended Posts

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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!  :happy-04:

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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.