News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Post History

Started by niko, May 23, 2009, 01:02:36 AM

Previous topic - Next topic

niko

Link to Mod

Allows to store old versions of posts and viewing edit history of post.
Permission can be set either to own or all posts and it's set by board.

Features

       
  • Save version of post when edited
  • Compare changes between versions
  • Restore old version if needed
  • Uses hooks to minimize edits needed to
Supported versions: SMF 2.0.x (Tested up to 2.0.2)
Version: 1.0.3 (16.03.2012)
Languages included: English, Finnish, Turkish
Links: SMF Modification Site, Support Topic, Github

License
Copyright (c) 2012, Niko Pahajoki
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
* Neither the name of the Niko Pahajoki nor the
names of its contributors may be used to endorse or promote products
derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL Niko Pahajoki BE LIABLE FOR ANY
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Websites: Madjoki || (2 links retracted by team, links out of date and taken over.)
Mods: SMF Arcade, Related topics, SMF Project Tools, Post History

WIP Mods: Bittorrent Tracker || SMF Wiki

Blinker

This is exactly what I was looking for Niko. Any chance of 1.1x compatibility??

Eliana Tamerin

Oh wow, Niko, you are amazing. This is exactly the kind of useful mod that we need more of for SMF 2, just simple little mods that add uniquely useful features that SMF would never natively include.

Oh, and Blinker, if you need this feature on SMF 1.1.x, then use this mod instead: http://custom.simplemachines.org/mods/index.php?mod=1007. It adds a 'delete spam post' feature as well, which overwrites the message's content with the spam message, but has the optional side effect of recording all edits of posts in the Recycle Bin.
Do NOT PM me for support.

SimplePortal 2.3.6 is OUT!
SimplePortal Project Manager
Download | Docs
SimplePortal: Power of Simplicity!

Joe N

Microsoft: "We Need to Imagine Life Without Walls."
I Say: "If There are No Walls Who needs Windows."



My Mods (6) All My Mods Updated To SMF 2.0 RC2 and SMF 1.1.10!


Sudhakar Arjunan

Good mod niko.

History of post would be so helpful for all forum owner as an added features.
Working on New Mods & Themes for SMF... Will update soon... My Blog page
My Smf forum : Discuss ITAcumens :: My SMF Forum

D.S

Post History is amazing mod, but I have 1.1.x version ,  Any chance of 1.1.x compatibility??
thank u Niko ..

Joe N

Quote from: D.S on May 23, 2009, 09:44:28 AM
Post History is amazing mod, but I have 1.1.x version ,  Any chance of 1.1.x compatibility??
thank u Niko ..

Ever read the replies...

Quote from: Eliana Tamerin on May 23, 2009, 01:57:35 AM
Oh wow, Niko, you are amazing. This is exactly the kind of useful mod that we need more of for SMF 2, just simple little mods that add uniquely useful features that SMF would never natively include.

Oh, and Blinker, if you need this feature on SMF 1.1.x, then use this mod instead: http://custom.simplemachines.org/mods/index.php?mod=1007. It adds a 'delete spam post' feature as well, which overwrites the message's content with the spam message, but has the optional side effect of recording all edits of posts in the Recycle Bin.
Microsoft: "We Need to Imagine Life Without Walls."
I Say: "If There are No Walls Who needs Windows."



My Mods (6) All My Mods Updated To SMF 2.0 RC2 and SMF 1.1.10!


M-DVD

Good MOD, very very usefull :P


D.S

Quote from: Joe N on May 23, 2009, 09:47:03 AM
Quote from: D.S on May 23, 2009, 09:44:28 AM
Post History is amazing mod, but I have 1.1.x version ,  Any chance of 1.1.x compatibility??
thank u Niko ..

Ever read the replies...

Quote from: Eliana Tamerin on May 23, 2009, 01:57:35 AM
Oh wow, Niko, you are amazing. This is exactly the kind of useful mod that we need more of for SMF 2, just simple little mods that add uniquely useful features that SMF would never natively include.

Oh, and Blinker, if you need this feature on SMF 1.1.x, then use this mod instead: http://custom.simplemachines.org/mods/index.php?mod=1007. It adds a 'delete spam post' feature as well, which overwrites the message's content with the spam message, but has the optional side effect of recording all edits of posts in the Recycle Bin.


thank u for attract attention

Alpay

Hi :)

Turkish translate..

Modifications.turkish.php ;

// Post History Start
$txt['core_settings_item_posthistory'] = 'İleti Geçmişi';
$txt['core_settings_item_posthistory_desc'] = 'Veritabanında ki İleti geçmişleri.';

$txt['view_post_history'] = 'İleti Geçmişini Görüntüle';
$txt['title_view_post_history'] = 'İleti Geçmişi Görüntüleniyor - %1$s';

$txt['ph_last_edit'] = 'Son Düzenleme';
$txt['ph_last_time'] = 'Düzenleme Zamanı';
$txt['ph_view_edit'] = 'Mesajı Görüntüle';

$txt['ph_no_edits'] = 'Konuda henüz bir düzenleme yok';

$txt['permissionname_posthistory_view'] = 'İleti düzenleme geçmişini görüntüle';
$txt['permissionhelp_posthistory_view'] = 'Eski İleti geçmişini görüntüle';
$txt['permissionname_posthistory_view_own'] = 'Kendi Konusu';
$txt['permissionname_posthistory_view_any'] = 'Herhangibir Konuyu';
$txt['permissionname_simple_posthistory_view_own'] = 'Kendi İleti geçmişini düzenleme';
$txt['permissionname_simple_posthistory_view_any'] = 'Herhangibir İleti geçmişini düzenleme';

