The Arcive of vBulletin Modifications Site. |
|
![]() |
||||||||||||||||||||||||||||||||
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:
// ************************************************** ******************** Notes: ------ Quote:
// ************************************************** ******************** Modification Summary: --------------------- Quote:
New Files: ---------- Quote:
Files that will be required for this modification: -------------------------------------------------- Quote:
PLEASE BACK UP THESE FILES ========================== // ************************************************** ******************** // ************************************************** ******************** Upload new files: ----------------- Quote:
// ************************************************** ******************** Execute SQL query: ------------------ Code:
ALTER TABLE `usergroup` ADD `canviewpostedits` INT( 10 ) UNSIGNED DEFAULT '0' NOT NULL ; // ************************************************** ******************** Add new phrases: ---------------- Quote:
// ************************************************** ******************** Create a new template: view_edits --------------------------------- PHP Code:
// ************************************************** ******************** Create a new template: view_edits_bit ------------------------------------- PHP Code:
// ************************************************** ******************** FILE: ./editpost.php (4 changes) -------------------------------- FIND: ----- PHP Code:
------------- PHP Code:
----- PHP Code:
--------------- PHP Code:
----- PHP Code:
--------------- PHP Code:
----- PHP Code:
--------------- PHP Code:
---------------- // ************************************************** ******************** // ************************************************** ******************** FILE: ./newreply.php (2 changes) -------------------------------- FIND: ----- PHP Code:
--------------- PHP Code:
----- PHP Code:
--------------- PHP Code:
---------------- // ************************************************** ******************** // ************************************************** ******************** FILE: ./newthread.php (2 changes) -------------------------------- FIND: ----- PHP Code:
--------------- PHP Code:
----- PHP Code:
--------------- PHP Code:
---------------- // ************************************************** ******************** // ************************************************** ******************** FILE: ./printthread.php (1 change) ---------------------------------- FIND: ----- PHP Code:
--------------- PHP Code:
---------------- // ************************************************** ******************** // ************************************************** ******************** FILE: ./admincp/usergroup.php (1 change) ---------------------------------------- FIND: ----- PHP Code:
--------------- PHP Code:
---------------- // ************************************************** ******************** // ************************************************** ******************** FILE: ./includes/functions_bbcodeparse.php (1 change) ----------------------------------------------------- FIND: ----- PHP Code:
--------------- PHP Code:
---------------- // ************************************************** ******************** // ************************************************** ******************** FILE: ./includes/functions_newpost.php (2 changes) -------------------------------------------------- FIND: ----- PHP Code:
------------- PHP Code:
----- PHP Code:
--------------- PHP Code:
---------------- // ************************************************** ******************** // ************************************************** ******************** FILE: ./includes/functions_showthread.php (1 change) ---------------------------------------------------- FIND: ----- PHP Code:
--------------- PHP Code:
---------------- // ************************************************** ******************** // ************************************************** ******************** FILE: ./includes/init.php (1 change) ------------------------------------ FIND: ----- PHP Code:
--------------- PHP Code:
---------------- // ************************************************** ******************** // ************************************************** ******************** FILE: ./modules/news.php (1 change) (Only if vBAdvanced CMPS is installed) ----------------------------------- FIND: ----- PHP Code:
--------------- PHP Code:
---------------- // ************************************************** ******************** Show Your Support
|
Comments |
#2
|
||||
|
||||
![]()
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 |
#3
|
||||
|
||||
![]()
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. |
#4
|
|||
|
|||
![]()
This is a great hack... nicely written as well.
Good Job. |
#5
|
|||
|
|||
![]()
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. |
#6
|
||||
|
||||
![]() Quote:
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. |
#7
|
|||
|
|||
![]()
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 --> |
#8
|
||||
|
||||
![]() Quote:
![]() |
#9
|
||||
|
||||
![]() Quote:
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? |
#10
|
|||
|
|||
![]()
Yes,
only when i click on edit and then in the text field. Here is a screenshot |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|