kalkun-sms / Kalkun

Open Source Web based SMS Manager
https://kalkun.sourceforge.io/
GNU General Public License v2.0
212 stars 130 forks source link

Mark as Unread #23

Open nashin8or opened 13 years ago

nashin8or commented 13 years ago

Hi there,

I was wondering if anyone else had the need to have a mark as unread button. If so where to from here? Any suggestions?

Cheers,

Nash

back2arie commented 13 years ago

Hi

Actually it's pretty clear, create the button views on view/main/messages/navigation.php, the javascript function on view/js_init/message/js_conversation.php.

Add function on message controller to handle javascript call, and lastly create a function on message model to update field readed on inbox table.

That's it ;)

prabowomurti commented 12 years ago

I already tried to get it to work. But rather than "Mark as unread", I reverse the function so on message model, I update the readed to true on inbox table. I already edit the views and add "Mark as read" button. The problem is, every time I changed the value, it will always changes to its original value. Even if I change the value manually through MySQL command. I don't know the reason. I'm using mobinil modem, Huawei CE 0682, with Telkomsel Kartu As as the operator. My gammu version is 1.30.0 on Ubuntu 11.10.

Thanks.

back2arie commented 12 years ago

A pull request would be great so we can review your code :-)

kingster commented 12 years ago

@sangprabo Everytime you open the messages view for a particular number, all messages are set to read which are showed in that window. Most probably you are facing this problem. Send a pull request and we will have a look!

barathpc commented 12 years ago

any update on this?