Edit History (Archive) Edit History

Discussion in 'General Support and Questions' started by Robbo, Dec 6, 2011.

Thread Status:
Not open for further replies.
  1. Robbo Staff Member


    If you haven't yet purchased the Edit History add-on you can do so by going to account upgrades.

    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.

    edit1.jpg edit2.jpg edit3.jpg edit4.jpg

    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
    What is planned for the second beta
    • various template tweaks and small bug fixes
    • permission system to include content permissions
    • reverting an edit
    • vBulletin importer
    What will be included before 1.0 Gold
    • 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
    Change Log
    • 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

    Attached Files:

    Vincent likes this.
  2. Robbo Staff Member

    Version 1.0 Beta 1.1 released
    Backup before running the upgrade! This is beta software.

    First post updated with new package. This release is to fix some bugs and inconsistencies.
    • 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
  3. Robbo Staff Member

    Just for the record. When updating the first post I stuffed up and this mod came to the rescue as I was able to get the raw contents and put them over the broken parts :D
Thread Status:
Not open for further replies.

Share This Page