The IImage Browser plugin for WordPress is an image management plugin that lets you browse through your uploaded images, upload new images, create thumbnails and generate code.
Just wanted to tweak one thing viz. Clicking on a thumbnail in a post should open the full image in a new browser window the size of the full image with no scrollbars, menu etc.
Update: Following the release of 1.4.5, the plugin has a custom code feature. This hack utilizes that feature now. Thus, you can retain the original functionality of the Plugin as well as add your own.
The hack:
1. Open iimage-browser.php
2. Find:
$ib_custom_code_thumb = 'Must be set in iimage-browser.php';
3. Replace with:
$ib_custom_code_thumb = '<a href="%src" onclick="window.open(this.href,'iimagebrowser','width=%width, height=%height'); return false"><img src="%tsrc" title="%title" alt="%title" width="%twidth" height="%theight" /></a>';
Download:
Download the hack here.
Home






Where is the comma placed?
Here’s what I’ve got now:
window.open(“”,”imageviewer”,”width=”+ix+”,height=”+iy+”,menubar=no,toolbar=no”);
There is a comma there; perhaps it’s misplaced?
Please download the hack here.
Okay, now I get it.
I needed to add the comma to the properties of the custom_code_thumb in the iimage-browser.php file, not in the javascript function in the header.
Now it all works. Thanks!
Hi, I wanted to report a problem with Firefox 1.5 RC3, can you check what’s the problem? I took a screenshot.
The white space around the image is on top, left, bottom but not right.
A solution will not a bigger height and widht because it will screw up the other browsers.
The plugin works great on Opera 8.5.0
Thanks Stahn for reporting the problem.
I am aware of it. You will notice the same even on Internet Explorer. It is the way the browser automatically adds padding to the top and left.
I’m working on a solution that may not work with this hack directly but will work when used with my Open Browser Plugin.
Read this hack.