• Welcome to Simple Machines Community Forum. Please login or sign up.
January 28, 2022, 03:11:00 PM

News:

SMF 2.0.19 has been released! Please update. Read more.


Post History

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

Previous topic - Next topic

DirtRider

Installed it on RC2 shows it is active in Core Features however I don't see the option in the post at all. Is there a setting I am missing
http://www.triumphtalk.com

"The real question is not whether machines think but whether men do. "

DirtRider

Quote from: DirtRider on December 02, 2009, 09:26:11 AM
Installed it on RC2 shows it is active in Core Features however I don't see the option in the post at all. Is there a setting I am missing

Not too worry I have killed the mod seeing it does not seem to work
http://www.triumphtalk.com

"The real question is not whether machines think but whether men do. "

Nibogo

The mod is working great for me, the problem is that the button don't appear, you can click just after the Split Topic button.

So instead of put it back I just make that I can see the post history in the "  « Last Edit: December 03, 2009, 11:37:20 PM by NIBOGO »"

Great job Niko! :)

niko

New version released:

Better curve theme, now link is Last Edit line if it's enabled, otherwise it will show link in same place.
Popup is used if possible instead of loading whole new page.
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

Nibogo

December 04, 2009, 07:56:43 PM #44 Last Edit: December 04, 2009, 08:00:32 PM by NIBOGO
Quote from: Niko on December 04, 2009, 07:29:12 PM
New version released:

Better curve theme, now link is Last Edit line if it's enabled, otherwise it will show link in same place.
Popup is used if possible instead of loading whole new page.

Works like a charm!

Thanks Niko

For all the people with the "Reason for Edit" Mod you must edit the part of the Post History Mod on Display.template.php with this code:

// Show last edit + has history?
if ($settings['show_modify'] && !empty($message['modified']['name']) && $message['can_see_history'] && $message['has_history'])
echo '
<a href="', $scripturl, '?action=posthistory;topic=', $context['current_topic'], '.0;msg=', $message['id'], '" onclick="return reqWin(this.href + \';popup\');">&#171; <em>', $txt['last_edit'], ': ', $message['modified']['time'], ' ', $txt['by'], ' ', $message['modified']['name'], ' ', !empty($message['modified']['edit_reason']) ? ', '.$txt['reason'].': ' . $message['modified']['edit_reason'] : '' , '</em> &#187;</a>';
// No last edit but history?
elseif ($message['can_see_history'] && $message['has_history'])
echo '
<a href="', $scripturl, '?action=posthistory;topic=', $context['current_topic'], '.0;msg=', $message['id'], '" onclick="return reqWin(this.href + \';popup\');">&#171; <em>', $txt['view_post_history'], '</em> &#187;</a>';
// or ..last edit but no history?
elseif ($settings['show_modify'] && !empty($message['modified']['name']))
echo '
&#171; <em>', $txt['last_edit'], ': ', $message['modified']['time'], ' ', $txt['by'], ' ', $message['modified']['name'], ' ', !empty($message['modified']['edit_reason']) ? ', '.$txt['reason'].': ' . $message['modified']['edit_reason'] : '' , '</em> &#187;';


Would be nice if you include support for the Reason for Edit Mod, it's a very used mod and as soon as I have time I'll add support on that mod for the Post History, the problem goes when someone has the Reason for Edit Mod installed and try to install this mod.

dakpluto

Quote from: dakpluto on November 15, 2009, 08:29:54 AM

And I agree with above on the location.  And the most ideal would be like Vbullitien and make the "last edit by" line clickable to the post history.


!!!!!   Thank you, Thank you, Thank you!

Joker™

do i have to enable any option to make it to work ....

it installed without any errors but i cant see any post history in edited posts anywhere
Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

scimmiotto

December 06, 2009, 03:39:25 AM #47 Last Edit: December 06, 2009, 03:55:25 AM by scimmiotto
Hi niko

i've just installed your mod but...where to manage it? and where old post are shown? i cannot see them.

tnx a lot!

Edit: ok i saw that we must click on "last modify" to see the last posts...but where is the administration part?

2nd edit: ok i saw that this administration part is in members permissions.

