Forums » Customize

Visual Index Plugin

  • Pages:
  • 1
  • 2
Jamiejoseffry
UNITED KINGDOM
2011-05-11 13:32:45
Permalink Post
 

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");

    if (!$pages) return;
    
    $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.

Jamiejoseffry
UNITED KINGDOM
2011-05-11 13:33:05
Permalink Post
 

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");

    if (!$pages) return;
    
    $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.

Jamiejoseffry
UNITED KINGDOM
2011-05-11 17:05:46
Permalink Post
 

Ignore that! and sorry that my post posted twice... I know not what I do...

88
AFGHANISTAN
2011-07-02 16:06:33
Permalink Post
 

Hello Im very lost on how to create thumbnails of my work on the homepage of my site
i've done the first two parts

1. Download Visual Index Plugin
2. Put the file into: /site/plugin

but then to -

In your text editor place this plugin: < plug:visual_index [id] />
'number' represents the database id number of the section for your thumbnails

I honestly have no idea what to do next, all i know is that i've downloaded the plugin.visual_index.php and dropped it into the plugin folder on my cyberduck.

What do i do next in a dummies explanation please, where do i find my text editor to place the < plug:visual_index [id] /> and where do i find the 'number'?

Please help

G470 A
GERMANY
2011-07-03 07:22:37
Permalink Post
 

Hi, maybe you should better use the exhibition format for visual indexing.
Have a look here: http://www.indexhibit.org/forum/thread/10821/

Showing 26 - 30 of 55 posts in Forum > Customize > Visual Index Plugin
 
  • Pages:
  • 1
  • 2

You need to be logged in to post.