Exhibit 1.1b Photo Gallery Plugin (63 posts)

  1. ringmaster
    Posted 11 years ago #

    Some fixes. Possibly mentioned in a prior thread.

    • Watermarks - Watermark can be applied when an image is added to a post
    • Thumbnails can paginate starting on the first page of a post
    • You can configure Exhibit to check the preview box for every image when it is added to a post
    • Thumbnails and preview images can now have a title attribute (tooltip) with the specified image caption.
    • Exhibit can insert a break after a certain count of thumbnails or preview images to improve your formatting

    Download, as always, here.
    Test with impunity and godspeed. Or something.

  2. symantix
    Posted 11 years ago #

    So if I install this, and leave my original .cfg file and exhibit.css file in tact, it will work fine? Nothing new has been added to the .cfg or exhibit.css file?

  3. ringmaster
    Posted 11 years ago #

    Oh, there is new stuff in the config file (not sure about the CSS file), but if you don't change them it'll work just fine with your old one.
    The defaults that Exhibit uses without the new config settings behave as the prior version did.
    But most of the new settings are stuff you asked suggested... :)

  4. symantix
    Posted 11 years ago #

    and what about the css file?

  5. ringmaster
    Posted 11 years ago #

    I think there is one change in the CSS regarding the (grumble... make me look it up...) change of exhibit_thumbs from an #id to a .class. You should see it clearly marked in the CSS file. If you don't use preview_like_single it won't matter, and if you do, you may have already changed it.

  6. ringmaster
    Posted 11 years ago #

    That's weird. Watermarks work well on my site (click thumbnail to pop up watermarked photo). Note that watermarks are only applied to photos when they are first added to a post. Subsequent additions of the same photo to not reapply the watermark.
    What other features were you looking for? All of the stuff I mentioned above is enabled by config option, and not on by default for upgrade compatibility reasons.

  7. symantix
    Posted 11 years ago #

    RM, this isn't really directly related to your plugin, but perhaps you know the answer.
    I have an expandable style, meaning the width of the content area is based upon a percentage of the width of the window. Is there a way to keep the content area from getting any smaller than the image? On smaller monitors, full size images (600px width) hang off the right side of the content area and get under the menu on the left side. Any suggestions?

  8. Anonymous
    Posted 11 years ago #

    Is there any way in exhibit to make 1 preview image appear to the right/left of the post with the same size as the thumbnail.
    Like how google news adds the thumbnails. Most news sites do it that way too:
    Thanks for a great plugin.

  9. symantix
    Posted 11 years ago #

    Nevermind, RM. Someone else helped me with the problem in a different thread.

  10. ringmaster
    Posted 11 years ago #

    Yes, it's pretty much the default settings. You need to look at your CSS file and put a float:left/right into the preview style. You can look at the source of my personal site for an example: http://www.asymptomatic.net

  11. ringmaster
    Posted 11 years ago #

    Maybe something like this?
    .ex_thumb_preview {
    float:right; /*or: float:left; */
    .ex_thumb_preview img {

    Only mark one of the images in your post as the preview image and only one image will appear in the preview of the post.

  12. Anonymous
    Posted 11 years ago #

    Anyway to get it to line up vertically with the title (heading) like news.google does it? The excerpts for the posts are usually very short leaving the image to hang down.

  13. ringmaster
    Posted 11 years ago #

    Off the top of my head, you could try setting the CSS for the preview to relative positioning. Something like:

    I make no guarantees on that.
    The thing is that the title is being rendered by a tag in your index.php file, not within the storycontent div, so Exhibit can't control a preview's layout relative to the title very directly.
    You might try changing clear_post=true in your config file, too, which will keep the image from dipping down into the next post. Or you could just write some more. :)

  14. symantix
    Posted 11 years ago #

    I'm getting this error when I click my rss link:
    XML Parsing Error: undefined entity
    Location: http://speakbold.com/wp-rss2.php
    Line Number 27, Column 24: <div class="ex_clear"> </div>
    "ex_clear" is coming from exhibit. Am I doing something wrong? Is this a bug that needs to be fixed in exhibit? Or should we not expect to be able to output valid rss when running exhibit?

  15. ringmaster
    Posted 11 years ago #

    Symantix, something is wrong with your feed construction. Exhibit isn't applied to the RSS output of a feed. The hooks that apply it to the RSS output aren't hooked. Perhaps some other plugin you're using is applying the_content filters to the_excerpt_rss? For instance, my site uses Exhibit and does not produce an invalid feed. The exhibit tags simply do not appear in the feed text.
    Ville, I used the thumbs_at_top on this post by inserting it at the top of the post. As you can see, it works fine. Maybe some other settings in your config file are causing this anomaly? Maybe some CSS oddity? What you're describing certainly isn't the way it's supposed to work, and it's not the way it's working for me. Seeing the site in question might be helpful.

  16. peb
    Posted 11 years ago #

    Just loaded this to try the updates out. I haven't fully explored everything that's been added, but what I've found has been cool.
    I noticed you changed the license from Creative Commons to the MIT? Was there anything in particular that prompted the change?
    Anyhow. Nice plug-in. I'll comment more when I've play with it a bit.
    Thanks for making it available.

  17. anatman
    Posted 11 years ago #

    Please, help...
    I cant create the thumbnails. I uploaded the directories and jpeg files, and Exhibit can see them. But when i click on the little folder (which has the tooltip saying "create all thumbanils for this directory"), i get this error for each file in the directory:
    Warning: chmod(): No such file or directory in /home2/taiji/public_html/wordpress/wp-content/plugins/exhibitimg/exhibit10f.php on line 572
    (and by the way, how do i get a preview image embedded in the text, not a thumbnail on the top of the post?)

  18. anatman
    Posted 11 years ago #

    Ok, i sorted it out again, by trial-and-error. Everything works only if i set all permissions to 777.
    That's not a problem, but i think it shows the need for some documentation (the cfg file said 664 would be a good setting, which proved wrong to me). The plugin is great, but it can scare users away if there are no instructions on how to use it properly.
    I am still trying to guess how to get a preview image embedded in a post, any help would be appreciated... thanks!

  19. ringmaster
    Posted 11 years ago #

    There are two reasons for the license switch. Creative Commons is not for software, just for works of art (writing, music, etc.). Creative Commons is also not compatible with the GPL license, which is a requirement for WordPress plugins. MIT is good because it is compatible with GPL and it requires attribution, which is something that the GPL doesn't provide on its own.
    I'm not sure why it would require 777 permissions to work. In theory, 664 should work fine. Adding the 1 bit simply adds execute permissions to the file, which they certainly don't need if they're images. And there is no reason to at the 2 bit to the "other" permissions because they don't need to write.
    Maybe I've got this screwey in my head but that seems logical to me. If you had some advice on what to write so users aren't scared away, I'll include it.

  20. anatman
    Posted 11 years ago #

    Ringmaster - sorry, i didn't mean to sound critical. I love your plugin, and i am grateful for it! If i can help in any way, please let me know - i just can't code, but i can try to write something, if you direct me on what to do.
    One sugestion for the readme: it says "The directory in which you store your images must be writable to enable Exhibit's image upload features" which is of course true, but not all the story: in some servers, all directories need to be writeable by "others" so that the thumbnails can be created, if you uploaded your subdirectories and files by ftp. If you set a directorie's permission to 664, without the execute bit, it can cause trouble to ftp programs and cPanel, i did that because of what was writen in the exhibit.cfg file ("# use_chmod is the chmod setting to use for created files and directories. Set to 0 if you don't use it. 0664 is a good setting").
    It would be useful to have a tags guide or faq, i think.

  21. ringmaster
    Posted 11 years ago #

    No offense here, just trying to make things better. :)
    I went into the who chmod thing because my understanding of it is that the execute bit allows a user to execute that file. Read and write should be sufficient, in theory, for FTP or web. Why it's not is what I'm trying to figure out, and it could just as easily be my understanding of chmod that is wrong as the permissions just being 'off'.
    Perhaps I should mention somewhere that all of the tags are exactly the settings in the config file. All it's really doing is getting a copy of the config file and modifying it for each post based on what tags it finds in there. Tag construction is:
    < !--exhibit:config_option=new_setting-->
    For settings that are true/false, you need to use 1/0 instead, respectively.
    I suppose that I could put all of this info on the Exhibit wiki page.
    Feel free to add what info you think is relevant.

  22. Anonymous
    Posted 11 years ago #

    Hi Ringmaster, today a big "thank you!" for this great tool.
    I love it, though I still cannot upload in safe mode, but with ftp there are no probs.
    It animates me to create a little gallery day by day ;-)

  23. theglobalguy
    Posted 11 years ago #

    As if you haven't done enough already, I've got one more feature request. I'd like the ability to have three different image sizes. A thumbnail sized around 160 px, a preview sized around 450 px, and a full size image that only is displayed when a user clicks on the preview image and it pops up in a new window. I've been playing around with the various options, and it seems that I can only get two of the three sizes.

  24. twq
    Posted 11 years ago #

    Just wanted to say GREAT JOB!
    I got it up and working on my site ( http://martin.gumucio.com ) and it does what it does beatifully.

  25. ringmaster
    Posted 11 years ago #

    I'm not sure how to manage this.
    Exhibit already has too many features, and I'm not inclined to write anything that will make it even more complicated, since the main complaint these days seems to be, "It's too complicated." Suffice to say that I had written a much longer explanation as to why the ability to create three image sizes in Exhibit is outside the bounds of what I'm going to write. :)
    Feel free to try and hack it in yourself. I'll be happy to fold your source in if you find an elegant solution.

  26. anatman
    Posted 11 years ago #

    I am no expert in permissions too. What i understood so far by experience is that most hosts will consider your browser "others", so most people will need 666 or 777. In case of directories, definitely 777, the execute bit is needed. I don't recall the explanation, though, i read it long ago in someone's Unix book...
    Thanks for the info on the tags! I will look at the Exhibit wiki, and if i am up to the level of contributing with something i surely will.
    Keep up the nice work!

  27. purpleneutron
    Posted 11 years ago #

    Hi, I've installed but I seem to get an error after i upload a file:
    Fatal error: Call to undefined function: imagecreatefromjpeg() in /home/public_html/testingsite/wp-content/plugins/exhibitimg/exhibit10f.php on line 535
    Any idea what could be the problem?

  28. ringmaster
    Posted 11 years ago #

    That's an interesting idea, and exactly what I was trying to get at with the 664. Just to clarify, you're saying I need 77* on folders to read their contents, and 66* on the files it puts in there, correct?
    If so, I'll make that change to the source by adding a separate chmod setting for files/directories.

  29. gire
    Posted 11 years ago #

    I'm having problems with exhibit 1.0 (a little bit old :P)
    in my blog, exhibit only adds images when I'm posting for the very first time, I mean, if I want to add an image for an anterior post, it simply doesn't add anything; and when finllaly I add images to the post and select the preview button and click save and continue editing, it doesn't work either, the no preview button remains selected.
    Tnx for the help!
    sorry about my english :$

  30. Anonymous
    Posted 11 years ago #

    Here's a problem that I'm facing:
    I upgraded from 1.0 and everything looks well. But when I try to generate a thumb for an image and add it to the post from the admin section, I get a JavaScript error and the image isn't added (visibly, although it it added to the DB). Looking up the source of the error, I found that the JS error was caused at the following lines:
    <script type="text/javascript"><!--
    <div id='error'>
    Database error: [You have an error in your SQL syntax near 'last_insert_id' at line 1]

    SELECT LAST_INSERT_ID() as last_insert_id

    So the JS error is basically caused by the server-side error dump (inside the script tags).
    Maybe I haven't setup the plugin well enough. Please help!

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.