Tnx a lot, very useful mod  ;D
Loop code example:
The following statement is FALSE
The previous statement is TRUE.

Joker™

i made the permissions part but still how to see the last edited posts in posts

QuoteEdit: ok i saw that we must click on "last modify" to see the last posts...but where is the administration part?

i cant see any last modify thing in my posts
Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

scimmiotto

u must modify a post, AFTER installing the package. Now u will see the string as a link to other posts:

[img=http://s1.postimage.org/bN8dA.jpg]
Loop code example:
The following statement is FALSE
The previous statement is TRUE.

Joker™

Quote from: scimmiotto on December 06, 2009, 04:34:25 AM
u must modify a post, AFTER installing the package. Now u will see the string as a link to other posts:

[img=http://s1.postimage.org/bN8dA.jpg]


thanx for replies .... i thought i will work on old post .... bad from me

it working on my side now ..... thanx once again
Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

scimmiotto

no problem, we are all here to help each other :)
Loop code example:
The following statement is FALSE
The previous statement is TRUE.

Boby_

Very good mod!  Thanks a lot! :)

Is there a chance to implement a "Switch to old version of an edited post" feature in the next versions? :)

Eliana Tamerin

Quote from: Boby_ on December 10, 2009, 05:41:24 AM
Very good mod!  Thanks a lot! :)

Is there a chance to implement a "Switch to old version of an edited post" feature in the next versions? :)

Personally I'd just prefer a Quote button on those history pages.
Do NOT PM me for support.

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

t3ngu

Sorry to ask the same question, but I can't find where to edit the permission setting that everyone's talking about. I made a new post and tried to edit it, but the "last editted by" link won't show up.

I'd really like to get this mod to work, thanks in advance.

scimmiotto

are there any admin settings in this mod? i cannot see where they are.
Loop code example:
The following statement is FALSE
The previous statement is TRUE.

niko

Quote from: scimmiotto on December 19, 2009, 05:05:59 AM
are there any admin settings in this mod? i cannot see where they are.

No, there are no settings apart from disable or enable. What settings are you looking for?

Next version will have also ability to view diff. See attachment for sneak peek. (It won't parse code in this case)
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

Eliana Tamerin

Niko, I was wondering, any chance to have a quote button or way to access the bbc version of the Edit, so that any malicious edits can be reversed?
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 December 27, 2009, 11:41:52 AM
Niko, I was wondering, any chance to have a quote button or way to access the bbc version of the Edit, so that any malicious edits can be reversed?

Yes. This is another feature added in next version :)

Also if anyone wants to translate, currently only Finnish and English are up to date.

Turkish translation needs updating:

// 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'] = 'İletiyi Görüntüle';

$txt['ph_original_edit'] = 'Orjinal';
$txt['ph_current_edit'] = 'Şuanki';
$txt['ph_current_original_edit'] = 'şuanki, original';

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

// !!! Untranslated
$txt['compare_selected'] = 'Compare Selected';
// !!! Untranslated
$txt['restore'] = 'Restore';

$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 Konusunu';
$txt['permissionname_posthistory_view_any'] = 'Herhangibir Konuyu';
// !!! Untranslated
$txt['permissionname_posthistory_restore'] = 'Restore older version';
// !!! Untranslated
$txt['permissionhelp_posthistory_restore'] = 'Allows user to start editing from older version of post.';
// !!! Untranslated
$txt['permissionname_posthistory_restore_own'] = 'Own post';
// !!! Untranslated
$txt['permissionname_posthistory_restore_any'] = 'Any post';
$txt['permissionname_simple_posthistory_view_own'] = 'Kendi İletilerinin geçmişini düzenleme';
$txt['permissionname_simple_posthistory_view_any'] = 'Herhangibir İletinin geçmişini düzenleme';
// !!! Untranslated
$txt['permissionname_simple_posthistory_restore_own'] = 'Restore older version of own post';
// !!! Untranslated
$txt['permissionname_simple_posthistory_restore_any'] = 'Restore older versions of someone else\'s post';

$txt['cannot_posthistory_view_any'] = 'Bu yazının ileti geçmişi görünmesin!';
// !!! Untranslated
$txt['cannot_posthistory_restore_own'] = 'You are not allowed to start editing from older version of your posts!';
// !!! Untranslated
$txt['cannot_posthistory_restore_any'] = 'You are not allowed to start editing from older version of someone else\'s post!';
// Post History END


