1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. This forum has been archived. New threads and replies may not be made. All add-ons/resources that are active should be migrated to the Resource Manager. See this thread for more information.

Add-on Edit History

Discussion in 'Commercial Resources and Add-ons [Archive]' started by Robbo, Dec 6, 2011.

  1. Robbo

    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.

    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
     
    Akela, digitalpoint, dutchbb and 9 others like this.
  2. Digital Doctor

    Digital Doctor Well-Known Member

    NICE !
    [​IMG]

    By the screenshots ... this addon accomplishes more that just "edit history".
    It's a full blown Post Versioning !! That is so much more.

    Addon name ideas : Post Versioning and Edit History. or Edit history and Post Versioning ?

    At least use the words Post Versioning in your description.

    Awesome job .... this addon is a *MUST HAVE*
     
  3. Robbo

    Robbo Well-Known Member

    Well it is designed to work with edit history for many more things than just posts. Templates, conversations... basically anything that has a handler and templates. So if I was to change the name then Edit History and Versioning? I dunno...

    One thing that I was thinking to make it more powerful is extending it to also allow for post drafts.
     
  4. Syndol

    Syndol Guest

    Nice job Robbo., Looks great.
    I say keep the current name - short and to the point.
     
  5. tmb

    tmb Active Member

    Looks promising.
     
  6. Fuhrmann

    Fuhrmann Well-Known Member

    This is great. Good work.
     
  7. SchmitzIT

    SchmitzIT Well-Known Member

    Nice work indeed :)
     
  8. onthefly

    onthefly Active Member

    has anyone installed this yet?
     
  9. Slavik

    Slavik XenForo Moderator Staff Member

    Yes
     
  10. onthefly

    onthefly Active Member

    and do you have any thoughts on it?
     
  11. Slavik

    Slavik XenForo Moderator Staff Member

    Fantastic addon. works perfectly with my custom theme.
     
    Digital Doctor likes this.
  12. onthefly

    onthefly Active Member

    I will give it a try
     
  13. onthefly

    onthefly Active Member

    I have noticed there are only permissions for mods, is this by design? Seems to work great with 1.1.0
     
  14. Robbo

    Robbo Well-Known Member

    "View own post edit history" is the other permission. There will probably be more in future releases depending on what people want.
     
  15. Shaun Mason

    Shaun Mason Active Member

    1) The installation is difficult for large forums. Where the installer adds columns to the xf_post table timed out on me, I worked around it by doing it manually and editing the install file.
    2) I set our Admin group to be able to view edits (both permissions), then our general usergroup with only view that it has been edited, and I (Admin) lost the ability to view the edits.

    Past that, thank you, we've needed this for a while.
     
  16. Robbo

    Robbo Well-Known Member

    1) Yeah I forgot to make a mention of this in the release. What I am going to do is add the queries to the first post in a note for big board users to add the columns on the server instead.
    2) Is now the first thing for me to look into when I get back to work later today.
     
  17. lasertits

    lasertits Active Member

    You're on a roll with these. Definitely going to purchase both of your addons when I get closer to launch time. (y)
     
    Vincent and Robbo like this.
  18. Markos

    Markos Well-Known Member

    I suggest a feature for the "mass revert" for the post of a users...useful with childish users that edit all thier posts after discussions with the forum admin.
     
  19. Robbo

    Robbo Well-Known Member

    Mass revert? There will be a revert button beside each post edit button that will revert the current post to that spot in the next version.
     
    faeronsayn and onthefly like this.
  20. MrC

    MrC Active Member

    I am waiting for 1.0 gold.
     

Share This Page