Hey everyone.
I didn't get the opportunity to respond to the original thread before it went south, so I created this one instead (hope it's appreciated).
First, a few disclaimers: -
* This is NOT a plugin (it's a hack)
* FTP, MySQL (e.g. phpMyAdmin), CSS, JavaScript, PHP and XHTML knowledge is required
If you're not comfortable accessing and/or editing any of the above, then I wouldn't advise following this guide (your site WILL explode, the Internet will collapse and baby kittens will die... Seriously).
This hack increases the amount of text you can use for image titles and captions in exhibits (screenshot), allowing you to "divide" an exhibit.
Before starting, please backup your sites MySQL database and FTP/SSH Indexhibit files...
------------------------------------------------------------------------------------------------------------------------------------------------------
1. MySQL database edits
Log into your Indexhibit installations MySQL database (e.g. phpMyAdmin).
Open the table 'ndxz_media'.
You'll need to edit the type values for 'media_title' and 'media_caption' (screenshot).
By default, 'media_title' is 'varchar(255)' and 'media_caption' is 'tinytext'.
Change them both to 'LONGTEXT' (screenshot). Save your changes.
------------------------------------------------------------------------------------------------------------------------------------------------------
2a. Indexhibit configuration files
Now, log into your FTP (or local LAMP/WAMP server).
Open '/ndxz-studio/module/exhibits/index.php' with your favourite text/code editor.
We'll be changing lines 508-510 (screenshot). Comment out/remove lines 508, 509 and 510 and replace with the following: -
$rs['media_title'], "id='media_title' maxlength='2048'", 'text');
$body .= "<label>Image Caption</label>";
$body .= "<textarea name='media_caption' id='media_caption'>" . $rs['media_caption'] . "</textarea>";
Save and upload your changes. Now your edit exhibits image editing section should look like this.
------------------------------------------------------------------------------------------------------------------------------------------------------
2b. Edit Indexhibit configs 'ndxz.exhibit-edit.js'
Now open '/ndxz-studio/asset/js/ndxz.exhibit-edit.js'.
Change line 48 to: -
var caption = encodeURIComponent( $('textarea#media_caption').val() );
Save and upload your change.
------------------------------------------------------------------------------------------------------------------------------------------------------
2c. Edit Indexhibit configs 'style.css'
This last step is only cosmetic (for those of you who can manually resize your textareas, you can stop here).
Open '/ndxz-studio/asset/css/style.css' and add the following CSS styles to the bottom of this file: -
#media_title, #media_caption { width: 500px; }
#media_caption { height: 200px;}
Save and upload your changes.
------------------------------------------------------------------------------------------------------------------------------------------------------
3. Win at life!
...well, maybe not life ;-).
You should find you now have the ability "divide" your
exhibit (screenshot).
Switch to the "No Thumbs W Captions" exhibition format for a clearer example of how you can use this
(this temporary live demo may also help).
Now would be a good time to create a new exhibition format (e.g. remove content, add JS/jQuery show/hide/slide effects).
Study the pre-packaged exhibit formats by visiting /ndxz-studio/site/plugin via FTP/SSH.
------------------------------------------------------------------------------------------------------------------------------------------------------
I'll keep an eye on this thread and respond only to relevant questions posted by people who have read the forum rules.
Comments, corrections and queries are more then welcome :-)
If any of the above (and hopefully, the following) has helped you in any way, support this project.
It just makes sense.
Peace and love.
Edit (24/09/2009): - Changed updated 'media_title' and 'media_caption' values from BLOG to LONGTEXT