WordPress Versioning Plugin v1.0 Beta
The version 1.0 Beta WordPress Versioning Plugin has been released.
I will be cleaning up the code, layout and documention a bit and releasing version 1.0 in a week or so.
If you see anything that looks like a bug or the documentation needs corrected, please let me know.
April 22nd, 2005 at 9:17 pm
This plugin is broken out of the box. There are a number of problems:
1. The folder you download is named
wp_versioning_v1.0_beta- the plugin has the pathwp-versioninghard-coded.2. When things are up and running, when you select the Versioning sub-menu item it is looking for
wp-admin/wp-versioning/index.php, which of course is invalid since your directions told us to upload the entire directory to /plugins/I am going to fix the bugs in my local copy, and hope to see what all the hub bub is about!
Chris
April 22nd, 2005 at 9:52 pm
Chris,
The file is named wp_versioning_v1.0_beta.zip…there is no such folder “wp_versioning_v1.0_beta”.
You need to create a directory called wp-versioning in your plugin directory…it would look like “wp-content/plugins/wp-versioning” with all of the plugin files being in that directory.
The menu link should look something like:
/wp-admin/admin.php?page=wp-versioning/index.php
1. What version of WP are you using?
2. What is your server setup? (Linux/Apache?)
3. Is PHP setup to allow you to pass variables?
May 14th, 2005 at 11:23 am
Hello, I was just surfing around and there’s also some development going on in here: http://rephrase.net/days/05/04/post-versioning
(sorry if you know already)
You could join the efforts!
June 3rd, 2005 at 9:55 am
Hey Brian,
Just wondering if you wanted to incorporate some changes I have made to your plugin. Nothing drastic really, I just adding some UI formatting so that it matches the rest of the WP UI and moved it to the Manage area, which seems a bit more intuitive to me.
If you want to look at the changes email me and I will shoot you the source.
April 17th, 2006 at 2:33 pm
HiBrian.
When I try to access an older version it get this:
June 16th, 2006 at 2:59 pm
Sorry, the above comment was supposed to display the mySQL error I was getting.
The way security is handled with PHP5 breaks the plugin.
I’ll try to display the code I had to change:
Old:
$sql = "SELECT * FROM $wpdb->versions WHERE post_ID = $post_ID ORDER BY post_version DESC ";New
$sql = "SELECT * FROM $wpdb->versions WHERE post_ID = $_GET[post_ID] ORDER BY post_version DESC “;There were a few places where this kind of change had to be made, FYI.
I’m told the plugin would probably work in PHP5 if the .ini file was changed to allow PHP5 to use the old, less secure method of shuttling variables around.
June 20th, 2006 at 9:19 pm
i had to edit the following lines to make it work:
file: block_roll_back.php
line: 31
should be:
$sql .= "FROM $wpdb->versions, $wpdb->version_ids WHERE $wpdb->versions.post_ID = '$_GET[post_ID]‘ “;line: 32
should be:
$sql .= "AND $wpdb->versions.post_version = '$_GET[post_version]‘ “;file: block_roll_back_select.php
line: 2
should be:
$sql = "SELECT * FROM $wpdb->versions WHERE post_ID = $_GET[post_ID] ORDER BY post_version DESC “;February 27th, 2007 at 9:11 am
found an update to your plugin that works with 2.1 at this website here
This would be a nice plugin for someone to maintain and extend.
http://benjismith.net/index.php/2006/08/04/wordpress-plugin-versioning/