WordPress.org

Ready to get started?Download WordPress

Forums

Exhibit 1.0b release (47 posts)

  1. Anonymous
    Unregistered
    Posted 10 years ago #

    http://www.asymptomatic.net/wp%2Dhacks/exhibit10.zip is the link I see. If I recall that's the same as the old link. Does this need to be changed to http://www.asymptomatic.net/wp%2Dhacks/exhibit10b.zip or is that actually the correct file and I should go ahead and download it?

  2. Anonymous
    Unregistered
    Posted 10 years ago #

    I went ahead and downloaded it to find out - http://www.asymptomatic.net/wp%2Dhacks/exhibit10.zip (as provided by the link in the initial post) is correct. Thanks a ton ringmaster :-). Installing now - hope it works!

  3. ringmaster
    Member
    Posted 10 years ago #

    Yeah, actually, the new file (1.0b) is at the old address. The link in my original post above is correct.
    Conversely, the old file is here.
    I've confused you all already. This isn't a good sign.

  4. georgianlady
    Member
    Posted 10 years ago #

    Thank you so very, very much!
    It works!
    I love the new features!
    Multiple previews, able to put thumbs at top of page, exhibit inside post, etc. Inline Display works nicely. [any way to get it to (in the future) exchange the photo instead of reloading the whole page?]
    Anyhow here's an example of how nice it works with INLINE DISPLAY now!
    I also like how the admin interface looks, no more mysql error showing with the need to save the post first.
    And then the INSERT feature -- really great.
    That's as far as I've gotten. I simply edited the two other photo posts I had already created under the old EXHIBIT, I was able to choose more previews, which I did for one of them. I hand put the code for < !--exhibit-- > inside the posts before discovering the insert code ... but that's alright, for I can do that easily when wanting the default config settings. Cool, cool, cool, even with how hot it is today! :)
    For those UPGRADING: you'll need to add a new css class to exhibit.css -- like so for what I wanted mine to look like:
    .ex_fullsize {border:10px solid #ccc; padding:10px; }
    .ex_fullsize img (border:10px solid white;)

    That's the only thing I did, add those two classes in exhibit.css (I make my .css files writable online to quickly edit them as I desire online anywhere I may be) and looked thru the config changes and made them how I wanted, and uploaded exhibit10.php to overwrite the old one.
    Fast and easy.

  5. georgianlady
    Member
    Posted 10 years ago #

    Ok I do have one request:
    When choosing more than one preview to show up on the front page with the post, the thumbs go vertical, messing up the layout for me since I usually have the post very short on the front page ... so one photo preview is fine, but when adding two or more they run together vertically ( so I put a padding around them in .css to make them look better) but since they are all in one DIV their is no way to make them go horizontal.
    So can you re-code the preview part to put a separate div around each preview thumbnail ... as it is for all the thumbs on the single post page? Then this way they could go horizontal, and if there was a setting to allow horizontal or vertical ... that would be even better than just having it one way or the other ... hmmm, or is there a way to make it so that IF there were DIV's around each preview, .css could make them go vertical ... I think I'm getting the idea that it would mean a wrapper DIV around the Image DIV's, that would make it choosable via .css, but then that'd be an always default situation.
    In any case, just looking through the code, it seems like, but I'm not sure, that the part that specifies ex_thumb_preview says to put DIV wrappers around each photo, but then, again I guess since it looks like how I'm putting below, on the source code for the index.php, it wouldn't be so, since the span for "view more ..." is in that one ex_thumb_preview DIV ...
    Like so it's written on the index.php:
    <div class="ex_thumb_preview_wrap"> <img src="http://www.pastoralfarms.com/weblog/images/2004/May_19_cats/t/P5190018.jpg" alt="Strider ears back ©May 19, 2004" /> <img src="http://www.pastoralfarms.com/weblog/images/2004/May_19_cats/t/P5190019.jpg" alt="Dixie ©May 19, 2004" /><span class="ex_preview_prompt">View more...</span></div>
    I'd like to see this as a wrapper <div class="ex_thumb_preview"> then individual DIVS around the img's <div class="ex_thumb_preview"> inside the wrapper ... if that's possible. Or at least could you supply a "hack" code to do that, since I'm not super good at hacking all php code.
    I think this is the relevent portion of the code:
    under: function exhibit_content($content)
    and under this portion : // The post content is one of many posts on the page
    // See if there is a preview picture for this post

    // Since there is a preview picture, display it and the content
    $ret = '';
    if(!$exc->preview_at_top)
    {
    $ret .= $content;
    }
    $ret .= '<div class="ex_thumb_preview">';
    foreach($previews as $preview)
    {
    if (preg_match('|post.php|', $_SERVER['SCRIPT_NAME']))
    {
    $startlink = '<div>';
    $endlink = '</div>';
    }
    else
    {
    if($exc->previews_link)
    {
    $startlink = exhibit_thumbnail_link($preview, true);
    }
    else
    {
    $startlink = '';
    }
    $endlink = '
    ';
    }
    $ret .= $startlink.'<img src="'.get_settings('siteurl').'/'.$preview->thumb.'" alt="'.$preview->caption.'" />'.$endlink;
    }
    if('' != $exc->preview_prompt)
    {
    if ((!preg_match('|post.php|', $_SERVER['SCRIPT_NAME']) && (count($previews) != 1)) ||
    ($exc->thumbnail_popup))
    {
    $startlink = '';
    }
    $ret .= "<span class=\"ex_preview_prompt\">{$startlink}{$exc->preview_prompt}{$endlink}</span>";
    }
    $ret .= '</div>';
    if($exc->preview_at_top)
    {
    $ret .= $content;
    }
    return $ret;
    }

    You can see how it affects a front page by viewing my
    PHOTOGRAPHY category page
    That's the only snaggy kind of thing I've run into ... so that's super MeThinks!

  6. Anonymous
    Unregistered
    Posted 10 years ago #

    Thanks for the gr8 script dude!

  7. Casey
    Member
    Posted 10 years ago #

    Hey. I've been trying out exhibit and posting as an anon but I finally decided to go ahead and register. Anyway, here's a couple suggestions that I've noticed/thought of.
    If you look here:
    http://www.caseyandanna.com/archives/2004/06/11/hi/#more
    or
    http://www.pastoralfarms.com/weblog/index.php/archives/2004/06/07/strider-and-dixie/
    you can see how the preview image #6 drops to the next line, even when the images have a space to be inserted. Perhaps a slight problem with how the code is formatting the XHTML?
    Also, one tiny thing, the preview images link like so:
    http://www.caseyandanna.com/index.php?p=11&pic=19
    instead of taking the permalink structure from the rest of the site (http://www.caseyandanna.com/archives/2004/06/11/hi/#more) when they are set to display in line. Perhaps there is some way to just send them to the site with the permalinks intact?

  8. Casey
    Member
    Posted 10 years ago #

    Anna also wants me to ask about horizontal preview images (Such as the way you have them at vexme). I guess that's what georgian lady also asked though.

  9. ringmaster
    Member
    Posted 10 years ago #

    It should be academic to get the previews to go horizontal by altering the exhibit CSS. Here is the relevant section of VexMe.com's CSS that enables the smaller horizontal previews -- I'm sure you'll see my original sneaky little trick in the comments of the 'a' element:
    .ex_thumb_preview {
    padding: 3px;
    border:1px solid #cccccc;
    margin:3px;
    display:block;
    /*float:right;*/
    font-size:xx-small;
    /*text-align: center;*/
    }
    .ex_thumb_preview a {
    /*display: block;*/
    }
    .ex_thumb_preview img {
    width: 50px;
    margin-right:3px;
    }

    I think the thumbnails sometimes don't line up properly because of the way they're set to float:left when they have extra length due to the photo captions. As a result, it doesn't lay out cleanly like two columns in a table, but it's a bit more dynamic without having to explicitly set crazy stuff like how many table columns you want.
    My best advice until someone figures out how to fix this with some crafty CSS is to increase the height setting for each thumbnail so that it will hold any possible caption text. That way, all of the thumbnail DIVs will be the same size and flow together more cleanly.
    Regarding permalinks: I thought about this a little, but I don't see a good way that I can pass the photo ID to a permalink. For example, if I took the URL you suggested (http://www.caseyandanna.com/archives/2004/06/11/hi/), where would the image ID go? Any suggestions how I might do this go toward possibly accomplishing it.
    I'll add a scripted image swap on thumbnail click to the wishlist, 'lady.
    By the way, everyone's pictures have been very entertaining. Some unusual, some thoughtful. Sometimes it's just interesting to see how other people spend their time. Neat!

  10. cube
    Member
    Posted 10 years ago #

    Great! The CHMOD Function is good and easy! But I think I've some Problems with the Settings to Display the List of Images like it was done in 1.0a! I have always only one single big Picture in my Entry instead of a List of Images! What went wrong?
    Do I have to use these nice little Comment-Tags that handle exhibit? I have tried some of them but nothing happens, and perhaps I have also found an error in the comment structure! If it is set <!--####--> the comment is shown on the final page, but with <!-- #### --> it's O.K.
    ...

  11. cube
    Member
    Posted 10 years ago #

    Ups, I have tried some settings in the php, and it seems that I have solved this Problem...

  12. georgianlady
    Member
    Posted 10 years ago #

    .ex_thumb_preview {
    padding: 3px;
    border:1px solid #cccccc;
    margin:3px;
    display:block;
    float:right;
    font-size:xx-small;
    text-align: center;
    }
    .ex_thumb_preview img {
    padding:2px;
    border:1px solid #ccc;
    width:100px;
    }
    .ex_thumb_preview a {
    display: block;
    }

    That what I have in my exhibit.css right now. I also put it exactly the way you have it Ringmaster, and the only difference in output that way is that the border for the DIV goes wide, filling the space ... the photos are still stacked one on top of the other vertically.
    I see on Vexme.com that they are horizontal, and that Vexes ME! ;)
    ----
    About the other floating issue that casey brought up, that's a traditional problem with how wide the space in the browswer is (browser re-sizing will line them up differently as you pull it wider or narrower, etc.) what the monitor resolution is for whoever is viewing it, and so on.
    Like Ringmaster said, making the divs all one height aleviates this problem, to the large degree it does get rid of that hanging weirdo thing, but it will not get rid of movement of the divs depending on how large the page is being displayed, since they are "floating" elements. Something I can live with.
    I have a decent monitor size and resolution, so I don't notice many of the problems of floating, but since Casey brought it up, I'll see about making those DIVS larger in Height to accomodate more text comment conformity to size. [done]
    ----
    So that's the deal, I can't make those front page thumb previews go horizontal. Even my hammer didn't make them move :(

  13. ringmaster
    Member
    Posted 10 years ago #

    Right, that line in the CSS needs to be removed or commented. If '.ex_thumb_preview a' is set to display:block, it will display as if each image is in its own paragraph. If it's set to display:inline (the default), it should display horizontally.
    Just copy what I've got up there, including the commented styles, and paste it over top of the existing style definitions in exhibit.css.
    It's good to know that you can tack on the picture images as a querystring for the SEF permalinks. I'll look through the WP code to obtain the permalink for the current post, and just tack the ?pic=# to the end of that.
    Look for that in the next revision...
    Also, I'm thinking about adding a pagination feature to Exhibit. If set, the thumbnails would appear on the page after the last page of your post, and thumbnails that exceed a certain count would spill onto subequent pages. Basically, this would give you a Pictoralis-like photoblog without having to use a specialized WordPress. Thoughts?

  14. georgianlady
    Member
    Posted 10 years ago #

    Hmmm, I thought I'd replied here earlier, and guess I must not have submitted it (too many browser windows!)
    I got my thumbs to go horizontal, thanks, I was a blockhead ;)
    Another thing then I want to just rave about is that you can denote thumbs to show but not popup on the front page, and have them pop up on the single page, or have them pop up on both pages ... it's all in the insert codings, and the combinations will drive anyone nuts, in a good way, of course!
    One thing I wanted to clarify, what is it about the POPUP coding ... is it written into each pictures link code ... if set to TRUE in the config portion for writing popup stuff forced or never.
    I wasn't clear on how that worked. At any rate, I don't have popups set for my base options, so if one wants to use them on occasion, what should they do?
    ex_popImage isn't in the instructions to copy to the head of index.php ... I discovered this whole thing this afternoon when posting a new picture. So I looked around and couldn't figure that out, so I just changed the line in code to look for my other popup script.
    I'm fine with that, just thought it'd be nice for you to clarify what the popup window code options are and what to do about it all.
    Thanks! I'm really loving this version now, and what you are talking about pagination ... that sounds good. A great gallery feature, oh ringmaster you are building this into a monument of wonder for all to desire, or so I feel it should be. :)
    Are you still looking at a gallery feature for all pictures in directories, not tied to any posts at all, just all the pictures. That would be the icing on the cake.

  15. Anonymous
    Unregistered
    Posted 10 years ago #

    Take some rest georgianlady :)

  16. Anonymous
    Unregistered
    Posted 10 years ago #

    Nice plugin, Is there a way I can add selective image one-by-one instead of adding all images at one go (by Add Current Directory)? I have some 250+ photocard images on my test blog. Adding all of them (as provided) and then removing selected images one-by-one for each post is tedious. Don't you think?

  17. Casey
    Member
    Posted 10 years ago #

    Anonymous -> I think the idea is that you divide your pictures into folders within that directory. That's how I'm using it anyway, and it works really well with that.

  18. georgianlady
    Member
    Posted 10 years ago #

    casey and anonymous:
    That's how I'm doing it also. In the past, in my old photo log, I had my images all like this:
    year/month/image.jpg
    That's not so great for this EXHIBIT method now, and I haven't moved my old photo log yet ... not sure what I'll do with it, waiting for more gallery features with EXHIBIT.
    So what I do now is this schema in my "images" directory:
    year\month-daynumber-descriptiveofimages
    So then in that folder I'll put related images.
    I can have more than one folder per day that way, and keep them nice and neat, making sense. Besides that, I am using a digital for most of my day to day pictures, so I don't fool around renaming them, I just dump them onto my harddrive into folders for their own day, then resize them with photoshop, make thumbs, and upload via SFTP, [nice interface, nicer than FTP!] really it's a matter of dragging a folder from my harddrive over onto the SFTP display for my website.
    Good to go, create and save a new post, then add the pictures in.With EXHIBIT Choose the one directory specially and easily put together for that post and add them all at once to that post. If there's one I don't like afterall, it's easily removed singlely.
    Now this way works swell compared to what I did with MT, manually doing everything ... with a little good code in the templates to take some of the manual junk away, but I had to create a new post for every photo. And copy the photo data into two fields. And forget about having a place to see what they were, it was just plain see-nothing, hope you got it right-ness. Well, really double checking my folder to see how I had them there on my computer, a mirror image of what was on FTP without being logged onto that.
    OK, so this way, with EXHIBIT, you have a visual thumb of the images when you add them to the post, right in the editing interface. And there are no picture paths needing to be coded. :)
    ---
    whomever anonymous with smilie is: telling me to take some rest; hmm, that's what I'm doing! :) This is dream rest for me, working for fun on the 'puter, with the house near 100 degrees and finally having a fan of my own to blow on me. Why move?
    Also I'm gungho on getting WP up to speed in taking over ALL my MT installations, so this one weblog is getting everything I can think of done to it, and these support forums are like home to me now. Better to be here than to be where I almost called home, (textpattern) :-O Not a bad thing txp, but WP is more fun and educational, which is the most fun of anything to me! I'm a junkie to learn new things.

  19. Anonymous
    Unregistered
    Posted 10 years ago #

    failing to see thumbnails. :(

  20. Anonymous
    Unregistered
    Posted 10 years ago #

    Casey: I think the idea is that you divide your pictures into folders within that directory.

    You have a valid point. Organizing the images is a great idea but unfortunately the WP default upload page only uploads images to a common shared folder (typically wp-content). Any way to workaround this issue (except ofcourse manually uploading images via FTP).

    ringmaster: I think that high on my list of things to do is add single images.

    I would be waiting for the feature to add single images! Thanks and good work again!

  21. theglobalguy
    Member
    Posted 10 years ago #

    Ringmaster,
    Excellent job on the new code! I'd been trying to decide between using Exhibit and PictPress, and this new version just made the decision easy. This is exactly what I've been looking for, and now all I have to do is figure a way to have a pulldown menu with only subcategories from my "gallery" category.

  22. Casey
    Member
    Posted 10 years ago #

    "You have a valid point. Organizing the images is a great idea but unfortunately the WP default upload page only uploads images to a common shared folder (typically wp-content). Any way to workaround this issue (except ofcourse manually uploading images via FTP)."
    I use FTP personally and just upload the directories where I want them. I have seen a WP-Filemanager plugin/hack (I'm not sure that's the exact name). Perhaps this would work for those who don't want to use FTP.
    I know ringmaster was planning to put in the feature to upload/use zip files. Here's my interpetation/idea of how that would work. Exhibit would have its own upload feature. Uploads through this would get unzipped, a new folder would be created in the images directory, and the images would be put inside it. The new folder would be based upon a cleaned up name of the zip file (_ for spaces, etc). This seems as if it would suit your needs? I guess you could wait for ringmaster's implementation of this if you don't want to FTP/use the filemanager plugin.

  23. Casey
    Member
    Posted 10 years ago #

    Ringmaster -> Is there any way to put the images in a user-defined order in the preview? (E.G. Non Alphabetical?)

  24. Anonymous
    Unregistered
    Posted 10 years ago #

    <div id="exhibit_thumbs">
    What if you changed that to:
    <div class="exhibit_thumbs" id="exhibit_thumbs"> and had it set to display inline instead of boxes. Would that fix the problem with the images dropping to another lines?
    Just a thought.

  25. ringmaster
    Member
    Posted 10 years ago #

    Sorry, there's currently no way to re-order the photos. This would require a change to the Exhibit table to accomplish. How do you all feel about this feature; is this significant for you?
    I haven't tried it, but I don't think setting exhibit_thumbs to display:inline would fix the gaps because it's not that div that makes the gaps happen, it's the float:left in the individual thumb divs. Give it a go and see if it makes a difference. I'll be happy to hear if it does.

  26. Steno
    Member
    Posted 10 years ago #

    Still getting the "Fatal error: Call to undefined function: add_action() in /wordpress/wp-content/plugins/exhibit10.php
    when im trying to edit an post.
    Could it be that im running PHP as an CGI?
    Others plugins works just fine.

  27. mogloo
    Member
    Posted 10 years ago #

    I'm interested in being able to create thumbnails with imagemagick instead of GD. How hard would it be to do this?

  28. ringmaster
    Member
    Posted 10 years ago #

    ImageMagick... There isn't native support for ImageMagick in PHP like there is for GD. (The manual makes no mention of it.) You have to compile it in yourself to get it. Do many hosts offer ImageMagick pre-compiled into PHP? My old Linux host didn't, but that's less due to the host, more because I was collocating. ;)
    I'm certainly willing to consider it. My current server is Windows, which seems to be surprisingly easier to use ImageMagick in PHP, but not in a way that would work for Linux folks. Can anyone point to a library or some routines that I can glom? I wouldn't mind having ImageMagick's sharpen function available to spruce up my thumbnails.
    If you're thinking to do it yourself, that's fine, too. There really aren't so many uses of GD in Exhibit that you couldn't easily replace them all.

  29. peb
    Member
    Posted 10 years ago #

    First of all, thanks for the effort to produce this package. It has lots of great features, and works pretty much right out of the box. Nice!
    I think I'll use this for my site production gallery.
    And I'll pass along a couple of suggestions.
    Ordering the pictures. It seems like the easiest way to do this is by using the database to sort the results alphabetically based on the picture name. One then selects the order by selecting a name that will put them in the desired order.
    Some flexibility in displaying the captions would be very useful. Maybe this exists, but I couldn't find it. For example, I would like abbreviated or no captions under thumbs to keep them from getting shifted out of alignment by the change in box size for lengthy captions. But underneath the enlarged picture, I'd like to make the caption as a long as I needed to provide some annotation. I glanced at the code, but didn't see an easy way to do this. If someone knows of a good way to do this, I'd appreciate some ideas.
    Really great plug-in.
    PEB

  30. ringmaster
    Member
    Posted 10 years ago #

    Oh, hey... Here's a solution at least for getting your caption to come up near your photo in full display:
    Find the $full_image_display variable in the configuration. This is what code Exhibit uses to display the full-sized image.
    Change the value to something like this:
    var $full_image_display = '<div id="ex_fullsizediv"> <img src="IMGSRC" alt="IMGCAPTION">IMGCAPTION</div>';
    Exhibit replaces "IMGCAPTION" with the caption of your image. If you also style your divs appropriately, you should be able to get the caption to appear wherever you like around it.
    Truncating the caption in the thumbnail section is a more complicated trick. Find the function exhibit_thumbnail_link. Near the bottom of that function, you'll see a line:
    $ret .= '<br/>'.$image->caption;
    Change that to something like:
    $ret .= '<br/>'.substr($image->caption, 0, 30).'...';
    The 30 in there is the length of the truncated caption. Change to suit.

Topic Closed

This topic has been closed to new replies.

About this Topic