Back to vBulletin 3.7 Add-ons

Post Edit History Importer
Mod Version: 1.0.1, by Gray Matter

This modification is in the archives.
vB Version: 3.7.0 Rating: (0 vote - 0 average) Installs: 16
Released: 24 Dec 2007 Last Update: 03 May 2008 Downloads: 127
Not Supported DB Changes Additional Files Translations  

What is this?

The Post Edit History Importer (PEHI) is just that; an importer script. For those of us who were using Surviver's Post Edit History (PEH) hack, we are now pleased to see this functionality included in the default vBulletin package with the introduction of 3.7.0.

However, the hack's and vBulletin's way of logging post edit histories are somewhat different. So, thus, the need for this importer script arose. In a nutshell, it will import your past edit histories into vBulletin's new system.

What, exactly, does it do?

This script is a seamless import of the edit histories from the PEH hack into vB's system.

There are several key differences between vB's system and the hack's, among which are:
  • vB stores iconid edits, the hack didn't
  • The hack stored edits by comparing them in each record, while vB instead stores the original post once and subsequently all edits in a separate record
This importer will correct any mishaps between the two systems; it will assign postedithistoryids in the exact same order as they would have been if vB had inserted them, it will store original posts in the same way that vB does, it will assign iconids to make up for the missing ones that the hack never logged, and many other things.

If you're truly interested in checking out everything this importer does to make it "vB standard," you can read the code. I've commented enough that it should be discernible.

Anticipated FAQ
Q: Can I use this importer if I already have edit histories in vB's new system?
A: Yes! This importer was designed to import everything seamlessly. After it is done organizing the old histories correctly, it will process new histories before clearing them altogether in order to rearrange them correctly. So, yes, you can.

Q: Which version(s) of the PEH hack is this importer intended for?
A: The importer has only be tested with PEH version 1.2.5. Since I haven't used the new beta version, I do not know the database structure and therefore this importer might not work on that version.

Q: How long does the importer take to do everything?
A: Not very long at all, I promise. But really, it depends on how many histories you have. Personally, I had 21,075 histories from the hack. After inserting the originals (14,033 of them), I ended up with 35,108 records total. How long did it take the importer to do all of that? 2 minutes.

(More to come later if need be...)

Using the importer
To use the importer, just download the .zip file attached, unzip it, and open the 'readme' file. Instructions are included there.

Afterward
After you've used the importer, feel free to post your stats here! I'd love to hear how it worked out for you.

Enjoy!

Download

This modification is archived, downloads are still allowed.

File Type: %1$s pehi1.0.1.zip (6.7 KB, 91 downloads)

Screenshots

Click image for larger version
Name:	pehi_1.jpg
Views:	326
Size:	52.7 KB
ID:	73702   Click image for larger version
Name:	pehi_2.jpg
Views:	265
Size:	77.8 KB
ID:	73703   Click image for larger version
Name:	pehi_3.jpg
Views:	166
Size:	53.1 KB
ID:	73704   Click image for larger version
Name:	pehi_4.jpg
Views:	142
Size:	50.0 KB
ID:	73705  

Click image for larger version
Name:	pehi_5.jpg
Views:	163
Size:	62.4 KB
ID:	73706   Click image for larger version
Name:	pehi_6.jpg
Views:	343
Size:	94.9 KB
ID:	73707  

Similar Mods

Add-On Releases Post Edit History (PEH) vBulletin 3.6 Add-ons

vblts.ru supports vBulletin®, 2022-2024