Hello,
I am building my site using Indexhibit, everything is going fine except I've started reading into thin visual indexer plugin to which this one by auric seems to be perfect for my needs, I have read that the visual indexer isnt supported but I just need to pick the mighty brain of some kind of PHP hero.
I am simply trying to add the exhibit title under the thumbnails in a central position, Ive seen it on Axels site so it must be possible... please help heres my code:
/**
* Visual Index
*
* Plugin
*
* @version 1.0.1
* @author Herrmann Germann
* @date 2010 Feb 23rd
*/
function visual_index($id=0)
{
$OBJ =& get_instance();
global $rs;
$pages = $OBJ->db->fetchArray("SELECT id, media_file, url, title, media_order
FROM ".PX."media, ".PX."objects
WHERE media_ref_id = id
AND hidden != '0'
AND section_id = '$id'
AND media_order = (SELECT MIN(media_order) FROM ".PX."media WHERE media_ref_id = id) ORDER BY ord ASC");
$s = '';
$s .= "n";
foreach ($pages as $page)
{
$imgsizes = getimagesize(DIRNAME . GIMGS . "/th-$page[media_file]");
$breite = $imgsizes[0];
$hoehe = $imgsizes[1];
$title = ($page['title'] == '') ? ' ' :$page['title'];
$s .= "";
$s .= "";
$s .= "n";
$s .= " {$title} n";
}
$s .= "n";
return $s;
}
and the link: http://www.savwo.co.uk/home/design/design/
The indexhibit link is on the links page ;-) I had to move it for the menu.
