Pavulon87 Posted October 20, 2011 Posted October 20, 2011 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
connorhawke Posted October 21, 2011 Posted October 21, 2011 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.
connorhawke Posted November 5, 2011 Posted November 5, 2011 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!
alexp999 Posted November 5, 2011 Posted November 5, 2011 Another bug I have just noticed while confirming the above. Whenever I reply with quick reply, the ajax loaded post shows "History (2)"
alexp999 Posted November 5, 2011 Posted November 5, 2011 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.
connorhawke Posted November 6, 2011 Posted November 6, 2011 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.
alexp999 Posted November 6, 2011 Posted November 6, 2011 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.
Pavulon87 Posted November 7, 2011 Author Posted November 7, 2011 Ok, I'll check what is the problem with soft deleted post.
Pavulon87 Posted November 7, 2011 Author Posted November 7, 2011 Fast bug fix with Alex help. Also button in soft deleted posts should be available.
PSXHosting Ltd. Posted November 7, 2011 Posted November 7, 2011 Is it enough to upload the files or do I need to reimport the hook also?
alexp999 Posted November 7, 2011 Posted November 7, 2011 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.
connorhawke Posted November 7, 2011 Posted November 7, 2011 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.
Pavulon87 Posted November 7, 2011 Author Posted November 7, 2011 Reimport is required but nothing should be deleted. Current history might be removed only during uninstallation.
alexp999 Posted November 7, 2011 Posted November 7, 2011 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.
connorhawke Posted November 8, 2011 Posted November 8, 2011 Reimport is required but nothing should be deleted. Current history might be removed only during uninstallation. How do I re-import the hook?
Pavulon87 Posted November 8, 2011 Author Posted November 8, 2011 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
Bartek Posted December 8, 2011 Posted December 8, 2011 Qestion: Does it keep history of posts changed by moderators or only history of the user's posts that owners made?
Pavulon87 Posted December 8, 2011 Author Posted December 8, 2011 It does not matter who edits the post. History of all editing is stored.
Richard.C Posted December 19, 2011 Posted December 19, 2011 can this mod be extended to allow members to save draft copies of posts before they are posted? eg: [save draft] [more reply options]
Pavulon87 Posted December 20, 2011 Author Posted December 20, 2011 I think that it's rather an idea of the new hook than new feature.
Richard.C Posted December 20, 2011 Posted December 20, 2011 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
Pavulon87 Posted December 20, 2011 Author Posted December 20, 2011 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
Sparxy Posted January 1, 2012 Posted January 1, 2012 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.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.