Forums » Customize

The Visual Index Project

Vaska A
UNITED STATES
2010-10-25 15:15:43
Permalink Post
 

Visual Index Main
Visual Index Section

I made these long ago and tried to release them for others to help finalize but was only met with randomness. I'm trying again...

If you want, work with these, improve them...change them...and share back your results and code and see if others can make use of them as well.

Visual Index Main makes a visual index of all exhibits on your site that have images uploaded to them.

Visual Index Section does the same but only for exhibits in the particular section that your exhibit resides in.

And, an official and super awesome Visual Index is coming in the future...

Vaska A
UNITED STATES
2010-10-25 15:17:03
Permalink Post
 

Please post in this thread only if you have constructive criticism and things to show/share...not if you want to tell us that you don't like the way the thumbs or you need it to speak in twelve languages or that you only like the color blue.

;)

celandow
UNITED STATES
2010-10-25 15:48:17
Permalink Post
 

Hey Vaska, thanks so much for putting this up. So I put "Visual Index Main" on the main page and its displaying nicely (I just have to mess with CSS later..) however when I click the thumbnail it cannot connect to the exhibit. Do you have any idea what might be causing this? Thanks again.

celandow
UNITED STATES
2010-10-25 15:48:32
Permalink Post
 

Sorry, my site: http://www.chandleremory.com

Vaska A
UNITED STATES
2010-10-25 15:51:23
Permalink Post
 

Ah yes, I see the problem. The short term fix is that you enable 'clean' urls on your site - look at the end of the How to Install page for info about that. The longer fix, I can't do right now, will be to make some fast edits to the format so that it can deal with non-clean urls.

And Chandler, you need to link back to Indexhibit...please read the forum rules, thanks.

celandow
UNITED STATES
2010-10-25 15:54:29
Permalink Post
 

Great - thanks for the help. And ahhhh sorry about that! I was planning on putting an indexhibit link under the "Links" page once I went more public; but I'll put a link on the index for now. Thanks so much!!

celandow
UNITED STATES
2010-10-25 16:02:34
Permalink Post
 

Crap my hosting won't allow me to enable clean URLs. Is there something I can do in the meantime?

Vaska A
UNITED STATES
2010-10-25 16:11:31
Permalink Post
 

Download and try again...a fast update. Hope it works...

celandow
UNITED STATES
2010-10-25 16:26:13
Permalink Post
 

Awesome, works perfectly!! Thanks so much for your time

celandow
UNITED STATES
2010-10-25 16:44:09
Permalink Post
 

Sorry to bother you again but I'm looking around for some Plugin Customization guidelines but I couldn't find any. I just wanna mess around with the size of the thumbnails, the distance apart, etc.; do you know where I could find something to help me?

Vaska A
UNITED STATES
2010-10-25 17:26:35
Permalink Post
 

Read the first post...

celandow
UNITED STATES
2010-10-25 17:43:09
Permalink Post
 

Haha I'm sorry my question is more for help, not critique though. Should I create a new thread or do you have any tips?

rickykappa A
ITALY
2010-10-25 23:38:18
Permalink Post
 

aha, finally this thread is out again!
I don't have time these days to check the code, but I assume it's more or less the same that was posted some time ago.
I've managed to use both of them and did some customizations to fit in my website:
homepage is a variation of the main visindex, with a limited number of thumbs displayed (e.g. 18, at the bottom of the page) which displays the square system thumbnails.
clicking on the visual index archive at the bottom of the page you get the full one (with no limit).
I've used the section visual index - with regular thumbnails - to display all the hidden exhibits of another section, so it is quite easy to create a sort of sublevel structure of the exhibits... maybe is easier to see yourself, i.e. this drawings section is in the gallery section, but gathers together all the exhibits of another hidden section (e.g. 3 exhibits, at the moment).
the same thing happens for other galleries in the site, I only need to create a specific visual index section for the section I want to be displayed.
hope it makes some sense...
;-)

Vaska A
UNITED STATES
2010-10-25 23:44:42
Permalink Post
 

Hi Richard!

;)

rickykappa A
ITALY
2010-10-25 23:52:14
Permalink Post
 

hi Vaska!
I'm just passing by... these days I'm busy :-P
I'd rather like to be in a desert... are you still there?

Vaska A
UNITED STATES
2010-10-26 00:10:40
Permalink Post
 

Oh yeah...it's awesome. In two weeks though I'll be passing through NYC and some Europes. Coooooooooold.

Vaska A
UNITED STATES
2010-10-27 20:59:02
Permalink Post
 

