How to..., WordPress

How to install the Exhibit plugin in WordPress 1.5 on Dreamhost

It is a completely and utterly fantastic plugin for WordPress. It makes it extremely easy to upload pictures, make thumbnails, downscale and watermark. All from the standard WordPress web GUI in a very user friendly system.

It took some time before I could find the controls in the WEB-gui. I had to apply a fix for the way DreamHost run PHP. What you do is:

For Exhibit, you might find this useful (a user[1] contribution to Dreamhost’s really quite useful[2] KnowledgeBase)

In exhibit10.php, there is a block of code near the very beginning (line 46) that says:

$_SERVER['SCRIPT_NAME']=

$_SERVER['REQUEST_URI']);

Remove that whole block and replace it with:

$_SERVER['SCRIPT_NAME'] = $_SERVER['SCRIPT_URL'];

Before I found that, I couldn’t get Exhibit to appear in the admin interface

[1] Not me – found it after much head-scratching and googling
[2] Understatement – it’s an excellent resource for DH users

In addition to this you have to do a fix for WordPress 1.5:

In the file “exhibit10.php”, around line 130, you should find this line:

$this->tableexhibit = $table_prefix . $this->exhibit_db_table;

I replaced this line with this:

$this->tableexhibit = “wp_exhibit”;

I found these fixes here:
http://wordpress.org/support/topic.php?id=8501
And here:
http://wordpress.org/support/topic.php?id=24124#post-136294

The thumbnails at the top of this post are inserted using the Exhibit plugin.