An improvement on OssnMessages component to allow the user to attach images. Images also appear properly into OssnChat component, but isn't possible (yet) send images through this component.
If FancyBox component is enabled, images can be open in fullscreen mode.
OSSN message system has 2 components. The OssnMessages is used in mobile version and OssnChat is the small chatbox at bottom of the page. At this version, this component only works with OssnMessage. Maybe someone here can help me to develop this part of the component :-)
Screenshot of OssnMessages component
Screenshot of OssnChat component
If you want to help me to make more components, click on the button down bellow and buy me a coffee. It's up to you how much coffee I'll drink :-)
Thank you Rafael.
@Tamás
Thanks for feedback. When cache is enabled, the same as you described occured. I'm tryng to fix this.
@Arsalan
Thanks for feedback and sugestion.
I used as base to develop the component OssnComments code. There, images are stored on tmp (https://github.com/opensource-socialnetwork/opensource-socialnetwork/blob/f3e2eb5e93bad9c13c718d958a1619de3ab45b0b/components/OssnComments/ossn_com.php#L489). But I'll change the path ASAP
Erase a image when user deletes a message its a gap to be filled.
The photo icon appears, I select the photo, it seems to send it to the chat partner. There is no message after that I sent the photo, no photo. OSSN 6.1
Good but one thing is you should not store those static files in
> ossn_get_userdata("tmp/photos/");
This is temporary folder and all photos may lost!
Maybe you can create new folder ossn_get_userdata("messages/photos/")
Things may become difficult for you in case message item deleted and the image file still exists :)