Topic: Hard Cover Tute: Have PM message been read or not.
When somebody in love and wrote message to his sweetheart he badly need to know have She read his message
Keep your users informed whether their message been read or not.
It took me 5 minutes to invent,
it will take you 30 seconds to implement.
Actually it's totally based on existing code.
Open your lib.account_messages.php and find: function show_sent($page)
About 50 lines below find (line 991 of commercial version): $fields[$i]['message_id'] = $obj['message_id'];
And add below it:
$fields[$i]['message_nonread'] = $obj['new'];Open your account_messages_sent.tpl and find:
<a href="{top.virtual_path}{message_link}">{message_subject}</a>And add: <sup><!-- IF message_nonread -->Non-read<!-- ELSE -->Read<!-- ENDIF --></sup>
right after it so it become:
<a href="{top.virtual_path}{message_link}">{message_subject}</a> <sup><!-- IF message_nonread -->Non-read<!-- ELSE -->Read<!-- ENDIF --></sup>Test it! ![]()
Now you can customize the results: show closed and opened envelope instead of words etc. Moreover you can give that feature only to your paid members.
P.S.: It took me 15 minutes to write this shortest tutorial ![]()
www.vldCrowd.com/radioact - my profile at vldCrowd