MyBB Community Forums

Full Version: Mark Edited as Unread / Edit Reason
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5
Version 1.7:
- edit reason is now independent option
- edit reason can be displayed on showthread (lexy idea)
- admin can choose how to check posts similarity - chars difference or % (percent) of similarity

New version is avaiting validation in Mods DB.
(2011-08-22, 06:13 PM)lukasamd Wrote: [ -> ]Version 1.7:
- edit reason is now independent option
- edit reason can be displayed on showthread (lexy idea)
- admin can choose how to check posts similarity - chars difference or % (percent) of similarity

New version is avaiting validation in Mods DB.

With this plugin you killed two birds, the first is no need for the bb codes the reason for the edit post, another member can now see why it changed their post in a conspicuous place
Thanks for this plugin give you Rep.
oK i found some bugs?? when do quick edit there no reason for edit shown in showthread
with full edit reason its visible see attach
I forgot update changes_files.txt.
Change in thread.js:

// START - Mark Edited as Unread
markEditedAsUnread_field = document.getElementById('markEditedAsUnread_reason');
if (markEditedAsUnread_field != undefined)
{
    markEditedAsUnread_reason = $(markEditedAsUnread_field).value;
    postData = "markEditedAsUnread_reason="+markEditedAsUnread_reason+"&value="+encodeURIComponent(message).replace(/\+/g, "%2B");
}
else
{
    postData = "value="+encodeURIComponent(message).replace(/\+/g, "%2B");
}
// END - Mark Edited as Unread

to this:

// START - Mark Edited as Unread
markEdited_field = document.getElementById('markEdited_reason');
if (markEdited_field != undefined)
{
    markEdited_reason = $(markEdited_field).value;
    postData = "markEdited_reason="+markEdited_reason+"&value="+encodeURIComponent(message).replace(/\+/g, "%2B");
}
else
{
    postData = "value="+encodeURIComponent(message).replace(/\+/g, "%2B");
}
// END - Mark Edited as Unread

But of course, edit reason will be displayed after page refresh (there is no hook in xmlhttp to make it in ajax).
now works like charm
Version 1.8:
- Compatible with MyBB 1.6.5

You can download it from first post in this thread or from mods DB.
How about Custom reason?
Instead of having a hardcoded reason, let users decide the cause of the post edit.
Maybe in next version, but there is a little problem.
If you decided to allow users write post edit reason, you can't determine which of them should mark post as unread.
Most likely, I'll add option to always / never mark posts as unread if user write edit reason.
who can use this plugin only admin or all user
also see attach can be done to edit reason be visible next to the theme names
(2011-12-07, 08:24 AM)lukasamd Wrote: [ -> ]Version 1.8:
- Compatible with MyBB 1.6.5

Thank you for updating the plugin, Lukasamd! I really appreciate it. Smile

Does the plugin needs to be deactivated before replacing the files or can I replace the files without deactivating?

Thank you in advance.
I recommend reinstall plugin (uninstall old, upload new files and install).
Pages: 1 2 3 4 5