Rather surprised by the lack of interest in this. Even after people have asked billions of times about this kind of thing. Maybe it's not something people really want?

rickykappa A
ITALY
2010-10-27 23:10:11
Permalink Post
 

It happened already that the top red thread wasn't noticed at all (I guess it was the centered theme thread)... however I see quite some visits to my site referred from this thread, maybe people need time to try it?

Vaska A
UNITED STATES
2010-10-27 23:48:03
Permalink Post
 

Yeah, I'm not going to take it down...just wondering out loud.

But I really thought people would jump on this quickly.

;)

ivo_valadares
SPAIN
2010-10-28 12:12:49
Permalink Post
 

Hello.

It's really nice to have this plug in and so I'm trying it.

The text comes like double. "work" is where the plugin is active.

It's also showing the images from the pages of the section that are no active.

cheers and thanks

Webpage

blameme A
SPAIN
2010-10-28 16:02:05
Permalink Post
 

I think Ricky is right, people just don´t see the red threads, maybe an anmiated gif of a cat would draw attention... ;)

ivo_valadares
SPAIN
2010-10-28 20:29:37
Permalink Post
 

Maybe :-)

arsondpi A
GREECE
2010-10-29 12:21:04
Permalink Post
 

...like the one in Mathieu's post?

Vaska A
UNITED STATES
2010-10-29 13:21:09
Permalink Post
 

I'm going to create a super 'stick' mode and give it a new style with kitties, rainbows and unicorns...

patrickroppel
SWITZERLAND
2010-10-29 14:27:52
Permalink Post
 

dear vaska

this is an absolutely fantastic tool and it kick me to redo my whole webside, using the two pllug ins as navigation objects. now i am just wondering, if there is anyway of manipulating the order. right now, the oldest exhibition comes alway at first place. could you give me a hint on how i could attack this, without any knowledge of anything but a lot of will for trial and error?

best patrick

Vaska A
UNITED STATES
2010-10-29 18:39:56
Permalink Post
 

Ah, that's not good...it's in the query...but I'm tired right now...I'll try to look over the weekend. Maybe somebody else will feel like sorting that out before then? ;)

Thanks for the note.

rickykappa A
ITALY
2010-10-30 00:05:46
Permalink Post
 

this is my plugin (the one I use in my home page, which I've called exhibit.visindex_multisection.php

I didn't have time yet to check what vaska posted, but I assume they are similar to those I downloaded some time ago from another thread.

this solves the double text problem and rearrange the order from the newest changed exhibit (actually only the exhibits that have a new or modified first image, i.e. the one which is picked up and displayed by the plugin) to the oldest.
also with this I get validated pages, both XHTML 1.0 Transitional and CSS 2.1.

another feature that you might want to change is the use of the system thumbnail instead of the default thumbnail.
however comments are there to help for further customization...

oh, yeah: I hope the code will not break, it looks ok to me now, but you know... it's late night
;-)


<?php if (!defined('SITE')) exit('No direct script access allowed');

/**
* VisIndex Multisection
*
* Exhbition format
*
* @author Vaska
* @author Daniel Eatock
*
* @modified Richard Khoury - richard@arteam.it
*/

// defaults from the general libary - be sure these are installed
$exhibit['dyn_css'] = dynamicCSS();
$exhibit['exhibit'] = createExhibit();