Or translate into new language:

// Post History Start
$txt['core_settings_item_posthistory'] = 'Post History';
$txt['core_settings_item_posthistory_desc'] = 'Store history of edits of message content into database.';

$txt['view_post_history'] = 'View Edits of Post';
$txt['title_view_post_history'] = 'Viewing Post History for - %1$s';

$txt['ph_last_edit'] = 'Latest Edit By';
$txt['ph_last_time'] = 'Edit Time';
$txt['ph_view_edit'] = 'View Post';

$txt['ph_original_edit'] = 'original';
$txt['ph_current_edit'] = 'current';
$txt['ph_current_original_edit'] = 'current, original';

$txt['ph_no_edits'] = 'No one has edited this post yet';

$txt['compare_selected'] = 'Compare Selected';
$txt['restore'] = 'Restore';

$txt['permissionname_posthistory_view'] = 'View Edit History of Post';
$txt['permissionhelp_posthistory_view'] = 'Allows user to view past versions of post.';
$txt['permissionname_posthistory_view_own'] = 'Own post';
$txt['permissionname_posthistory_view_any'] = 'Any post';
$txt['permissionname_posthistory_restore'] = 'Restore older version';
$txt['permissionhelp_posthistory_restore'] = 'Allows user to start editing from older version of post.';
$txt['permissionname_posthistory_restore_own'] = 'Own post';
$txt['permissionname_posthistory_restore_any'] = 'Any post';
$txt['permissionname_simple_posthistory_view_own'] = 'View edit history of their own post';
$txt['permissionname_simple_posthistory_view_any'] = 'View edit history of someone else\'s post';
$txt['permissionname_simple_posthistory_restore_own'] = 'Restore older version of own post';
$txt['permissionname_simple_posthistory_restore_any'] = 'Restore older versions of someone else\'s post';

$txt['cannot_posthistory_view_any'] = 'You are not allowed to view history of this post!';
$txt['cannot_posthistory_restore_own'] = 'You are not allowed to start editing from older version of your posts!';
$txt['cannot_posthistory_restore_any'] = 'You are not allowed to start editing from older version of someone else\'s post!';
// Post History END
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

Alpay

New Turkish Translation * Niko :

// 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'] = 'İletiyi Görüntüle';

$txt['ph_original_edit'] = 'Orjinal';
$txt['ph_current_edit'] = 'Şuanki';
$txt['ph_current_original_edit'] = 'şuanki, original';

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


$txt['compare_selected'] = 'Seçilenleri karşılaştırın';

$txt['restore'] = 'Eski Hali';

$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 Konusunu';
$txt['permissionname_posthistory_view_any'] = 'Herhangibir Konuyu';

$txt['permissionname_posthistory_restore'] = 'İletinin önceki halini düzenleyebilir.';

$txt['permissionhelp_posthistory_restore'] = 'İletinin önceki halini düzenleyebilir.';

$txt['permissionname_posthistory_restore_own'] = 'Kendi İletisini';

$txt['permissionname_posthistory_restore_any'] = 'Herhangi bir iletiyi';
$txt['permissionname_simple_posthistory_view_own'] = 'Kendi İletilerinin geçmişini düzenleme';
$txt['permissionname_simple_posthistory_view_any'] = 'Herhangibir İletinin geçmişini düzenleme';

$txt['permissionname_simple_posthistory_restore_own'] = 'Kendi iletisinin İletinin geçmişini düzenleyebilir';

$txt['permissionname_simple_posthistory_restore_any'] = 'Herhangibir İletinin İletinin geçmişini düzenleyebilir';

$txt['cannot_posthistory_view_any'] = 'Bu yazının ileti geçmişi görüntüleyemezsiniz!';

$txt['cannot_posthistory_restore_own'] = 'Bu İletinin ileti geçmişini düzenleyemezsiniz!';

$txt['cannot_posthistory_restore_any'] = 'Herhangibir İletinin İletinin geçmişini düzenleyemezsiniz!';
// Post History END

Advertisement: