Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=1557)
MOD Notify Modification Last Post v1.3
==========================
| M-DVD (http://custom.simplemachines.org/mods/index.php?action=profile;u=148997) |
| 1.3 |
| 11th December 2008 |
| (http://www.simplemachines.org/site_images/lang/english.gif) (http://www.simplemachines.org/site_images/lang/english_british.gif) (http://www.simplemachines.org/site_images/lang/spanish.gif) (http://www.simplemachines.org/site_images/lang/spanish_latin.gif) (http://www.simplemachines.org/site_images/lang/portuguese_pt.gif) (http://www.simplemachines.org/site_images/lang/german.gif) (http://www.simplemachines.org/site_images/lang/russian.gif) |
| SMF 1.1.1 - 1.1.9 SMF 2 RC1-X |
|
(http://www.simplemachines.org/community/Themes/smsite/images/star.gif)(http://www.simplemachines.org/community/Themes/smsite/images/star.gif)(http://www.simplemachines.org/community/Themes/smsite/images/star.gif)(http://www.simplemachines.org/community/Themes/smsite/images/star.gif)(http://www.simplemachines.org/community/Themes/smsite/images/star.gif) (http://mods.simplemachines.org/index.php?action=review;sa=add;mod=1557) | Comment this Mod (http://www.simplemachines.org/community/index.php?action=post;topic=284432.0) |
(http://www.simplemachines.org/site_images/modtitlebar.png)(http://www.simplemachines.org/site_images/modtitlebar.png)(http://www.simplemachines.org/site_images/modtitlebar.png) (http://custom.simplemachines.org/mods/index.php?action=profile;u=148997) | My MODs (http://custom.simplemachines.org/mods/index.php?action=profile;u=148997) |
(http://www.simplemachines.org/community/Themes/smsite/images/bbc/img.gif)(http://www.simplemachines.org/community/Themes/smsite/images/bbc/img.gif)(http://www.simplemachines.org/community/Themes/smsite/images/bbc/img.gif) (http://custom.simplemachines.org/mods/index.php?mod=1557) | Images (http://custom.simplemachines.org/mods/index.php?mod=1557) |
(https://www.paypal.com/en_GB/i/btn/btn_donate_SM.gif) (https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=4587421) | Help support my MODs (https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=4587421) |
|
- ChangeLog (#post_changelog)
| (http://www.simplemachines.org/community/Themes/smsite/images/buttons/reply.gif) (#post_changelog) |
Features:- The users will can receive mails notification when the last post of topic have been modificated.
- Also, you can enable the Bump topic when the Last Post is modificated.
- Or, you can enable the Show Icon "New" in the topic.
- Settings: Admin > Posts and Topics > Post Settings
Thank to
AlenNS (http://www.simplemachines.org/community/index.php?action=profile;u=96104) and
mark7144 (http://www.simplemachines.org/community/index.php?action=profile;u=34087) for Ideas
==========================
Languages (normal & utf-8)
- English
- English_British
- Spanish_Es
- Spanish_Latin
- Portuguese_Portugal by DeviDarkL (http://www.simplemachines.org/community/index.php?action=profile;u=181017)
- German by MIAUS (http://www.simplemachines.org/community/index.php?action=profile;u=171239)
- Russian by vika.vedy (http://www.simplemachines.org/community/index.php?action=profile;u=208172)
$txt['ModifyLastPostMail'] = 'Enable Notification Mail when the last post is edited';
$txt['ModifyLastPostMail_sub'] = 'Send Notification to users that are subscribed to the topic';
$txt['ModifyLastPostBump'] = 'Bump topic when the last post is edited';
$txt['ModifyLastPostBump_sub'] = 'This option also show icon (see next option)';
$txt['ModifyLastPostIcon'] = 'Show icon "New"';
$txt['ModifyLastPostIcon_sub'] = 'Show icon "New" when the last post has been modified.';
$txt['notification_modify_subject'] = 'Reply modified: %s';
$txt['notification_modify'] = 'The last post in a topic you are watching has been modified
by %s.' . "\n\n" . 'View the reply at: ';
// Only SMF 2.0 emaillang.xml
$search = array ('Topic reply', 'A reply has been posted');
$replace = array ('Reply modified', 'The last post has been modified');
==========================
Características:- Los usuarios podrán recibir mails de notificación cuando el último post de un tema es modificado.
- También, tu puedes activar que el tema suba cuando se modifique el último mensaje.
- O activar que muestre el ícono "Nuevo" mensaje al ser modificado el último post.
- Configuraciones: Administración > Mensajes y Temas > Configuración de Mensajes
Fin.
==========================
ChangeLog:QuoteVersion 1.0 (http://www.simplemachines.org/community/index.php?topic=284432.msg1867437#msg1867437) - 11th December 2008
o Initial release.
o Allows get notifications (mails, icon new, or bump) if the last post topic's was modified.
o Compatible with SMF 1.1.X & SMF 2b-RC
Version 1.1 (http://www.simplemachines.org/community/index.php?topic=284432.msg1880152#msg1880152) - 15th January 2009
! Fix little bug with other mods install in SMF 1.1.7 - Thanks ceewee by report
? Unistall and ReInstall - Isn't neccesary edit yours templates files
Version 1.2 - 22th June 2009
! This package was uploaded by mistake. It wasn't the final 1.2. Sorry.
Version 1.3 (http://www.simplemachines.org/community/index.php?topic=284432.msg2123002#msg2123002) - 24th June 2009
! Fix bug with Bump and QuickModify - Thanks vika.vedy by report
! Fix bug that avoids the bump if another user creates a message at the same time - Thanks vika.vedy by report
+ English, English_British, Spanish_Es, Spanish_Latin, Portuguese_Portugal, German and Russian in the package
? Unistall the previous version, Update and Make HardRefresh - Isn't neccesary edit templates files
QuoteLeyend
o Feature
* Change
+ Added
- Eliminated
! Bug Fixed
? How to Update
Cool mod. :) Great work. :D
Quote from: ShaDow82x on January 06, 2009, 08:07:15 PM
Cool mod. :) Great work. :D
Thank you for using this MOD :D
Have 1.17 with default theme and a number of mods, installes perfect, when I push post and topics I get this
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /mounted-storage/home22b/sub003/sc20581-HXVG/xxxxxx.com/Sources/ManagePosts.php on line 287
Does this mean, lines expected are already changed by other mods?
BTW, my line 287 is empty!?
288-290 has
// Check if your PHP is able to use spell checking.
$context['spellcheck_installed'] = function_exists('pspell_new');
}
BTW package uninstalls perfectly also...but would like to use this mod, because I have modified a lot for 2009, during Christmas/New Year.
Update Notify Modication Last Post v1.1:
==========================Changes:
- Fix little bug with other mods install in SMF 1.1.7
How do I upgrade?
- Uninstall the previous version
- Install the new
=======================================
Cambios:
- Reparado pequeño bug cuando hay otros mods instalados en SMF 1.1.7.
¿Como actualizar?
- Desintalar la anterior versión
- Instalar la nueva
hi this is a good mod.
Logging in as admin, do i have a option to remove the last edit option from the post.
hi, it installs fine.
When I understand correctly, when I check both checkboxes in posts and topics, it shows "new" button and put last dat of modification as date post?
Is that what "bumps" means.?
Quote from: A.SK on January 16, 2009, 06:10:24 AM
hi this is a good mod.
Logging in as admin, do i have a option to remove the last edit option from the post.
Thanks :D
I don't understand. ¿Revert the last edition? :-\
Quote from: ceewee on January 17, 2009, 08:15:00 AM
hi, it installs fine.
When I understand correctly, when I check both checkboxes in posts and topics, it shows "new" button and put last dat of modification as date post?
Is that what "bumps" means.?
No, bump isn't with change date, is with change id_message.
Then "bump topic" always show "Icon New".
Change date doesn't cause bump topic.
Note: Thanks for report the bug :D
Quote from: M-DVD on January 17, 2009, 02:57:20 PM
Quote from: A.SK on January 16, 2009, 06:10:24 AM
hi this is a good mod.
Logging in as admin, do i have a option to remove the last edit option from the post.
Thanks :D
I don't understand. ¿Revert the last edition? :-\
Once a member has made a edit, it will show as Last edited by {membername} and time.
If i login to my forum as admin, could i delete the above added line on every post updated.
Quote from: A.SK on January 19, 2009, 12:35:22 PM
Once a member has made a edit, it will show as Last edited by {membername} and time.
If i login to my forum as admin, could i delete the above added line on every post updated.
Excuse if I haven't understood, today I have a severe headache. Sorry.
You want a function to delete this line?
(http://img102.imageshack.us/img102/2056/imgqf6.th.png) (http://img102.imageshack.us/img102/2056/imgqf6.png)
If I understand, you have two options:
1 .- Hidden:
Admin > Current Theme > Show last modification date on modified posts (disable)
2 .- Delete (only membegroups with permissions)
Use this MOD Remove Post Modified (Last Edit) Time (http://custom.simplemachines.org/mods/index.php?mod=982)
You are right.
Thanks for this information.
Its was really useful for me and this is what i was looking for long time.
Your welcome :)
Sweet , nice job buddy ;)
Quote from: NIBOGO on January 29, 2009, 06:48:56 PM
Sweet , nice job buddy ;)
Thanks for your comments :D
I need help uploading it. I am running 1.18 but when I use the package manager it shows that it is either corrupt or outdated.
What should I do? I am not that yet profficient at manually installing Mods.
Thanks,
VR
Hello.
I have installed this mod on 1.1.8 and there have been no problems.
Can you say, what error shows exactly?
An Error Has Occurred!
The package you tried to upload either is not a valid package or has become corrupted.I am however, doing this on a Mac right now and when I save your file, it uncompresses it in the process for some reason, then I have to go back an re-compress it.
I tried another MOD that says version 1.18, and I still get the same error.
I may just wait until I go to my home PC and try it again.
VR
Quote from: M-DVD on February 15, 2009, 06:09:54 PM
Hello.
I have installed this mod on 1.1.8 and there have been no problems.
Can you say, what error shows exactly?
OK, I uploaded it successfully, HOWEVER, I am getting this error now when I try to modify a post:
Fatal error: Cannot redeclare notifyupdatelastmessages() (previously declared in /home/.sites/143/site2/web/forum/Sources/Subs-Post.php:1996) in /home/.sites/143/site2/web/forum/Sources/Subs-Post.php on line 2155What should I do...I really need this MOD to work considering we do a lot of updating.
Thanks
VR
Quote from: victoryrock on February 15, 2009, 06:17:02 PM
An Error Has Occurred!
The package you tried to upload either is not a valid package or has become corrupted.
I am however, doing this on a Mac right now and when I save your file, it uncompresses it in the process for some reason, then I have to go back an re-compress it.
I tried another MOD that says version 1.18, and I still get the same error.
I may just wait until I go to my home PC and try it again.
VR
Quote from: M-DVD on February 15, 2009, 06:09:54 PM
Hello.
I have installed this mod on 1.1.8 and there have been no problems.
Can you say, what error shows exactly?
Hi
You have installed the mod twice (somehow), now you have a function duplicate (notifyupdatelastmessages), and possibly some other code too.
You must manually delete the duplicate.
If I was to attach my Subs-Post.php file, would you be able to do that for me please? I am not that great at manually changing things.
If not, no worries.
Quote from: M-DVD on February 16, 2009, 12:25:16 PM
Hi
You have installed the mod twice (somehow), now you have a function duplicate (notifyupdatelastmessages), and possibly some other code too.
You must manually delete the duplicate.
I see nothing wrong with that file. I don't see what that shows the error.
Try uninstalling and reinstalling. :-\
Thanks for all your help M-DVD.
I ended up doind in and delete some code that had been duplicated somehow. THe MOD works great now.
VR
Quote from: M-DVD on February 17, 2009, 07:07:33 PM
I see nothing wrong with that file. I don't see what that shows the error.
Try uninstalling and reinstalling. :-\
I'm glad that is working fine.
Thanks for your comment and thank you for using :D
Great Mod ;)
Portuguese_pt translations (normal & utf8)
Modifications.portuguese_pt.php
<file name="$languagedir/Modifications.portuguese_pt.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
// MOD Notify Modification Last Post
$txt['ModifyLastPostMail'] = 'Activar notificação por email quando o último post é editado';
$txt['ModifyLastPostMail_sub'] = 'Enviar notificação para os utilizadores que estão subscriptos no tópico';
$txt['ModifyLastPostBump'] = 'Bump(ar) o tópico quando o último post é editado';
$txt['ModifyLastPostBump_sub'] = 'Esta opção também mostra o icon (ver a opção a seguir)';
$txt['ModifyLastPostIcon'] = 'Mostrar icon "New"';
$txt['ModifyLastPostIcon_sub'] = 'Mostrar icon "New" quando o último post foi modificado.';
$txt['notification_modify_subject'] = 'Resposta modificada: %s';
$txt['notification_modify'] = 'O último post ao tópico que te subscreves-te foi modificado por %s.' . "\n\n" . 'Vê a resposta em: ';]]></add>
</operation>
</file>
<file name="$languagedir/Modifications.portuguese_pt-utf8.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
// MOD Notify Modification Last Post
$txt['ModifyLastPostMail'] = 'Activar notificação por email quando o último post é editado';
$txt['ModifyLastPostMail_sub'] = 'Enviar notificação para os utilizadores que estão subscriptos no tópico';
$txt['ModifyLastPostBump'] = 'Bump(ar) o tópico quando o último post é editado';
$txt['ModifyLastPostBump_sub'] = 'Esta opção também mostra o icon (ver a opção a seguir)';
$txt['ModifyLastPostIcon'] = 'Mostrar icon "New"';
$txt['ModifyLastPostIcon_sub'] = 'Mostrar icon "New" quando o último post foi modificado.';
$txt['notification_modify_subject'] = 'Resposta modificada: %s';
$txt['notification_modify'] = 'O último post ao tópico que te subscreves-te foi modificado por %s.' . "\n\n" . 'Vê a resposta em: ';]]></add>
</operation>
</file>
EmailTemplates.portuguese_pt.php
<file name="$languagedir/EmailTemplates.portuguese_pt.php" error="skip">
<operation>
<search position="after"><![CDATA[
/*
@additional_params: happy_birthday]]></search>
<add><![CDATA[
// MOD Notify Modification Last Post
// Traslate this
$search = array ('Resposta ao Tópico', 'Uma resposta foi colocada');
$replace = array ('Reposta modificada', 'A última resposta foi modificada');
// Do not touch this
$sub_type_arr = array ('', '_body', '_once', '_body_once');
foreach ($sub_type_arr as $sub_type)
$txt['emails']['notification_modify' . $sub_type] =
str_replace($search, $replace, $txt['emails']['notification_reply' . $sub_type]);
]]></add>
</operation>
</file>
<file name="$languagedir/EmailTemplates.portuguese_pt-utf8.php" error="skip">
<operation>
<search position="after"><![CDATA[
/*
@additional_params: happy_birthday]]></search>
<add><![CDATA[
// MOD Notify Modification Last Post
// Traslate this
$search = array ('Resposta ao Tópico', 'Uma resposta foi colocada');
$replace = array ('Reposta modificada', 'A última resposta foi modificada');
// Do not touch this
$sub_type_arr = array ('', '_body', '_once', '_body_once');
foreach ($sub_type_arr as $sub_type)
$txt['emails']['notification_modify' . $sub_type] =
str_replace($search, $replace, $txt['emails']['notification_reply' . $sub_type]);
]]></add>
</operation>
</file>
Thanks, your translations have been uploaded :)
1. Your description says members will get an "email" notification when their post is edited. WIll it send them an "email" or a "pm"? (if its an email, is there a setting to chage it so that they get a pm instead of an email?)
2. Is there an option to "exclude" non post count groups (i.e. staff) from getting a notification when someone edits their post? (I have several threads for staff that I edit all the time to update them for the staff and I dont want them getting an email every single time)
Hi.
Currently only is mail.
But I think you have a confusion with the function of this MOD.
When a "new reply" is posted in an topic, the members receive an email notification (if the member are subscribed to the topic, and if they had already visited the topic).
However, if the member(*) modify the (his) last post in the topic (for example: to add more information that he forgot, or to change the message), in this case we don't received notice. So, if you already visited this topic, you don't know of this change.
(*) or a moderator/adm.
The only way to know, is if the person send a new reply, rather than modify his post... Or with this MOD :)
Quote from: M-DVD on April 20, 2009, 08:53:01 PM
Hi.
Currently only is mail.
But I think you have a confusion with the function of this MOD.
When a "new reply" is posted in an topic, the members receive an email notification (if the member are subscribed to the topic, and if they had already visited the topic).
However, if the member(*) modify the (his) last post in the topic (for example: to add more information that he forgot, or to change the message), in this case we don't received notice. So, if you already visited this topic, you don't know of this change.
(*) or a moderator/adm.
The only way to know, is if the person send a new reply, rather than modify his post... Or with this MOD :)
So basically the only thing this mod does is notifies the people that are subscribed to that thread that the very last post has been modified? Unfortunately, since this wouldnt happen very often, it wouldnt deem useful on my site but thanks anyways :). I was hoping it was a mod that sent a pm to a member if staff had to modify their post. I dont like the email feature because most email providers think that email from a server is spam and dont deliver it to peoples inboxes which is why most people dont even get the initial notification - the mailer daemon automatically deletes it (Yahoo and Hotmail are bad about not delivering mail).
Hi,
thanks a lot for this Mod, it's just what I was missing! BUT why is it limited to edits in the LAST posts only? It would be great, if any edit could bump a topic - maybe this could be a future option?
Here is a german translation for the Mod:
// MOD Notify Modification Last Post
$txt['ModifyLastPostMail'] = 'Email schicken, wenn letzter Beitrag editiert wurde';
$txt['ModifyLastPostMail_sub'] = 'Nachricht an Mitglieder schicken, die das Thema abonniert haben';
$txt['ModifyLastPostBump'] = 'Thema nach oben "bumpen" wenn letzter Beitrag editiert wurde';
$txt['ModifyLastPostBump_sub'] = 'Diese Option zeigt ein zusätzliches Icon (siehe nächste Option)';
$txt['ModifyLastPostIcon'] = 'Zeige Icon "Neu"';
$txt['ModifyLastPostIcon_sub'] = 'Zeige Icon "Neu" wenn der letzte Beitrag editiert wurde.';
$txt['notification_modify_subject'] = 'Antwort editiert: %s';
$txt['notification_modify'] = 'Der letzte Beitrag eines Themas, dass du beobachtest wurde editiert von %s.' . "\n\n" . 'Lies die Änderung hier nach: ';
Quote from: MIAUS on May 04, 2009, 08:28:04 PM
Hi,
thanks a lot for this Mod, it's just what I was missing! BUT why is it limited to edits in the LAST posts only? It would be great, if any edit could bump a topic - maybe this could be a future option?
Here is a german translation for the Mod:
Thanks I have uploaded your translation :D
Hi, M-DVD
I installed your mod on latest 1.1.9 SMF and found it causes some issues
1. first with quickedit function. if your made quick edit of any last message once, then you cannot call quickedit again without page refresh, because of changed MSG_ID in DB, but not changed msg_id param in javascript quickedit call function: onclick="modify_msg(msg_id, cur_session_id)"
2. second with MYSQL error: "Duplicate entry \xxxxxx\' for key 1" when updating last message ID in case of new message from other user came earlier than UPDATE statement with ++$modSettings['maxMsgID'] remembered in memory.
it happens on this place:
// Bump Topic?
if ($modSettings['ModifyLastPostBump'])
{
$msgOptions['id'] = ++$modSettings['maxMsgID'];
// Change ID Last Messsage
db_query("
UPDATE {$db_prefix}boards AS b, {$db_prefix}topics AS t, {$db_prefix}messages AS m
SET b.ID_LAST_MSG = {$msgOptions['id']},
b.ID_MSG_UPDATED = {$msgOptions['id']},
t.ID_LAST_MSG = {$msgOptions['id']}" . (!isset($row[2]) ? ",
t.ID_FIRST_MSG = {$msgOptions['id']}" : '') . ",
m.ID_MSG = {$msgOptions['id']},
m.ID_MSG_MODIFIED = {$msgOptions['id']}
WHERE b.ID_BOARD = {$topicOptions['board']}
AND t.ID_TOPIC = {$topicOptions['id']}
AND m.ID_MSG = {$row[0]['ID_MSG']}"
,__FILE__,__LINE__
);
so, I have to uninstall this mod because of my forum stay little buggy with these issues :(
can you correct these little bugs?
Quote from: vika.vedy on June 17, 2009, 11:48:31 AM
Hi, M-DVD
I installed your mod on latest 1.1.9 SMF and found it causes some issues
1. first with quickedit function. if your made quick edit of any last message once, then you cannot call quickedit again without page refresh, because of changed MSG_ID in DB, but not changed msg_id param in javascript quickedit call function: onclick="modify_msg(msg_id, cur_session_id)"
Yes, it is a known problem, however, I didn't know how to implement the solution, and I thought "I'm the only one uses the QuickModify, and I don't like the Bump... yes, this can wait :p"
Really, it need to change the ID, not only in the modify_msg function.
PS: Fixed.
Quote from: vika.vedy on June 17, 2009, 11:48:31 AM
2. second with MYSQL error: "Duplicate entry \xxxxxx\' for key 1" when updating last message ID in case of new message from other user came earlier than UPDATE statement with ++$modSettings['maxMsgID'] remembered in memory.
it happens on this place:
Does this happen a lot?
ie, What¡¡?? is this ever happened sometime!?.
Honestly, I didn't expected this to be possible to happen. The maxMsgID have to change, while the script is running; after has been read the maxMsgID, and before will be rewrite with the bump. Imagine, in tenths of seconds. :o
Anyway, have been fixed. In a few hours I upload the new package.
Thanks very much :)
Update Notify Modication Last Post v1.3:
===========================Changes:
- Fix bug with Bump and QuickModify - Thanks vika.vedy by report
- Fix bug that avoids the bump if another user creates a message at the same time - Thanks vika.vedy by report
- English, English_British, Spanish_Es, Spanish_Latin, Portuguese_Portugal, German in the package
How do I upgrade?
- Uninstall the previous version
- Install the new
- Make HardRefresh or Clean Temporary Internet Files - Isn't neccesary edit templates files
=======================================
Cambios:
- Corregido bug entre Bump y QuickModify - Thanks vika.vedy by report.
- Corregido bug que evitaba el bumpeo si en ese mismo momento otro usuario creaba un mensaje nuevo - Thanks vika.vedy by report.
¿Como actualizar?
- Desintalar la anterior versión
- Instalar la nueva
- Hacer HardRefresh o limpiar los archivos temporales de internet - No es necesario editar archivos templates
Wow! So fast!Thank You, M-DVD!
I attached russian language part here.
mmm... for quick reply doesn't work because of very small error,
this code:
Quote
$modSettings['maxMsgID'] = ++$msgOptions['id'];
// Change ID Last Messsage
db_query("
UPDATE {$db_prefix}boards AS b, {$db_prefix}topics AS t, {$db_prefix}messages AS m
SET b.ID_LAST_MSG = {$msgOptions['id']},
b.ID_MSG_UPDATED = {$msgOptions['id']},
t.ID_LAST_MSG = {$msgOptions['id']}" . (!isset($row[2]) ? ",
t.ID_FIRST_MSG = {$msgOptions['id']}" : '') . ",
m.ID_MSG = {$msgOptions['id']},
m.ID_MSG_MODIFIED = {$msgOptions['id']}
WHERE b.ID_BOARD = {$topicOptions['board']}
AND t.ID_TOPIC = {$topicOptions['id']}
AND m.ID_MSG = {$row[0]['ID_MSG']}"
,__FILE__,__LINE__
);
// Conservate Attachment
db_query("
UPDATE {$db_prefix}attachments
SET ID_MSG = {$msgOptions['id']}
WHERE ID_MSG = {$row[0]['ID_MSG']}
LIMIT {$modSettings['attachmentNumPerPostLimit']}"
,__FILE__,__LINE__
);
// Change maxMsgID settings
updateSettings(array('maxMsgID' => $msgOptions['id']), true);
// Compatibility for Quick Modify
$context['msg_bumped'] = $msgOptions['id'];
should be:Quote
$old_msg_id = $msgOptions['id'];
$modSettings['maxMsgID'] = ++$msgOptions['id'];
// Change ID Last Messsage
db_query("
UPDATE {$db_prefix}boards AS b, {$db_prefix}topics AS t, {$db_prefix}messages AS m
SET b.ID_LAST_MSG = {$msgOptions['id']},
b.ID_MSG_UPDATED = {$msgOptions['id']},
t.ID_LAST_MSG = {$msgOptions['id']}" . (!isset($row[2]) ? ",
t.ID_FIRST_MSG = {$msgOptions['id']}" : '') . ",
m.ID_MSG = {$msgOptions['id']},
m.ID_MSG_MODIFIED = {$msgOptions['id']}
WHERE b.ID_BOARD = {$topicOptions['board']}
AND t.ID_TOPIC = {$topicOptions['id']}
AND m.ID_MSG = {$row[0]['ID_MSG']}"
,__FILE__,__LINE__
);
// Conservate Attachment
db_query("
UPDATE {$db_prefix}attachments
SET ID_MSG = {$msgOptions['id']}
WHERE ID_MSG = {$row[0]['ID_MSG']}
LIMIT {$modSettings['attachmentNumPerPostLimit']}"
,__FILE__,__LINE__
);
// Change maxMsgID settings
updateSettings(array('maxMsgID' => $msgOptions['id']), true);
// Compatibility for Quick Modify
$context['msg_bumped'] = $old_msg_id;
I suppose...Good reason to add russian lang, doesn't it? ;)
Quote from: vika.vedy on June 24, 2009, 08:25:33 AM
I attached russian language part here.
Thanks, your translation have been uploaded :D
Quote from: vika.vedy on June 24, 2009, 09:02:27 AM
mmm... for quick reply doesn't work because of very small error, this code:
...
Good reason to add russian lang, doesn't it? ;)
This package was uploaded by mistake. It wasn't the final 1.2. Sorry.
Have been fixed :-[
And yes, have been added :P
very nice mod, good job bro
i wonder if it can be developed so that any modification in any post, not only the LAST post, gives a notification.... the (new) icon being linked to the modified post......
keep it up
Would this mod by any chance perhaps be able to be modified so that it bumps the FIRST post of a topic? That would be great for topics where the first post is updated often, like in developer update topics.
I don't see the point with bumping a topic just because the latest post was edited. The latest post of a topic is usually made by a regular member who has nothing to do with the topic itself, so why it would be important to bump the last posts edit is beyond my understanding.
Also, we need your help with the list of contributions in posts in the Contributions mod, M-DVD. O:)
Hi.
Firstly, I want to thank the author for this great mod. :)
Secondly, I have few remarks about it. :-[
1) Russian translation is not applicable for forums with cp_1251 chartable because both sections are encoded with utf8 in your mod.
2) The e-mail messages were not translated to Russian. It's here:
$search = array ('Topic reply', 'появился новый ответ от пользователя');
$replace = array ('Reply modified', 'сообщение было отредактировано пользователем');
3) May be will be better don't send email about changes in a topic if they were made during of 'Courtesy edit wait time' when it doesn't marked like edited?
Currently mod sends notification in any case.
is it possible making this feature optional?
for example changing the document state to "topic closed" etc. will mark it as new or bump it.
in other cases changes shoud not shown as new or bumped topic but this is also impossible at the moment
Here's the FRENCH translation:
Quote
$txt['ModifyLastPostMail'] = 'Autoriser la notification par e-mail si le dernier message a été édité';
$txt['ModifyLastPostMail_sub'] = 'Envoyer une notification aux utilisateurs qui ont souscrits au fil de discussion';
$txt['ModifyLastPostBump'] = 'Marquer le fil de discussion si le dernier message a été édité';
$txt['ModifyLastPostBump_sub'] = 'Cette option affiche également l\'icône (voir option suivante)';
$txt['ModifyLastPostIcon'] = 'Afficher l\'icône "Nouveau"';
$txt['ModifyLastPostIcon_sub'] = 'Afficher l\'icône "Nouveau" si le dernier message a été modifié.';
$txt['notification_modify_subject'] = 'Réponse modifiée: %s';
$txt['notification_modify'] = 'Le dernier message, d\'un fil de discussion que vous suivez, a été modifié par %s.' . "\n\n" . 'Pour voir la réponse, aller à: ';]]></add>
Quote
$search = array ('Réponse au fil de discussion', 'Une réponse a été postée');
$replace = array ('Réponse modifiée', 'Le dernier message a été modifié');
I think that found a bug. When the mod it's activated, the second quick edit consecutive on the last post don't work.
FF/Opera don't show any error but the edit never gone and "Loading" ajax tooltip stay active on top of page. IE show an error on "scripts.js" file. Exactly on this line:
if (typeof(element.innerHTML) != 'undefined')
¿Any idea? Thanks for the mod M-DVD ;)
no more update M-DVD? :(
Version 1.3 should work fine on SMF 2.0 RC3. One file (Themes/default/scripts/xml_topic.js) is not found during installation, but otherwise there shouldn't be a problem, as far as I can see.
hey anyone having the problem that when you edit a post it changed the topic/post id so if you edit a post and then save it to have to edit it again it'll say that post doesn't exist as it has changed the id
the only was round this is to refresh the page :(
Quote from: robinrobin on July 30, 2009, 08:24:09 AM
Would this mod by any chance perhaps be able to be modified so that it bumps the FIRST post of a topic? That would be great for topics where the first post is updated often, like in developer update topics.
I don't see the point with bumping a topic just because the latest post was edited. The latest post of a topic is usually made by a regular member who has nothing to do with the topic itself, so why it would be important to bump the last posts edit is beyond my understanding.
Also, we need your help with the list of contributions in posts in the Contributions mod, M-DVD. O:)
A little late to the party, and sorry to bump such an old topic, but this feature would be very useful for our office forum. Is M-DVD still around?
any plans to update this to 2.0 RC4?
Anybody home?
not working in rc4
Anybody home? by rc5 does not work
Quote from: Makar on March 10, 2011, 06:14:24 AM
Anybody home? by rc5 does not work
Similarly. I installed this mod 5 times, but it does not work on RC5. :'(
any news for 2.0 Final?
Adding my desire to see a 2x version.
For SMF 2.0.X was made some changes.
File is attached.
Attachment removed by Yoshi2889; the mods license does not permit the distribution of mod copies
Sapozhnik, I'm sorry to say that I had to remove your attachment. The mod license does not allow you to distribute copies of it, no matter if it is changed or not.
If you want to install this mod while using SMF 2.0.x, you might be interested in the following link:
Simple Machines Community Forum » SMF Support » SMF 2.0.x Support » Topic: Edited post seen as a new post (http://www.simplemachines.org/community/index.php?topic=507199.0)
edit by Kindred to add the contents of that post and by K@, to remove quotes.
Based on the latest available version (1.3 (http://custom.simplemachines.org/mods/index.php?mod=1557))
Blue lines are new lines
Red lines are edited lines
install_1.php and
install_1.xml and
install_2.php are unchanged.
emaillang.xml:I have added some french translations
Quote from: file emaillang.xml
<file name="$languagedir/EmailTemplates.french-utf8.php" error="skip">
<operation>
<search position="after"><![CDATA[
/*
@additional_params: happy_birthday]]></search>
<add><![CDATA[
// MOD Notify Modification Last Post
// Traslate this
$search = array ('Réponse au fil de discussion', 'Une réponse a été postée');
$replace = array ('Réponse modifiée', 'Le dernier message a été modifié');
// Do not touch this
$sub_type_arr = array ('', '_body', '_once', '_body_once');
foreach ($sub_type_arr as $sub_type)
$txt['emails']['notification_modify' . $sub_type] =
str_replace($search, $replace, $txt['emails']['notification_reply' . $sub_type]);
]]></add>
</operation>
</file>
Applied changes from Sapozhnik for Russian language
Quote from: file emaillang.xml
</file>
<file name="$languagedir/EmailTemplates.russian.php" error="skip">
<operation>
<search position="after"><![CDATA[
/*
@additional_params: happy_birthday]]></search>
<add><![CDATA[
// MOD Notify Modification Last Post
// Translate this
$search = array ('Topic reply', 'Появился ответ от');
$replace = array ('Reply modified', 'Сообщение было отредактировано пользователем');
// Do not touch this
$sub_type_arr = array ('', '_body', '_once', '_body_once');
foreach ($sub_type_arr as $sub_type)
$txt['emails']['notification_modify' . $sub_type] =
str_replace($search, $replace, $txt['emails']['notification_reply' . $sub_type]);
]]></add>
</operation>
</file>
<file name="$languagedir/EmailTemplates.russian-utf8.php" error="skip">
<operation>
<search position="after"><![CDATA[
/*
@additional_params: happy_birthday]]></search>
<add><![CDATA[
// MOD Notify Modification Last Post
// Translate this
$search = array ('Topic reply', 'Появился ответ от');
$replace = array ('Reply modified', 'Сообщение было отредактировано пользователем');
// Do not touch this
$sub_type_arr = array ('', '_body', '_once', '_body_once');
foreach ($sub_type_arr as $sub_type)
$txt['emails']['notification_modify' . $sub_type] =
str_replace($search, $replace, $txt['emails']['notification_reply' . $sub_type]);
]]></add>
</operation>
</file>
install_2.xml:The following changes are the ones making it compatible with SMF 2.0.x
Quote from: file install_2.xml.xml
<search position="after"><![CDATA[
$flag = $smcFunc['db_affected_rows']() != 0;
if (empty($flag))
]]></search>
<add><![CDATA[
if ($modSettings['ModifyLastPostMail'] || $modSettings['ModifyLastPostBump'] || $modSettings['ModifyLastPostIcon'])
NotifyUpdateLastMessages($msgOptions, $topicOptions);
]]></add>
</operation>
</file>
<file name="$themedir/scripts/topic.js">
language.xml:Quote from: file language.xml
<file name="$languagedir/Modifications.french-utf8.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
// MOD Notify Modification Last Post
$txt['ModifyLastPostMail'] = 'Autoriser la notification par e-mail si le dernier message a été édité';
$txt['ModifyLastPostMail_sub'] = 'Envoyer une notification aux utilisateurs qui ont souscrits au fil de discussion';
$txt['ModifyLastPostBump'] = 'Marquer le fil de discussion si le dernier message a été édité';
$txt['ModifyLastPostBump_sub'] = 'Cette option affiche également l\'icône (voir option suivante)';
$txt['ModifyLastPostIcon'] = 'Afficher l\'icône "Nouveau"';
$txt['ModifyLastPostIcon_sub'] = 'Afficher l\'icône "Nouveau" si le dernier message a été modifié.';
$txt['notification_modify_subject'] = 'Réponse modifiée: %s';
$txt['notification_modify'] = 'Le dernier message, d\'un fil de discussion que vous suivez, a été modifié par %s.' . "\n\n" . 'Pour voir la réponse, aller à: ';]]></add>
</operation>
</file>
Quote from: file language.xml
<file name="$languagedir/Modifications.russian.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
// MOD Notify Modification Last Post - Translation by vika.vedy
$txt['ModifyLastPostMail'] = 'Включить email-уведомления при редактировании последнего сообщения';
$txt['ModifyLastPostMail_sub'] = 'Отправить уведомления пользователям, подписанным на тему';
$txt['ModifyLastPostBump'] = '"Поднять" тему после редактирования последнего сообщения';
$txt['ModifyLastPostBump_sub'] = 'Включение этой опции также позволяет показать соотв. иконку (см. следующую опцию)';
$txt['ModifyLastPostIcon'] = 'Показать иконку "Новое"';
$txt['ModifyLastPostIcon_sub'] = 'Показать иконку "Новое" для темы после редактирования последнего сообщения.';
$txt['notification_modify_subject'] = 'Ответ изменён: %s';
$txt['notification_modify'] = 'Последнее сообщение в теме, на которую Вы подписались, было изменено участником %s.' . "\n\n" . 'Посмотреть сообщение: ';]]></add>
</operation>
</file>
<file name="$languagedir/Modifications.russian-utf8.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
// MOD Notify Modification Last Post - Translation by vika.vedy
$txt['ModifyLastPostMail'] = 'Включить email-уведомления при редактировании последнего сообщения';
$txt['ModifyLastPostMail_sub'] = 'Отправить уведомления пользователям, подписанным на тему';
$txt['ModifyLastPostBump'] = '"Поднять" тему после редактирования последнего сообщения';
$txt['ModifyLastPostBump_sub'] = 'Включение этой опции также позволяет показать соотв. иконку (см. следующую опцию)';
$txt['ModifyLastPostIcon'] = 'Показать иконку "Новое"';
$txt['ModifyLastPostIcon_sub'] = 'Показать иконку "Новое" для темы после редактирования последнего сообщения.';
$txt['notification_modify_subject'] = 'Ответ изменён: %s';
$txt['notification_modify'] = 'Последнее сообщение в теме, на которую Вы подписались, было изменено участником %s.' . "\n\n" . 'Посмотреть сообщение: ';]]></add>
</operation>
</file>
package-info.xml:Quote from: file package-info.xml
<version>2.0</version>
Quote from: file package-info.xml
<install for="2.0 - 2.99.99">
<readme type="file" parsebbc="true">readme.txt</readme>
<modification format="xml" type="file">install_2.xml</modification>
<modification format="xml" type="file">languages.xml</modification>
<modification format="xml" type="file">emaillang.xml</modification>
<code type="file">install_2.php</code>
<redirect url="index.php?action=admin;area=postsettings;sa=posts" timeout="10000">redirect.txt</redirect>
</install>
readme.txt:Watch out the website modifies the following lines automatically, just edit readme.txt accordingly.
Quote from: file readme.txt
http://www.simplemachines.org Version 2.0
! Fix little bug in name of file JS and in russian lang.file
+ French-utf8 in the package
o v.2.0 Compatible with SMF 1.1.X & SMF 2.0.X & SMF 2.0 RC(3-5) (!!! Not compatible with SMF 2.0 RC(1-2))
I hope it helps... and once more, many thanks to Sapozhnik.
Hi,
are yo sure with the search Position after Statement (shown in green) ?
Quote from: WebAngel on July 08, 2013, 06:58:40 AM
install_2.xml:
The following changes are the ones making it compatible with SMF 2.0.x
Quote from: file install_2.xml.xml
<search position="after"><![CDATA[
$flag = $smcFunc['db_affected_rows']() != 0;
if (empty($flag))
]]></search>
<add><![CDATA[
if ($modSettings['ModifyLastPostMail'] || $modSettings['ModifyLastPostBump'] || $modSettings['ModifyLastPostIcon'])
NotifyUpdateLastMessages($msgOptions, $topicOptions);
]]></add>
</operation>
</file>
<file name="$themedir/scripts/topic.js">
I think there must be an } between.
Dont you think for 2.0.6 it should be like this ?
$flag = $smcFunc['db_affected_rows']() != 0;
}
if (empty($flag))
I believe this is in Section "// Mark inserted topic as read (only for the user calling this function)." which is previous used from the mod.
Or is it my personal difference in Subs-Post.php ?
Or am i false and it has to be in the Section "// Mark the edited post as read."
So realy have to use
$flag = $smcFunc['db_affected_rows']() != 0;
if (empty($flag)))
Hello, could anyone confirm petb post?
Also it would be great if there was a zip with all the changed files for 2.0, to be downloaded.
Did you try an install with the original Version ?
Yes I tried, and it gave me an error in few files. I have SMF 2.02.
Help, there is a package error when installing version 1.1 to SMF version 2.0.6.
The package error is at ./Sources/Sub-Post.php
I tried following the below command but it seems that the error still persist.
Code: (Find) [Select]
// Mark inserted topic as read.
Code: (Add Before) [Select]
if ($modSettings['ModifyLastPostMail'] || $modSettings['ModifyLastPostBump'] || $modSettings['ModifyLastPostIcon'])
NotifyUpdateLastMessages($msgOptions, $topicOptions);
Would appreciate your kind help.
Thanks,
Selvan
I'm looking into the same issue right now. Please give me a moment.
"// Mark inserted topic as read." is incomplete. Check what it's for you with an editor.
This is the command line on my side,
// Mark inserted topic as read (only for the user calling this function).
I have one file not found...
Which file can not be found?
./Themes/default/scripts/xml_topic.js
A file which was phased out years ago.
So, what should I do? Install with ignore the missing file?
Um... just think for a minute. If a mod was written for a 5 year old version of SMF such that files don't even EXIST now, does it sound like a good idea to try installing it? Heck, the version of SMF this was built for predates the Curve theme in SMF 2.x...
Quote from: NekoJonez on January 31, 2014, 08:20:46 AM
./Themes/default/scripts/xml_topic.js
Unpack NotifyModificationLastPost 1.3.zip then open (in Notepad++) install_2.xml
Find in line 155 this : <file name="$themedir/scripts/xml_topic.js"> and replace with <file name="$themedir/scripts/topic.js"> and save it.
Also, some changes are needed in this file:
Line 146 // Mark inserted topic as read. replace with // Mark inserted topic as read (only for the user calling this function). because this comment is modified in latest versions ( @mightyharimau have this problem )
Keep in mind this:
Quote from: Sir Cumber-Patcher on January 31, 2014, 09:15:53 AM
Um... just think for a minute. If a mod was written for a 5 year old version of SMF such that files don't even EXIST now, does it sound like a good idea to try installing it? Heck, the version of SMF this was built for predates the Curve theme in SMF 2.x...
Hey! I've seen better mods. But this is interested by me.
Quote from: Branko. on January 31, 2014, 10:22:13 AM
Quote from: NekoJonez on January 31, 2014, 08:20:46 AM
./Themes/default/scripts/xml_topic.js
Unpack NotifyModificationLastPost 1.3.zip then open (in Notepad++) install_2.xml
Find in line 155 this : <file name="$themedir/scripts/xml_topic.js"> and replace with <file name="$themedir/scripts/topic.js"> and save it.
Also, some changes are needed in this file:
Line 146 // Mark inserted topic as read. replace with // Mark inserted topic as read (only for the user calling this function). because this comment is modified in latest versions ( @mightyharimau have this problem )
Keep in mind this:
Quote from: Sir Cumber-Patcher on January 31, 2014, 09:15:53 AM
Um... just think for a minute. If a mod was written for a 5 year old version of SMF such that files don't even EXIST now, does it sound like a good idea to try installing it? Heck, the version of SMF this was built for predates the Curve theme in SMF 2.x...
Agreed with both of you. But I think this is a feature that belongs in SMF. Or is it already in SMF in the latest version?
No it is not in 2.0, since no major features were added after 2.0 RC1 when this was originally written.
I have no plans to add this in 2.1 even with the major overhaul of notifications.
So, which mod can we use to quick-bump posts?
Thanks.
Bump This Topic (http://www.smfsimple.com/index.php?action=downloads;sa=view;download=211)
Yeah, had the same issues, but even fixing them it doesn't work.
(Only saw this topic now :P)
Any other mod options for doing this? I don't want people to simply be able to bump things, I just want edits to mark something as unread and bump it :/