function createExhibit()
{
    $OBJ =& get_instance();
    global $rs, $exhibit;
        
    $pages = $OBJ->db->fetchArray("SELECT media_file, url, title, media_order, media_id
        FROM ".PX."media, ".PX."objects
        WHERE id = media_ref_id
        AND media_order = (SELECT MIN(media_order) FROM ".PX."media WHERE media_ref_id = id)
        AND status = '1'
        ORDER BY media_id DESC
        ");

    // ** DON'T FORGET THE TEXT ** //
    $s = $rs['content'];
    $s .= "\<div class='cl'><!-- --></div>\n";
    
    if (!$pages) return $s;
    
    // adjust this value according to your thumbs default settings and your img sys width choice
    $thumb = $rs['thumbs'] - 88;
    
    $i = 1; $j = 0; $a = '';

    foreach ($pages as $go)
    {
        $title = ($go['title'] == '') ? ' ' : $go['title'];
        
        $a .= "<div class='grow' id='img$j'>\n";
        $a .= "<div class='thumb'>\n";
        $a .= "<div class='thumb-it'>\n";
        // img sys width value is of your choice, but should be = or <100 which is the default size of the system square thumbnail
        $a .= "<a href='" . BASEURL . "$go[url]' class='thumb-img'><img src='" . BASEURL . GIMGS . "/sys-$go[media_file]' width='80' alt='$go[media_file]' title='$title' /></a>\n";
        $a .= "</div>\n";
        // if you don't want to show titles just take out the line below
        $a .= "<div class='thumb-cap'><a href='" . BASEURL . "$go[url]'>{$title}</a></div>\n";
        $a .= "</div>\n";
            
        $a .= "</div>\n\n";
        
        $i++; $j++;
    }
    
    // images
    $s .= "<!--[if lte IE 6]><style type='text/css'>.thumb-img { #top: -50%; }</style><![endif]-->\n\n";
    $s .= "<div id='img-container'>\n";
    $s .= $a;
    $s .= "\n<div class='cl'><!-- --></div>\n";
    $s .= "</div>\n";
        
    return $s;
}

function dynamicCSS()
{
    global $rs;
    
    // for .thumb-it we need #top: -50%; for IE...but it doesn't work.

    // adjust those values according to your thumbs default settings and your img sys width choice
    $thumb = $rs['thumbs'] - 88;
    $thumbheight = $rs['thumbs'] - 48;
    
    return ".grow { float: left; margin: .1em .8em 1.6em .1em; border: 0px solid #777; }
    .thumb { padding: 0; text-align: center; display: table; height: {$thumbheight}px; width: {$thumb}px; overflow: hidden; }
    .thumb-cap { font-weight: bold; width: {$thumb}px; margin-top: .6em; display: block; }
    .thumb-it { margin-top: 2em; text-align: center; }
    .thumb-img { width: {$thumb}px; display: block; }
    .cl { clear: left; }";
}

rickykappa A
ITALY
2010-10-30 00:15:55
Permalink Post
 

somehow I've missed these 3 lines in the post above, they're not important for the plugin to work, but they're important!
;-)

* Based on
* Visual Index Main
* @version 1.0

rickykappa A
ITALY
2010-10-30 08:45:42
Permalink Post
 

oh well, morning apologies: the above plugin is not exactly the one used in my home page, but it's viewable in this
test page.
in the home I'm using a modified version which limits the output of the displayed exhibits (e.g. 18 thumbs, at the bottom of the page).

sorry for posting so much, but that's for clarity.
happy weekend
:-)

blameme A
SPAIN
2010-11-03 15:21:53
Permalink Post
 

@arson,
Excactly like that! As well as getting my attention it gives me a warm fuzzy feeling in my belly!

KGracey
UNITED STATES
2010-11-04 15:33:35
Permalink Post
 

Hey Vaska, any more progress on ordering the exhibits? I appreciate all the hard work, and I already have this installed and running on my buddies portfolio site, but we can't move forward without the ability to order the projects!

Also, all of the 'hidden' exhibits are still showing up on the homepage with this plugin.

I know its a work in progress! Let us know. Thanks a lot Vaska

basw
NETHERLANDS
2010-11-07 00:06:04
Permalink Post
 

I was definitely waiting for this. Cheers. I've used an other plugin posted on the forum for my sister's site (http://www.eengatindelucht.nl/) but it is not exactly what I want. I am gonna try this one out.

Btw, Vaska, thanks for making Indexhibit :)

ps
ISRAEL
2010-11-08 09:54:33
Permalink Post
 

KGracey, by what would you want to order it? manually?

  1. To fix the hidden/shown issue, after line 24 insert this: AND hidden = 0
  2. and you're done.
  3. :)

Vaska, where are the kittens?
Thanks for posting this, btw.
I have some ideas, will be in touch

cheers guys
phil

ps
ISRAEL
2010-11-08 16:29:34
Permalink Post
 

So here's an update of sorts, small and subtle:

Visual Index Main (with ordering)
Visual Index Section (with ordering)

Changes:

- Only shows visible exhibits
- Ordering is now possible,
- Replace the ASC with DESC if you want it descending instead of ascending

cheers

Vaska A
UNITED STATES
2010-11-08 22:01:57
Permalink Post
 

Great! Thanks for tossing these back at us...I'm sure everybody appreciates (I sure do).

;)

Vaska A
UNITED STATES
2010-11-08 22:08:34
Permalink Post
 

Phil, did I owe you an email long ago about RSS? Awhile back I had a big email mishap and deleted a bunch of emails (and didn't have a backup). Was it you I was talking to about that...I'm really sorry if this was you.

Maybe I'm remembering the wrong person though...?

rachelsender
NETHERLANDS
2010-11-09 17:19:40
Permalink Post
 

As soon as the official version comes out I'm going to try it for sure! Thanks Vaska!

7
UK
2010-11-09 18:22:07
Permalink Post
 

Niiice. This thing is the way to go ;) Haven't had time to look at this til this new thread about it surfaced. Cheers guys, tried it out, will save alot on hand coding! And I guess it can be styled up too

