Posted October 20, 201113 yr File Name: (Pav32) Post HistoryFile Submitter: Pavulon87File Submitted: 20 Oct 2011File Updated: 19 Mar 2012File Category: Hooks and Plugins This modification allows you to log posts editing. Each edition is saved in a database for subsequent review or restore it. You can view the differences between consecutive editions. Old editions are systematically deleted. Also availble on: http://forum.invisio...2-post-history/Click here to download this file
October 21, 201113 yr As I said at invisionize.pl, excellent mod. :) For anyone who is wondering, you can turn off systematic deletion if you want by disabling the relevant system task. This wasn't mentioned in the description at the time of writing.
November 5, 201113 yr Notable Bug! The "History" button disappears on a post if there is a post before it in the thread that is in-line "soft deleted" (i.e. using the "Remove From View" option). Example: POST 1 (edited) - history button appears POST 2 (soft-deleted) POST 3 (edited) - history button disappears Therefore it can be a hassle to determine if there are post edits (or to view said post edits) for a post that has soft-deleted posts preceding it. Please fix!
November 5, 201113 yr Another bug I have just noticed while confirming the above. Whenever I reply with quick reply, the ajax loaded post shows "History (2)"
November 5, 201113 yr Just to say that I have now fixed the bug I was having and I also fixed +++'s bug with soft deleted posts. It took quite a re-write of the button hook, so I cant post it up very easily. Pavulon87, maybe you can PM me and I will send you the modified version + explanation.
November 6, 201113 yr Another bug I have just noticed while confirming the above. Whenever I reply with quick reply, the ajax loaded post shows "History (2)" Yeah, I noticed that as well. Also, this is not a bug, but I would really like for the author to consider this: In the previous version, since the "History" button was on the bar at the top of the post instead of its current location, it was possible to click on that button for soft-deleted posts as well. However, in the current version, while a post is soft-deleted, the button does not appear. So if you could also keep the button in for soft-deleted posts, such that post edit histories may also be viewed for posts while they are soft-deleted, that would be fantastic. Thanks.
November 6, 201113 yr The problem with soft deleted posts is that the hook point doesn't exist. So it would mean either a setting to move it completely or a lot of coding to vary the hook point for soft deleted posts. I will take a look though.
November 7, 201113 yr Author Fast bug fix with Alex help. Also button in soft deleted posts should be available.
November 7, 201113 yr Is it enough to upload the files or do I need to reimport the hook also? You should be able to just reimport the hook, files are unchanged afaik.
November 7, 201113 yr Is it enough to upload the files or do I need to reimport the hook also? I think you might need to re-import the hook.
November 7, 201113 yr Author Reimport is required but nothing should be deleted. Current history might be removed only during uninstallation.
November 7, 201113 yr Hi Pavulon, just a quick request, could you add an additional class to the <ul class="post_controls"> thats wrapped around the history button for soft deleted posts? e.g. <ul class="post_controls post_history"> It looks kinda screwy in the skin im using, so I need to add some css rules. Thanks.
November 8, 201113 yr Reimport is required but nothing should be deleted. Current history might be removed only during uninstallation. How do I re-import the hook?
November 8, 201113 yr Author Hi Pavulon, just a quick request, could you add an additional class to the <ul class="post_controls"> thats wrapped around the history button for soft deleted posts? e.g. <ul class="post_controls post_history"> It looks kinda screwy in the skin im using, so I need to add some css rules. Thanks. Done. How do I re-import the hook? Just install it one more time without uninstalling.ACP > Applications & Modules > Manage Hooks > Install a New Hook > Install
December 8, 201113 yr Qestion: Does it keep history of posts changed by moderators or only history of the user's posts that owners made?
December 8, 201113 yr Author It does not matter who edits the post. History of all editing is stored.
December 19, 201113 yr can this mod be extended to allow members to save draft copies of posts before they are posted? eg: [save draft] [more reply options]
December 20, 201113 yr I think that it's rather an idea of the new hook than new feature. ahh, given your knowledge on this current hook, I didn't know if it could be added as a feature or whether you would be able to write a new hook for "save draft post/pm" ? I know a few people would be interested :) regards Richard
December 20, 201113 yr Author Maybe after the Christmas (and the new year) I'll take it, but I'm not promising anything. I'm taking some free time from coding :D
January 1, 201213 yr Hiya Is this compatible with 3.2.3? For some reason, I can't see the history button at all, although I've followed the installation and configuration instructions. The button just isn't there, even in the default skin.
Archived
This topic is now archived and is closed to further replies.