$txt['cannot_posthistory_view_any'] = 'Bu yazının İleti geçmişi görünmesin!';
// Post History END

niko

Quote from: Alpay on May 24, 2009, 05:32:42 AM
Hi :)

Turkish translate..

Modifications.turkish.php ;

// Post History Start
$txt['core_settings_item_posthistory'] = 'İleti Geçmişi';
$txt['core_settings_item_posthistory_desc'] = 'Veritabanında ki İleti geçmişleri.';

$txt['view_post_history'] = 'İleti Geçmişini Görüntüle';
$txt['title_view_post_history'] = 'İleti Geçmişi Görüntüleniyor - %1$s';

$txt['ph_last_edit'] = 'Son Düzenleme';
$txt['ph_last_time'] = 'Düzenleme Zamanı';
$txt['ph_view_edit'] = 'Mesajı Görüntüle';

$txt['ph_no_edits'] = 'Konuda henüz bir düzenleme yok';

$txt['permissionname_posthistory_view'] = 'İleti düzenleme geçmişini görüntüle';
$txt['permissionhelp_posthistory_view'] = 'Eski İleti geçmişini görüntüle';
$txt['permissionname_posthistory_view_own'] = 'Kendi Konusu';
$txt['permissionname_posthistory_view_any'] = 'Herhangibir Konuyu';
$txt['permissionname_simple_posthistory_view_own'] = 'Kendi İleti geçmişini düzenleme';
$txt['permissionname_simple_posthistory_view_any'] = 'Herhangibir İleti geçmişini düzenleme';

$txt['cannot_posthistory_view_any'] = 'Bu yazının İleti geçmişi görünmesin!';
// Post History END


Thanks! Will include in next version (working on new build system which can handle multiple languages)
Websites: Madjoki || (2 links retracted by team, links out of date and taken over.)
Mods: SMF Arcade, Related topics, SMF Project Tools, Post History

WIP Mods: Bittorrent Tracker || SMF Wiki


Oleg Vereshchagin

I have problems using this mod with russian-language-forum (cp1251). Some messages in post history see like "?????????????????????".

Eliana Tamerin

Niko, feature suggestion:

Only display the button if the post in question has edits recorded. It would save space on the display template, as most posts on my sites go unedited. This could be cached to save on queries.
Do NOT PM me for support.

SimplePortal 2.3.6 is OUT!
SimplePortal Project Manager
Download | Docs
SimplePortal: Power of Simplicity!

niko

Quote from: Eliana Tamerin on May 28, 2009, 02:41:47 PM
Niko, feature suggestion:

Only display the button if the post in question has edits recorded. It would save space on the display template, as most posts on my sites go unedited. This could be cached to save on queries.

Will be in next version (0.2).

Quote from: Oleg Vereshchagin on May 26, 2009, 03:12:19 PM
I have problems using this mod with russian-language-forum (cp1251). Some messages in post history see like "?????????????????????".

Are tables in correct character set?
Websites: Madjoki || (2 links retracted by team, links out of date and taken over.)
Mods: SMF Arcade, Related topics, SMF Project Tools, Post History

WIP Mods: Bittorrent Tracker || SMF Wiki

Oleg Vereshchagin

Quote from: Niko on May 28, 2009, 03:30:42 PM
Quote from: Oleg Vereshchagin on May 26, 2009, 03:12:19 PM
I have problems using this mod with russian-language-forum (cp1251). Some messages in post history see like "?????????????????????".

Are tables in correct character set?
You are right. The table smf_messages_history was in the Swedish coding.

niko

Quote from: Oleg Vereshchagin on May 29, 2009, 04:37:37 AM
Quote from: Niko on May 28, 2009, 03:30:42 PM
Quote from: Oleg Vereshchagin on May 26, 2009, 03:12:19 PM
I have problems using this mod with russian-language-forum (cp1251). Some messages in post history see like "?????????????????????".

Are tables in correct character set?
You are right. The table smf_messages_history was in the Swedish coding.

It means that your database is set to Swedish (mysql default) encoding. Select database and in Operations tab change collation to Russian and all new tables will use Russian encoding. (although it shouldn't cause errors, I recommend backing up before change)
Websites: Madjoki || (2 links retracted by team, links out of date and taken over.)
Mods: SMF Arcade, Related topics, SMF Project Tools, Post History

WIP Mods: Bittorrent Tracker || SMF Wiki

niko

Here's translation files for next version. Some new strings.

There is full translation for Finnish language already.
Partial Turkish translation of Alpay included with new strings added for translation.

Make sure you save files as UTF-8 without BOM (byteorder mark).
Websites: Madjoki || (2 links retracted by team, links out of date and taken over.)
Mods: SMF Arcade, Related topics, SMF Project Tools, Post History

WIP Mods: Bittorrent Tracker || SMF Wiki

niko

0.2 Beta 1 has been added to mod site.

Changelog
0.2

       
  • Current version is now shown in list of edits
  • Added markers for original version and current edit

SMF 2.0 RC1.2 tested and supported.
Websites: Madjoki || (2 links retracted by team, links out of date and taken over.)
Mods: SMF Arcade, Related topics, SMF Project Tools, Post History

WIP Mods: Bittorrent Tracker || SMF Wiki

Advertisement: