WordPress.org

Ready to get started?Download WordPress

Forums

126

Exhibit 1.1d Photo Gallery Plugin (160 posts)

  1. ringmaster
    Member
    Posted 9 years ago #

    Can anyone tell me why IE has to suck so badly... Aye caramba...
    Exhibit 1.1d is available.
    Changes:

    • Fixed preview selection problem.
    • Fixed client-side display of added images.
    • The code that Exhibit inserts into the post body when clicking on an image in the list is now configurable.
    • Added button to file-picker to add full-sized image tag to post body.
    • Added uber-popup code - Allows visitor to click through all images attached to the post without closing the popup.

    If you're trying to do something in Exhibit and you think it should work but it doesn't, please try it with FireFox before you report it so that I know whether to look at javascript or PHP. Please?

  2. ringmaster
    Member
    Posted 9 years ago #

    Where exactly does this error appear?
    My hypothesis is that for whatever reason, PHP can set $_SERVER['REQUEST_URI'] on Windows, but can't set $_SERVER['SCRIPT_NAME'] on Linux. And that is really stupid, and could possibly explain this problem.
    It would be nice to see a phpinfo() output from your server to confirm this. Create a file (phpinfo.php) and in it put this code:
    <?php phpinfo(); ?>
    Save it and upload it to your server. Tell me where I can access it through the web. Email: ringmaster [at] midnightcircus [dot] com

  3. ringmaster
    Member
    Posted 9 years ago #

    Some parts of the Exhibit interface worked without re-saving the post. Making all of it work without saving the post became a goal.
    When you click the Preview checkbox, the file picker "reloads". During this reload, it tells Exhibit that you un/checked the box and adjusts the database accordingly. This sort of thing happens when you remove images from the post and when you change the image order, keeping what you see on the screen in sync with what's in the database.
    The only change you make in Exhibit that you need to click Save for now is if you edit an image caption. I may soon make that a thing of the past, too.
    The advantage is that you don't have to click Save a bunch of times to adjust these settings. Maybe it's trivial, but it annoyed me, so I "fixed" it - perhaps at great cost to my mental health, if today's monitor-focused profanity is any indication.
    The new version also automatically adds the sorting field when you first hit the edit page. Maybe I should have it do that with the whole table on the first install. There's a good idea. Keep 'em coming.
    Those pics of your brother(?) on the beach are pretty nice. The water there is so clear. The beaches near here (NJ) are... "not so nice" is a polite way to say it. But it's what we've got and it's usually needle-free, so. :)

  4. Anonymous
    Unregistered
    Posted 9 years ago #

    Everything seems fine. However, when I tried to read and/or comment on other posts (in other category), the following appear above the content:
    Warning: array_chunk() expects parameter 1 to be array, null given in /home/(...)/wordpress/wp-content/plugins/exhibitimg/exhibit10p.php on line 475
    What's wrong? I did not do anything to the exhibit10p.php file!
    Thanks

  5. ringmaster
    Member
    Posted 9 years ago #

    It looks like you have warning errors turned on in your php.ini. That's fine, but you might get more warning messages (like this one) than you like.
    On the line in question, just add an @ symbol, like so:
    $imagechunks = @array_chunk($images, $exc->paginate_thumbs);
    That could possibly quiet the warning. You could also try changing your php.ini to ignore warnings like these, which is a good idea on a production server, anyway.
    Still, I tried to reproduce this, and I couldn't. A link to the offending page would be useful.

  6. Anonymous
    Unregistered
    Posted 9 years ago #

    "Added uber-popup code - Allows visitor to click through all images attached to the post without closing the popup" <-- this sounds pretty cool, how do I activate it? I installed version 1.1d and the pop-up looks the same as in 1.1c.

  7. ringmaster
    Member
    Posted 9 years ago #

    Go to your config file and change uber_popup=false to uber_popup=true. Or add it if it's not there.

  8. Anonymous
    Unregistered
    Posted 9 years ago #

    The warning disappeared after adding the "@".
    Thank you very much~~happy happy

  9. Anonymous
    Unregistered
    Posted 9 years ago #

    "Added uber-popup code - Allows visitor to click through all images attached to the post without closing the popup"
    How can I change the disign of the navigation in the popup?

  10. Xyth
    Member
    Posted 9 years ago #

    1.1d seems to work great now, I grabbed it last night off your site since I couldn't sleep <sigh>.
    One last ?bug? that has been a minor annoyance that probably has a simple solution: The code builds a frame around the picture to enclose the pictures title. It seems when the pictures are displayed on an included page they build rows of pictures, adding them from right to left. The issue is if the row above has pictures that have a height that is inconsistant, the row below can be interupted. For example, in a 3 x 3 grid of photos, if in row one the middle picture extends below the picture on its right, then in row two, the right most picture will align properly, but the middle picture will be blocked and will wrap to begin a row three. You can display this symptom here http://xyth.com/index.php?p=37
    By adjusting your browser window you can show this issue.
    The work around is your new arrow/move feature, where I can adjust the picture sequence to minimize this wrapping.
    I have played with the exibit.css and this does not resolve the issue. Your site shows a consistant frame size around all pictures, so you don't have this issue. Any suggestions would be appreciated. Great code, Thanks.

  11. symantix
    Member
    Posted 9 years ago #

    Nevermind...I forgot to chmod the directory
    *puts down-syndrome protective helmet back on for safety's sake*

  12. ringmaster
    Member
    Posted 9 years ago #

    @Anonymous:
    The uber-popup is experimental. That's my excuse for not providing CSS support for your editing of the uber-popup page format. If you are savvy, you can edit exhibit10f.php - it's the last function in the file.
    @Xyth:
    Edit your exhibit.css and set height:whatever; in addition towidth:whatever; in the .ex_thumb class. You can otherwise tweak it to your liking. I think mine centers the image inside the div, too.
    You could also set break_every_thumb in the config file to, say, 3, which would force a clearing break between images after every 3 images. But if you do this, you'll may have to change this setting again in the future if you change the layout of your site. That's why it's not a default, FYI.
    @symantix:
    Mild coronary averted by your followup post.

  13. Xyth
    Member
    Posted 9 years ago #

    Adding height and align text center entries solved it nicely. Breaks were not required. Many thanks.

  14. valiot
    Member
    Posted 9 years ago #

    Ringmaster, i'm running the latest version 1.1d. Can you please clarify the purpose\usefullness of the "rebuild thumbnails" feature? When would it be useful to run it. Also, If I run it, it takes my watermarked images and creates thumbnails that have watermarks on them. Initial thumbnails don't have watermarks. Is this normal, or a bug?
    Another thing, I have my WordPress admin window configured to a static width. A width that is not compatible with Exhibit's edit area sizes. Look at the image to see what I mean:
    http://lavausergroup.org/images/exhibit_a.png
    What do I change, and where, to adjust the width of these areas? Is this in a CSS or something?

  15. Anonymous
    Unregistered
    Posted 9 years ago #

    Thank you RM. One more question:
    How can I control the size of the "full size" pop up? because the full size of my photos is way too big (but I would like to reserve it). How I can make the pop up start to be scrollable when the size of the photo is exceeding e.g 600px*400px?

  16. ringmaster
    Member
    Posted 9 years ago #

    @valiot:
    The rebuild thumbnails link is useful when your thumbnails were created previously at a different size than what you currently want to use.
    When you rebuild a thumbnail, it uses the current full-sized image to build the thumbnail from. Unlike other gallery scripts that keep an untouched copy of the original, Exhibit only keeps one full-sized and one thumbnail image. (For better or worse.) If you apply a watermark to the full-sized images, and then you rebuild the thumbnails, well... You get watermarked thumbnails.
    My advice is not to rebuild the thumbnails unless you really need to, or don't use the watermark feature. I figure that you'll be rebuilding thumbnails so infrequently that it won't be an issue, but what do I know? :)
    Regarding the Exhibit edit areas: That's a toughie. Both of these boxes us inline styles. (Yeah, yeah, bad Owen...) Look in exhibit10i.php. Line 361 is the current images div, called 'ex_image_scroll'. You'll see the width parameter there, and you can change it.
    The div that contains the file picker is just below that on line 407. It has no ID. You'll see a similar style setting on that tag.
    Good luck.
    @thelittlehand:
    What's with the difficult questions today, guys? :)
    What you ask for is a bit of custom script that would take me a while to come up with. If you're into doing it yourself, you should look at the javascript function exh_popImage() on line 269 of exhibit10p.php.
    You'll need to add script to detect whether the size of the image is larger than the maximum you allow, and then set the property of the body tag so that it either scrolls or doesn't based on that test. You'll probably need to detect whether the browser that the visitor is using supports the commands you're using for sizing, too - or maybe not. And the way the current function is written, you'll have to write all of those commands out as a script block from inside the javascript function.
    Daunted yet? No? Good. When you're done, I'll see about incorporating your changes. :)
    Of course, you could always use the setting that downsamples your original image when you upload it, so that it's only ever so big when Exhibit displays it. Save yourself the server space, the download time, and the mild annoyance of scrolling.
    Is there a big demand for keeping the originals for a "third tier" of images? I'm not making any promises at this point, but I'm curious what you all think.

  17. lane
    Member
    Posted 9 years ago #

    ringmaster:
    Hehe. I think Chris Pirillo says it best here.

  18. theglobalguy
    Member
    Posted 9 years ago #

    I'm loving the new popup feature, but I've got one easy request. The functionality might already be there, but I'm just missing something in the config.
    Right now it seems that we have to choose between the thumbnails being centered on the preview screen with no captions, or them being floated left but with captions on the main post screen. Is there a way to make captions appear on the preview screen? To see what I'm talking about look at this:
    http://www.theglobalguy.com/category/antarctica-2004/page/2/
    The bottom post on the page has two preview images that are centered without captions. If I go to just that post's page:
    http://www.theglobalguy.com/antarctica-2004/sunset-finally/
    then I get captions but everything is pushed to the left.
    Is there a simple way to get both?

  19. ringmaster
    Member
    Posted 9 years ago #

    The only way currently to get captions on the previews is to use the preview_like_single option in the config. This makes the post appear like it does when it is displayed by itself no matter where it's displayed -- It will display all of your thumbnails with captions no matter where the post is.
    The post you use as an example could benefit from this option, and it is an option that you can turn on for individual posts, if you like. There ought to be an option in the Post Config dropdown that says "Show preview post like single post". Use that one.

  20. mufflonen
    Member
    Posted 9 years ago #

    did you get my e-mail, owen, or did someone eat it for breakfast? just checking :)

  21. symantix
    Member
    Posted 9 years ago #

    RM, why don't you come up with an 80 x 15px banner for exhibit, so I can put it in my links list and promote your software?

  22. ringmaster
    Member
    Posted 9 years ago #

    @mufflonen:
    Sorry. I got your email. I'm notorious for ignoring my email over the weekend. I'm thinking about your problem, but just like before, editing captions works just fine on my system. :(
    @symantix:
    I'd love to do that. Perhaps when I take a break from writing this new lightweight Wiki plugin thinger. ;)

  23. mufflonen
    Member
    Posted 9 years ago #

    don't worry, I just wondered if you've recieved it. it's really weird... the ' - thing might be solvable though?

  24. ringmaster
    Member
    Posted 9 years ago #

    Yeah, I've got fixes in for the single quotes already, thanks. It's just a matter of adding slashes here and there.

  25. chrisada
    Member
    Posted 9 years ago #

    Would it be resonable to add a resize function to the rotation? On a site I admin, peoples always post gigantic images (from new many megapixels camera) . I be able to manually or automatically reduce the sizes would be wonderful.

  26. theglobalguy
    Member
    Posted 9 years ago #

    @RM, thanks..I played with my CSS a bit and finally got it where I'm nearly completely satisfied with the preview as single option. Actually, I think my only issue is a CSS issue that I'm just not sure how to solve. When I use the preview as single option (which is now my default), I can make the photos float right or left, but I can't make them stay centered in the middle column. Any ideas on how to make them behave would be much appreciated!

  27. mufflonen
    Member
    Posted 9 years ago #

    chrisada, can't you use the downsample function in the config-file?

  28. Anonymous
    Unregistered
    Posted 9 years ago #

    Great plugin! One problem however: I can't change the image caption on posts that I've made. I change the caption, click save. But it doesn't save the new text.. :/

  29. fotomatch
    Member
    Posted 9 years ago #

    It is a great plugin. good works. I am trying to implememnt to my site.
    I'll use the user_dirs feature, but I got a question/suggestion.
    Is there any way to limit the number of photos each user could post?
    Is there any way to set a maximum spaces for each user to upload? Of couse there should be no limitation for those users with a user level higher than root_image_access.

  30. ringmaster
    Member
    Posted 9 years ago #

    I'm still puzzling out the reason why some people can't edit captions. I haven't given up, I'm just still not sure why it works for some and not for others.
    There isn't a way to limit the number of photos per each user. I think that would be difficult considering that Exhibit could have to count all of the images in subdirectories several levels deep.
    Perhaps a filesystem-based directory size quota would be better? Does your server have this option? I'm plucking features out of the air, here. :)

126

Topic Closed

This topic has been closed to new replies.

About this Topic