Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: Doug Heffernan on March 12, 2019, 07:01:34 AM

Title: Force Users to Read Unread Pm(s)
Post by: Doug Heffernan on March 12, 2019, 07:01:34 AM
Link to Mod (https://custom.simplemachines.org/mods/index.php?mod=4211)

This mod will force users who have a certain number of unread pms to read them before they can view the topics at your forum. Groups can be excluded from this restriction. The error message can also be modified by editing the appropriate language string.
Title: Re: Force Users to Read Unread Pm(s)
Post by: -Rock Lee- on March 12, 2019, 01:54:50 PM
I do not know if it is correct in certain cases, however, it is a good modification that I can see. Also I was looking at the code I leave the translation to Latin Spanish.

<file name="$languagedir/Help.spanish_latin.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[$helptxt['force_unread_pms_enabled'] = 'Esta configuraci&oacute;n activa y desactiva el mod.';
$helptxt['unread_nr'] = 'Este campo de configuraci&oacute;n contiene el n&uacute;mero de MPs (Mensajes Personales) no le&iacute;dos que desea forzar a sus usuarios a leerlos antes de que puedan navegar por los temas en su foro.';
$helptxt['unread_nr_excluded_groups'] = 'Ingrese la(s) identificaci&oacute;n(es) del(los) grupo(s) que desea excluir de la restricci&oacute;n de MPs de lectura forzada no le&iacute;da. Para excluir m&aacute;s de un grupo, separe los identificadores con una coma. Por Ejem. 1,2,3,4';]]></add>
</operation>
</file>

<file name="$languagedir/Help.spanish_latin-utf8.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[$helptxt['force_unread_pms_enabled'] = 'Esta configuración activa y desactiva el mod.';
$helptxt['unread_nr'] = 'Este campo de configuración contiene el número de MPs (Mensajes Personales) no leídos que desea forzar a sus usuarios a leerlos antes de que puedan navegar por los temas en su foro.';
$helptxt['unread_nr_excluded_groups'] = 'Ingrese la(s) identificación(es) del(los) grupo(s) que desea excluir de la restricción de MPs de lectura forzada no leída. Para excluir más de un grupo, separe los identificadores con una coma. Por Ejem. 1,2,3,4';]]></add>
</operation>
</file>

<file name="$languagedir/Modifications.spanish_latin.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[$txt['unreadpms_settings'] = 'Forzar lectura de MP(s) no leida(s)';
$txt['force_unread_pms_enabled'] = 'Activar Mod';
$txt['unread_nr'] = 'N&uacute;mero de MP(s) no le&iacute;do(s)';
$txt['unread_nr_excluded_groups'] = 'Los grupos excluidos';
$txt['unread_pms_error_message'] = 'Tenes <strong> %s </strong> no le&iacute;do(s). &iexcl;Debes leerlos para ver los temas del foro!';]]></add>
</operation>
</file>

<file name="$languagedir/Modifications.spanish_latin-utf8.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[$txt['unreadpms_settings'] = 'Forzar lectura de MP(s) no leida(s)';
$txt['force_unread_pms_enabled'] = 'Activar Mod';
$txt['unread_nr'] = 'Número de MP(s) no leído(s)';
$txt['unread_nr_excluded_groups'] = 'Los grupos excluidos';
$txt['unread_pms_error_message'] = 'Tenes <strong> %s </strong> no leído(s). ¡Debes leerlos para ver los temas del foro!';]]></add>
</operation>
</file>



Regards!
Title: Re: Force Users to Read Unread Pm(s)
Post by: websitemaker1978 on April 11, 2019, 06:09:22 PM
A useful purpose for this would be to implement this on a forum with PMs disabled for everyone but moderators. PMs could then be used to warn users for posts that violate the forum's terms of service, not allowing them to continue to use the board until they read the warnings.
Title: Re: Force Users to Read Unread Pm(s)
Post by: GigaWatt on April 11, 2019, 06:58:27 PM
Quote from: websitemaker1978 on April 11, 2019, 06:09:22 PM
PMs could then be used to warn users for posts that violate the forum's terms of service, not allowing them to continue to use the board until they read the warnings.

They can always just click and not read them... the same way you usually click "I Agree" on any license agreement. Don't know if anybody's read one entirely, LOL :D.
Title: Re: Force Users to Read Unread Pm(s)
Post by: larry007 on January 27, 2021, 02:48:21 PM
The mod somehow doesn't work.

if someone logs into the forum, he did not get a message window, only that a message is displayed in the form of a 1 message in the link bar
Title: Re: Force Users to Read Unread Pm(s)
Post by: larry007 on February 01, 2021, 03:29:55 AM
Nobody had the same problem?
Title: Re: Force Users to Read Unread Pm(s)
Post by: Steve on February 01, 2021, 12:53:16 PM
Is this just one person or everyone?
Title: Re: Force Users to Read Unread Pm(s)
Post by: larry007 on February 03, 2021, 03:07:00 AM
I've only tried it out once myself with a second user account.
When I log into the forum I don't get a popup window like the mod describes it
Title: Re: Force Users to Read Unread Pm(s)
Post by: Steve on February 03, 2021, 09:03:56 AM
What about alternate browsers? Same problem?
Title: Re: Force Users to Read Unread Pm(s)
Post by: larry007 on February 03, 2021, 10:57:31 AM
No work with

Firefox 85
MS Edge
Title: Re: Force Users to Read Unread Pm(s)
Post by: Steve on February 03, 2021, 04:56:28 PM
Do you have the mod enabled? Do you have a specific number of PMs entered in the settings? Do you have any excluded groups in those settings?
Title: Re: Force Users to Read Unread Pm(s)
Post by: larry007 on February 04, 2021, 02:54:28 AM
yes, everything was done and no group was excluded
Title: Re: Force Users to Read Unread Pm(s)
Post by: Steve on February 04, 2021, 05:48:06 AM
I'm afraid the mod author is going to have to take it from here. :-\
Title: Re: Force Users to Read Unread Pm(s)
Post by: larry007 on February 05, 2021, 08:18:29 AM
Hello Doug Heffernan

have you stopped your support for the mod? No answer from you?