patrickroppel
SWITZERLAND
2010-11-10 10:23:47
Permalink Post
 

hey ps. thanks for the ordering thing. its doing the job perfectly fine. only the ordering in the main index is a bit a problem. as it keeps the section order. and as this is an overall index, it would be quite nice to always have the latest project on top. maybe in this case, the original plug in from vaska should be used. i gave it a try and placed the DESC in. but as i have no clue about it, i probably placed it in the wrong line or so. would this be possible?

any help would be greatly appreciated. best patrick

patrickroppel
SWITZERLAND
2010-11-10 10:24:06
Permalink Post
 

hey ps. thanks for the ordering thing. its doing the job perfectly fine. only the ordering in the main index is a bit a problem. as it keeps the section order. and as this is an overall index, it would be quite nice to always have the latest project on top. maybe in this case, the original plug in from vaska should be used. i gave it a try and placed the DESC in. but as i have no clue about it, i probably placed it in the wrong line or so. would this be possible?

any help would be greatly appreciated. best patrick

ps
ISRAEL
2010-11-10 12:00:44
Permalink Post
 

Patrick, it's indeed ordering them first by section, then by (custom) order.
I figured that if you have lots of exhibits/lots of sections and order all exhibits cross sectional it would be hard to oversee in the backend which place the exhibits will end up at on your page...

Having said that, here's a quick fix to this (un)order:
If you want to index all exhibits by date, no matter what section they're in, just delete the "section_id," part, after "ORDER BY,"

cheers
phil

patrickroppel
SWITZERLAND
2010-11-10 15:09:05
Permalink Post
 

hey ps

thanks a million. this way it is very easy to customise a whole new way of navigation on indexhibit... which is fantastic.

but one question leads to another. would it be possible to exlude a section in the main index?

let me know if this is becoming a hassle....

cheers patrick

ps
ISRAEL
2010-11-10 16:06:57
Permalink Post
 

Should be easy too, I think you could simply add "AND section_id x" to the query before the ORDER BY line.. (exchange x with the section ID you want to exlude)

To find out which section_id your section has, go to your settings, edit the section you want exluded, and have a look at the adress bar, it should show the actual id #.

dhb
UNITED STATES
2010-11-25 03:29:55
Permalink Post
 

Hi! This is great, but I\'m having difficulty figuring out how does this can work together with projects containing only video, or text. They won\'t show up as a projecs in the index. Is there a way to add/change thumbnails?
\n

dhb
UNITED STATES
2010-11-25 03:30:07
Permalink Post
 

Hi! This is great, but I\'m having difficulty figuring out how does this can work together with projects containing only video, or text. They won\'t show up as a projecs in the index. Is there a way to add/change thumbnails?
\n

Vaska A
UNITED STATES
2010-11-25 04:10:25
Permalink Post
 

Indexhibit relies upon things having images - it will not work with text or video onlly based exhibitions.

dhb
UNITED STATES
2010-11-25 04:17:25
Permalink Post
 

Right- I see.

\n\n

So I do want an image to represent the post (as a thumb); but i don\'t nessecarily want to repeat this image in the post.

\n\n

I think i\'ve found a way to make it work, through using (and renaming) the thickbox theme with posts having video/text only, and hiding thickbox images through css. (other posts use slideshow)

\n\n

This way an image to represent the post appears in the index, but not in the post itself. Which is what i want to accomplish.

\n\n

(btw. sorry for the unintentional double-post earlier).

KT_
UK
2010-12-03 08:50:09
Permalink Post
 

Great Plugin! Really excited about it.

@dhb did you have any luck using the plugin for pages with no images? I also would like not to repeat the image in the post. Any advice would be greatly appreciated.

Many thanks all.

rickykappa A
ITALY
2010-12-06 09:40:15
Permalink Post
 

I guess that also a transparent image could work sometimes (or white if you have a white background)

brendandawes
UK
2010-12-10 04:26:03
Permalink Post
 

It seems everyone can get this working but me!

Even though many of my exhibitions contain images nothing shows up. It seems like it doesn't find any pages to iterate through. I've tried both the main and section versions and the updated versions but nothing - just a blank page.

I've looked at the PHP code and all looks good.

Any ideas to try?

Thanks.

Showing 1 - 50 of 189 posts in Forum > Customize > The Visual Index Project