Robbo
Well-known member
This is the first release of the MercenaryDesign Edit History add-on. It is in a workable state but missing various planned features which will be listed below. Post edit history works well which is the main aim for this add-on.NOTE TO BIG BOARD ADMINS: this add-on adds 4 columns to xf_post which will be one of your largest, if not largest, table in your database so this can take some time so I recommend doing it manually.
Simply run these 4 queries before installing:
Code:
ALTER TABLE xf_post ADD COLUMN edit_count INT UNSIGNED DEFAULT 0 NOT NULL;
ALTER TABLE xf_post ADD COLUMN last_edit_username VARCHAR(50) DEFAULT '' NOT NULL;
ALTER TABLE xf_post ADD COLUMN last_edit_user_id INT UNSIGNED DEFAULT 0 NOT NULL;
ALTER TABLE xf_post ADD COLUMN last_edit_date INT UNSIGNED DEFAULT 0 NOT NULL;
Features
- permissions to view own posts edit history and all posts edit history
- option to delay logging message history for quick edits after first post. Option is in ACP -> Options -> Messages
- shows last edit date and user to everyone
- when the last edit date/user string is clicked a list of edits will be shown by sliding in below the post. Then you can show a single post which will load in place of the edited message. Raw contents can also be shown to show BBCode
- the code is a modular design to allow it to be easily extended, for example template edits are planned to use a similar system in the near future
- various template tweaks and small bug fixes
- permission system to include content permissions
- reverting an edit
- vBulletin importer
- template edit history - including from add-on and XenForo upgrades
- a lot of code changes, not very happy with the code base at all
- template changes, also not very happy with all of them
- compare functionality, will be very useful for XenForo upgrades to find changes in templates
- ability for a moderator to lock a post, for example they edit out something bad from a post and lock it so no more edits can be made
- edit history for conversations
- 1.0 Beta 1.1
- added defaults to database to stop the mod breaking things when not active
- fixed the view all history permission not working when view own history is set
- fixed the link to view post history not working after an inline edit
- viewing history of a post without it being loaded with ajax will now look the same as the ajax method