Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: SleePy on October 31, 2008, 10:23:14 AM

Title: Mark Personal Messages as Read
Post by: SleePy on October 31, 2008, 10:23:14 AM
Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=1479)

This customization will add a new button to the Personal Messages page that allows you to mark all personal messages as read. As well it can be useful for resetting a incorrect unread personal message count.

This customization does make a theme edit to PersonalMessage.template.php, although it should operate with most custom themes without the need for changes.
Title: Re: Mark Personal Messages as Read
Post by: edi67 on October 31, 2008, 02:44:03 PM
nice one
Title: Re: Mark Personal Messages as Read
Post by: MaXiForum.cz on November 05, 2008, 04:42:59 AM
SMF 1.1.6 is not? :(
Screen pls...
Looking good :)
Title: Re: Mark Personal Messages as Read
Post by: SleePy on February 19, 2009, 05:35:30 PM
It will work not with 1.1.6, But if you are using 1.1.6, then you really need to upgrade as you are behind in 2 security releases.
Title: Re: Mark Personal Messages as Read
Post by: willerby on July 27, 2009, 03:21:55 PM
Thanks Sleepy... I was getting a little miffed with the New Message count being wrong. There are only so many times you can recount forum statistics...
Title: Re: Mark Personal Messages as Read
Post by: luismanson on February 17, 2010, 09:29:30 AM
QuoteAs well it can be useful for resetting a incorrect unread personal message count.

any ideas why is this happening?
Title: Re: Mark Personal Messages as Read
Post by: SleePy on February 19, 2010, 04:12:10 PM
It can happen for a number of reasons actually.  Including even admins trying to delete mass pm spam.  Sometimes conversation view does make mistakes with pms.
Title: Re: Mark Personal Messages as Read
Post by: luismanson on February 23, 2010, 01:50:42 PM
Hi Sleepy, thanks for this mod, i found to things, the last time i used it it did not work, but today i saw something weird...
my action url has an space:
?sa= markread i looked inside the source and i found
'custom_url' => $scripturl . '?action=pm;sa= markread' in PersonalMessage.php changes. After removing the space it solved my unread PMs bug!!! :D

also your file is a tar.gz which i can not install i had to extract the file and zip its content :(

BTW there is a xslt directory inside for some reason....



Title: Re: Mark Personal Messages as Read
Post by: SleePy on February 23, 2010, 06:01:52 PM
Thank you for that bug fix :)  I have updated my sources and it will be fixed in the next update to this mod.

As for the tar.gz, I thought I had fixed all packages.  I had a packaging issue last time I updated my mods and it caused them to not package correctly.

The xslt directory is for manual installation of the mod.  You should be able to drop the the .xml files into your browser and get a GUI for manually installing the mod.  Although last I was told this was flaky on windows.
Title: Re: Mark Personal Messages as Read
Post by: luismanson on March 10, 2010, 07:04:14 AM
BTW, spanish_latin

// Mark PMs as read
$txt['mark_all_pms'] = 'Marcar todos como leídos';
$txt['pms_marked_read'] = 'Todos los Mensajes Personales fueron marcados como leídos.';
Title: Re: Mark Personal Messages as Read
Post by: Bugo on December 06, 2010, 09:36:00 AM
@SleePy Any screenshot?
Title: Re: Mark Personal Messages as Read
Post by: SleePy on December 06, 2010, 02:05:38 PM
I can't really screenshot anything.  It simply adds a button in your PM navigation list that allows you to mark all messages read.  I could screen shot the button I guess :P
Title: Re: Mark Personal Messages as Read
Post by: henrik1782 on December 07, 2010, 05:05:53 AM
Hi...

Thanks for the mod..

Here is the danish tranlation


<file name="$languagedir/Modifications.danish.php">
<operation>
<search position="end" />
<add><![CDATA[// Mark PMs as read
$txt['mark_all_pms'] = 'Marker alle som læst';
$txt['pms_marked_read'] = 'Alle personlige beskedder blev markeret som læst.';
]]></add>
</operation>
</file>
<file name="$languagedir/Modifications.danish-utf8.php">
<operation>
<search position="end" />
<add><![CDATA[// Mark PMs as read
$txt['mark_all_pms'] = 'Marker alle som læst';
$txt['pms_marked_read'] = 'Alle personlige beskedder blev markeret som læst.';
]]></add>
</operation>
</file>


Best regards
Henrik Poulsen
Title: Re: Mark Personal Messages as Read
Post by: SleePy on December 15, 2010, 01:26:26 PM
Thank you, I have committed this to my sources and it will be in the next release.
Title: Re: Mark Personal Messages as Read
Post by: GlitchPC on January 08, 2012, 03:46:43 AM
Status on this mod?

Does this mod conflict with this one:  PM Readed (http://custom.simplemachines.org/mods/index.php?mod=1629)
Title: Re: Mark Personal Messages as Read
Post by: SleePy on January 09, 2012, 05:33:52 PM
GlitchPC,
If you check the mod site, you will see it is supporting SMF 2.0 - 2.0.2, which is the current stable release.  It will support any version of SMF 2.0.x unless a drastic change is made in the code that breaks the ability for this mod to edit the correct sections of code.

I have no information if that other modification conflicts.  You would get a error while attempting to install it though if this mod is installed and there is a conflict.  The same can go for any other mod.
Title: Re: Mark Personal Messages as Read
Post by: GlitchPC on January 09, 2012, 10:04:58 PM
SleePy...

Thanks...installed.  No installation errors...and no issues, as of yet.