Advertisement:
NameCheap

Author Topic: Post History  (Read 39165 times)

Offline niko

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 2,003
  • Gender: Male
    • Madjoki
Post History
« on: May 23, 2009, 01:02:36 AM »
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.
« Last Edit: March 16, 2012, 01:54:04 PM by Niko »

Offline Blinker

  • Full Member
  • ***
  • Posts: 472
  • Gender: Male
Re: Post History
« Reply #1 on: May 23, 2009, 01:21:51 AM »
This is exactly what I was looking for Niko. Any chance of 1.1x compatibility??

Offline Eliana Tamerin

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 5,507
  • Gender: Female
Re: Post History
« Reply #2 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.
Do NOT PM me for support.

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

Offline Joe N

  • Sr. Member
  • ****
  • Posts: 815
  • Gender: Male
  • Need An Avatar Pack? Send Me A PM!
    • The Chill Band Forum
Re: Post History
« Reply #3 on: May 23, 2009, 04:04:41 AM »
Nice Mod Niko!
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!


Offline A.SK

  • Sophist Member
  • *****
  • Posts: 1,191
  • Gender: Male
  • SMF is the best forum tool
    • IT Acumens - A Edu Community
Re: Post History
« Reply #4 on: May 23, 2009, 05:29:37 AM »
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  -  Demo Smf forum : Chat ITAcumens

Offline D.S

  • Jr. Member
  • **
  • Posts: 133
    • ILLIMITED LCC WEBHOSTING
Re: Post History
« Reply #5 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 ..

Offline Joe N

  • Sr. Member
  • ****
  • Posts: 815
  • Gender: Male
  • Need An Avatar Pack? Send Me A PM!
    • The Chill Band Forum
Re: Post History
« Reply #6 on: May 23, 2009, 09:47:03 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...

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!


Offline M-DVD

  • SMF Hero
  • ******
  • Posts: 1,650
  • Gender: Male
  • Step by step will update the mods to SMF 2RC2
Re: Post History
« Reply #7 on: May 23, 2009, 11:02:29 AM »
Good MOD, very very usefull :P


Offline D.S

  • Jr. Member
  • **
  • Posts: 133
    • ILLIMITED LCC WEBHOSTING
Re: Post History
« Reply #9 on: May 23, 2009, 06:03:07 PM »
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...

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

Offline Alpay

  • Language Moderator
  • SMF Hero
  • *
  • Posts: 3,457
  • Gender: Male
    • Personal Web Page
Re: Post History
« Reply #10 on: May 24, 2009, 05:32:42 AM »
Hi :)

Turkish translate..

Modifications.turkish.php ;
Code: [Select]
// 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

Offline niko

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 2,003
  • Gender: Male
    • Madjoki
Re: Post History
« Reply #11 on: May 24, 2009, 04:54:23 PM »
Hi :)

Turkish translate..

Modifications.turkish.php ;
Code: [Select]
// 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)

Offline Nibogo

  • SMF Hero
  • ******
  • Posts: 6,545
  • Gender: Male
    • smfpacks on Facebook
    • @smfpacks on Twitter
    • SMFPacks
Re: Post History
« Reply #12 on: May 25, 2009, 06:50:30 PM »
Niko I love this mod works really great in my localhost, but I want to suggest one feature, compare the posts, just like the SMF Wiki

Thanks

Offline Oleg Vereshchagin

  • Newbie
  • *
  • Posts: 5
  • Gender: Male
    • Pesniary
Re: Post History
« Reply #13 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 "?????????????????????".

Offline Eliana Tamerin

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 5,507
  • Gender: Female
Re: Post History
« Reply #14 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.
Do NOT PM me for support.

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

Offline niko

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 2,003
  • Gender: Male
    • Madjoki
Re: Post History
« Reply #15 on: May 28, 2009, 03:30:42 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).

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

Are tables in correct character set?

Offline Oleg Vereshchagin

  • Newbie
  • *
  • Posts: 5
  • Gender: Male
    • Pesniary
Re: Post History
« Reply #16 on: May 29, 2009, 04:37:37 AM »
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.

Offline niko

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 2,003
  • Gender: Male
    • Madjoki
Re: Post History
« Reply #17 on: May 29, 2009, 05:56:58 AM »
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)

Offline niko

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 2,003
  • Gender: Male
    • Madjoki
Re: Post History
« Reply #18 on: June 04, 2009, 04:07:18 AM »
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).

Offline niko

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 2,003
  • Gender: Male
    • Madjoki
Re: Post History
« Reply #19 on: September 12, 2009, 05:29:34 AM »
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.