Version: 0.01 BETA, by rjordan
Developer Last Online: Dec 2012
Version: 3.0.3
Rating:
Released: 02-14-2005
Last Update: 02-14-2005
Installs: 5
DB Changes
Is in Beta Stage
No support by the author.
This will be updated. Until then, no further support for this version will be given.
Well, folks, here it is. Your input is appreciated. As this is my first real modification for vB and in PHP, please keep flames to a minimum! :laugh: If any issues are found, please post them here. The final release will be posted after a few weeks of discussion here and any tweaks need to be made.
Screenshots are attached.
--------------
Version History:
v0.01 BETA - 02-15-05 (NO LONGER SUPPORTED)
- This release.
- Renamed from v0.99 BETA. (02-24-05)
- Added version history. (02-24-05)
- Added future release details. (02-24-05)
--------------
Future release: (IN PROGRESS)
- Seperate edits into their own database field.
- Pop-up edits in another window.
- Admin selectable limit of edits displayed.
- Admin selectable forums to track edits rather than global.
--------------
// ************************************************** ********************
// *
// * View Post Edits modification v0.99 BETA
// * Coded by Richard Jordan for vBulletin v3.0.x
// *
// * This a BETA release. As with all releases, make a backup of
// * your forums and database to ensure data integrity in the event there
// * is an unforeseen problem. Testing has been performed to the extent
// * that all possible issues have been addressed, however without proper
// * field testing, this modification CANNOT be certified as complete.
// *
// * This modification may be installed on any site with a legitimate
// * vBulletin license. It may be reposted on other sites freely as
// * long as it is done in its entirety, credit is given to the author,
// * and it is not reposted at any location where anyone must pay in any
// * way for any reason to fully obtain this modification.
// *
// ************************************************** ********************
Overview: ---------
Quote:
This modification will allow viewing of all post edits. It does this
by taking the posts that are edited and appending the original to the
end of the post. This original post is enclosed in new BBCode [EDIT]
and [/EDIT] tags. When this tag is found, the contents are displayed
as a previous edit and is marked as such. This is controlled by user
group. If you would like certain members or groups to have access to
view these edits, simply add this user permission. If a user enters
the new BBCode in any message, the brackets are converted to their
numerical code value thus preventing them from interfering with the
modification.
- Previous edits are stamped with the time and date as well as who
made the post edit.
- When no reason is given for a post edit, it is automatically set
to "No reason given."
- Usergroup based permissions.
- One added query each time a post edit is submitted or previewed.
- Includes instructions for vBAdvanced CPMS news, however if other
modules/portals/hacks are used to read post data, they will need
to be modified to prevent the displaying of post edits.
- Collapsable tables conserve screen real-estate so only the post
edits you wish to see can be displayed. Scrolling is implemented
to conserve even more space.
- Uses phrases for easy language conversion.
- Uses templates for easy customization.
- Images included in the previous edits will not count toward the
total image count for the post. This should be remembered for
those with users that like to post a lot of images and they edit
those messages with any kind of frequency.
- Type: permissions
Phrase: can_view_post_edits
Text: Can View Post Edits
- Type: postbit
Phrase: view_edits_after_edit_by_x_on_y_z
Text: After edit by {1} on {2} at {3}:
- Type: postbit
Phrase: view_edits_before_any_edits
Text: Before any edits, post was:
anyway to add a button to view the post edits seperately? Just dont like all that being there would rather have a button to click that would show me the edits.
Nice hack though.
Might want to put the install instructions in a txt file to make it easier for people to install and make this thread not so long
I am sure a button could be created to do what you request (and I do like the idea), but honestly that is beyond my ability right now. I am truly learning PHP as I make this and other mods.
Text file is already included. I will try to get this recoded into an HTML file so the post will not be so long.
Question... the screenshots only show the last 2 revisions... do you keep more than that or is this just an old and new thing.
What I have implemented on my forum is an atomic level history... every post, every change, all versions. I'm lacking a UI though... it was something I knocked out for myself so I'm just copying to a seperate and slightly different post table and then using phpMyAdmin the few times I have to go and fetch an old item.
What I'm looking for is scary:
1) The atomis level history... every change, even back 15 edits if need be.
2) A UI, similar to yours, I was thinking of expanding a post block view a list of edits... but where I vary is...
3) Built-in DIFF. I want to only see the lines that have changed since the prior version.
If you want to see my code that dumps out the edit history just ask. Is it alright if I incorporate some of what you've done on top of my code? I haven't looked in depth but I like the way your UI is going, I just want to work out that last bit, adding a Wiki style DIFF history.
Question... the screenshots only show the last 2 revisions... do you keep more than that or is this just an old and new thing.
What I have implemented on my forum is an atomic level history... every post, every change, all versions. I'm lacking a UI though... it was something I knocked out for myself so I'm just copying to a seperate and slightly different post table and then using phpMyAdmin the few times I have to go and fetch an old item.
What I'm looking for is scary:
1) The atomis level history... every change, even back 15 edits if need be.
2) A UI, similar to yours, I was thinking of expanding a post block view a list of edits... but where I vary is...
3) Built-in DIFF. I want to only see the lines that have changed since the prior version.
If you want to see my code that dumps out the edit history just ask. Is it alright if I incorporate some of what you've done on top of my code? I haven't looked in depth but I like the way your UI is going, I just want to work out that last bit, adding a Wiki style DIFF history.
This will keep all edits. With a maximum character count of 16 million+, I did not think this a problem. The screen you refer to is simply to show a second edit. This orders the newest edits at the top but does not perform any checking to see if you have already seen the edit. This way you do not have to scroll down to see the last edit if all others have been seen.
If you want to use some of my code, I do not have a problem with it. As with my Ikonboard modifications, all that I write for vBulletin is to better the community. If you can use some of what I have done to do the same, be my guest. If you publish it, a side-note would be nice, but not required.
Question... the screenshots only show the last 2 revisions... do you keep more than that or is this just an old and new thing.
What I have implemented on my forum is an atomic level history... every post, every change, all versions. I'm lacking a UI though... it was something I knocked out for myself so I'm just copying to a seperate and slightly different post table and then using phpMyAdmin the few times I have to go and fetch an old item.
What I'm looking for is scary:
1) The atomis level history... every change, even back 15 edits if need be.
2) A UI, similar to yours, I was thinking of expanding a post block view a list of edits... but where I vary is...
3) Built-in DIFF. I want to only see the lines that have changed since the prior version.
If you want to see my code that dumps out the edit history just ask. Is it alright if I incorporate some of what you've done on top of my code? I haven't looked in depth but I like the way your UI is going, I just want to work out that last bit, adding a Wiki style DIFF history.
I'd be interested in seeing what you come up with, sir.
I have installed it, but when i edit a message, i see this in my text area?
test<!-- BEGIN TEMPLATE: view_edits_bit -->
<!-- END TEMPLATE: view_edits_bit -->
test<!-- BEGIN TEMPLATE: view_edits_bit -->
<!-- END TEMPLATE: view_edits_bit -->
Hmm... sounds like you have Add Template Name in HTML Comments enabled... but that should not cause what you are seeing. I just turned mine on and could not replicate it here. You are seeing this when exactly? Is it when you click on Edit and it displays the post in the text field?