WordPress.org

Ready to get started?Download WordPress

Forums

New image gallery plugin - needs testers (63 posts)

  1. georgianlady
    Member
    Posted 10 years ago #

    Alright, I've hit another snag, I have EXIBIT working alright, as long as I use pop-ups etc., ... what I WANT to do is display the photos INLINE when a thumb is clicked.
    I have <!--exibit--> in my index.php but when all is coded right in exibit10.php for inline display, the page reloads with the URI for the post and photo as PHP (instead of friendly url), but the page content doesn't change at all.
    If I change the exibit10.php "suppress content" as this:
    //$suppress_content prevents the text content from being shown
    //when a full-sized image is displayed in the content area.
    $suppress_content = true;

    Then if a thumnail is clicked the full image shows up in "place of" the text of the post ... but also the other thumbnails disappear, and there is no navigation to either the full text post nor the other thumbnails.
    What I want is for the full photo to show up above the line of thumbnails, which would be right below the text content of the post.
    How is that done if doing this following code doesn't work {as it's shown to be under: 4) Display inline
    When you click a thumbnail, the full image appears within the post
    content in place of the comment: <!--exhibit-->
    }?
    $thumbnail_popup = false;
    $embedded_image = '';
    $suppress_content = false;

    Is there anything different that should be coded? I'm continuously playing with this now, and nothing will get the photo to display inline with content still there. :(

  2. theglobalguy
    Member
    Posted 10 years ago #

    One request...Would it be possible to have multiple images selected for preview? Instead of having a radio button select one thumbnail on the main page, could there be check boxes to have up to X number of thumbnails?

  3. ringmaster
    Member
    Posted 10 years ago #

    How would you arrange them before the more? Would they all appear in a right-floated div vertically?
    I can certainly try to allow this option if you tell me more about how you would want it to display.
    One thing I was thinking of doing is adding a filter to it that would let you display an indexed photo by inserting a comment. For example, < !--exhibit:thumb:3 -- > would display the third thumbnail, or < !--exhibit:image:3 -- > would display the third full-sized image.
    You could then do something crazy in your post like:
    `blah blah blah
    < !--more-- >
    < !--exhibit:nothumbs-- >
    < !--exhibit:nopreview-- >
    < !--exhibit:image:1-- >
    < !--exhibit:caption:1-- >
    < !--nextpage-- >
    < !--exhibit:image:2-- >
    < !--exhibit:caption:1-- >
    < !--nextpage-- >
    < !--exhibit:image:3 -- >
    < !--exhibit:caption:3-- >'
    Very granular, but not the default.
    Also, I might change the behavior of clicking the thumbnail in the editor so that it inserts the appropriate thumbnail image tag along with a link to the correct viewing page. Kind of brainstorming, here.

  4. ringmaster
    Member
    Posted 10 years ago #

    Weird... People are actually testing this thing...
    I've tested the inline display, and it works just fine for me. I should note that the HTML comment < !--exhibit-- > should not have spaces in it. (This forum will not display the code without the spaces.) See it working here. If you view the source of the page before you click a thumbnail, you'll see the exhibit comment in the place where the full-sized image will appear.
    The exhibit_full.php page has some extra stuff in it that you probably don't need which is causing your errors. I put it there to illustrate some of the additional possibilities when using an external page to view the images. Your server does not have the EXIF extension installed for PHP. This extension extracts EXIF data that is embedded in JPEGs by digital cameras about things like date, shutter speed, light balance, and junk like that there.
    You can fix the exhibit_full.php page by removing the line exhibit_exif_info('IFD0.Model') from it. This would normally display the camera model used to take the picture. Passing no parameter to this function would display a list of all available entries for that photo. I will have to add a check for this extension in the next release of Exhibit so that it doesn't create errors if you don't have the extension.
    If you want a clean popup page that resizes to nothing but the full image size, then try this one, which I swiped from a place that I can unfortunately no longer remember:
    http://www.asymptomatic.net/popup.htm
    Note that clicking the above page link will probably resize your browser really small, since there is no picture specified. Put this file in your WP root, and set your popup page in the exhibit configuration using this code:
    $popup_page = '/popup.htm?';
    If I could see an example of the popups not working from the regular permalinks, that would be helpful. Or, if that's not possible, can you transcribe both of the URLs that your page presents? I'll need both the permalink and the view more link for the same post to compare them.
    Also, I found the MySQL bug that appears in the thumbnail area of the editing interface. It only occurs when you use the Advanced editor by default, which I wasn't doing. It'll be fixed in the next release.
    Thanks a lot for helping to test. I think I need to improve the documentation a bit to clarify the use of some of these things, especially the inline full-size images. I also have a list of cool new ideas to implement. Hopefully, I'll get to them this week.

  5. Anonymous
    Unregistered
    Posted 10 years ago #

    the only thing i would be concerned with (i dont know for sure) is what javascript commands are filtered by pop-up blockers these days. i'd hate for your stuff not to be seen simply because someone has google toolbar installed.
    i myself dont have any installed here at work .. but i'd be interested to hear from people that do.

  6. ringmaster
    Member
    Posted 10 years ago #

    Boy, you've been busy. :)
    I was hesitant to include any script that opens the documents on any newly created windows (using document.open) because I was sure it didn't work in one browser or another, so I tested it. As it turns out, it doesn't work in Opera. I imagine that there might be difficulty on Mac browsers, too.
    I imagine it wouldn't be too difficult to change the code so that it only used the document.open method for Mozilla and IE, and other browsers could use something else. But what else?
    It looks like you have the popups working well from the permalinks now, which is good.

  7. georgianlady
    Member
    Posted 10 years ago #

    I'm concerned about JS and Popup Blocking too. My wish would be for a robust script or solution in EXHIBIT that made it all downgrade such as:
    Popup photos autosize for all browsers which allow popups autosized.
    or else:
    exhibit_full.php is used when thumbnail clicked ... automatically dependant on whether or not popup or JS working.
    Or there may be a good PHP autosizing window code, but I haven't found it. In any case, that would be good for all allowing Popups only ... as I'd like to not bother people that don't like popups. I like popups for photos, but NOT the kind with ads in them ;)
    I've just now tested my posts with that popup script and using IE6 with the netscape popupblocker toolbar turned on, the pictures all popup nicely, no blocking.
    In mozilla Firefox I have pop up blocking turned on, and the photos popped up fine, weren't blocked.
    Hmmm. Fine action for me, as I said, I don't like ads, that's why I use Popup blocking, to get rid of Popup Ads. I guess that'll bother someone or other. But not me.

  8. Anonymous
    Unregistered
    Posted 10 years ago #

    Two requests: Having dynamically-resized popups would be great and a random preview photo on the homepage for each gallery post.

  9. ringmaster
    Member
    Posted 10 years ago #

    I can have Exhibit throw all of the preview thumbnails into a div, each of them individually in their own div, with a "view more..." link inside the outer div. You can style it how you like. Sound good?
    I could add a configuration option that lets you choose to use multiple preview images, or I could just make this the default. Hmm... Have to think on that one.

  10. Anonymous
    Unregistered
    Posted 10 years ago #

    If I click Make Thumbnails in the post page, would it create thumbnails for all images in the images folder or only for those images whose thumbnails have not been created yet (i.e. skipping the images for which a thumbnail was already create by the same script earlier)?

  11. ringmaster
    Member
    Posted 10 years ago #

    It currently rebuilds all thumbnails in the directory according to the settings in the configuration.

  12. Anonymous
    Unregistered
    Posted 10 years ago #

    That's not good. Imagine the kind of server resources this honey will eat if there were 100's of images and only one of them needed a new thumbnail. Better fix this.

  13. ringmaster
    Member
    Posted 10 years ago #

    Hmm... Maybe. I suppose I can make it so that individual images can have their thumbnails built by clicking on an exclusive link.

  14. theglobalguy
    Member
    Posted 10 years ago #

    I like the idea of the div within a div. Seems to me that it could use the same code for both one and/or multiple thumbnails.. if there is just one preview image, it wouldn't come out any different would it?

  15. Anonymous
    Unregistered
    Posted 10 years ago #

    Im having problem getting this to work.
    I'm only getting this:
    Fatal error: Call to undefined function: add_action() in /www/w19577/www-root/wordpress/wp-content/plugins/exhibit10.php(159) : eval()'d code on line 1

  16. georgianlady
    Member
    Posted 10 years ago #

    ... I can't seem to get the '< !--exhibit-- >' tag to work in the post so I can get a full-sized image to appear as I want it before the text (not suppressed) and the other thumbnails to appear as normal at the bottom of the post. Similar to the thing georgianlady was wanting.

    suey, I tried to get that to work as well, and I couldn't (as you may have read above). I ended up abandoning that aspect of it as I think it's really not going to work with the current version of how it's coded.
    You can do the suppress text method, but then I find that the photo just goes where it wants to, that's at the top of the post, right under the date.
    Anyway, I ended up doing popups (with the addition of a different popup method as I was talking about in a prior post earlier in this thread), and also can use the exhibit_full.php page option.
    I am *hoping* that the display inline feature will come back to work -- I like putting a 10px white border around the photo, and a div around that which has a 10px silver border, so the photo sort of has a nice frame ... so that's how I'd truly like to have EXHIBIT work to display inline, and leave all the thumbnails at the bottom as they show up now in posts. Action desired: Click thumbnail, picture shows up in the text where you placed < !--exhibit-- > in the template, with a div able to be styled, and the thumnails stay and the client can just click thumnails at will for the large photo to be replaced in the div.
    Hmmm. Perhaps the right method for this would be for EXHIBIT to append a div onto the end of the post, above the thumbnails, with the first thumnail's large image in that div ... with the clickable thumbnails to replace that image as already stated in prior paragraph. is that possible in a future edition?
    -----
    Another idea about EXHIBIT for future editions, in the edit interface, is it possible to make photos individually clickable to add into a post ... instead of the whole directory only ... but give options to do WHOLE DIRECTORY, INDIVIDUAL PHOTO, or MULTIPLE PHOTOS via ctrl-click ... ? :) Also, maybe "whole directory" can be made to check names of photos in post already, and only add new ones? That may be overkill for this plugins functionality, but thought I'd throw that out there anyhow ;)

  17. Anonymous
    Unregistered
    Posted 10 years ago #

    Bump! I really could use help with this:
    Im having problem getting this to work.
    I'm only getting this:
    Fatal error: Call to undefined function: add_action() in /www/w19577/www-root/wordpress/wp-content/plugins/exhibit10.php(159) : eval()'d code on line 1

  18. Anonymous
    Unregistered
    Posted 10 years ago #

    ringmaster: Build/rebuild thumbnails for individual images only

    It should rather just look for images which don't have a thumbnail and create thumbnails for those. Or maybe integrate the thumbnail function with the WP image upload & thumbnail creation page (wp-admin/upload.php)

  19. ringmaster
    Member
    Posted 10 years ago #

    So there should not be a way to rebuild all of the thumbnails even if they're already there? I guess that sounds like an odd thing to do, doesn't it?
    I hate to say it, but I'm sure that others will concur when I say that I'm not really satisfied with the WP image uploading and thumbnail features. It does what it does, but it has a few shortcomings in regard to what I'd like:

    • It uploads the original file and the thumbnail into the same single directory
    • It provides no catalogue of the images that you have uploaded previously
    • It accepts only one file at a time
    • It isn't available on the page that I'm on when I'm thinking to include a picture
    • There is no way to augment the functionality it provides without radically altering or replacing the WP code

    WordPress seems to have concentrated on blog features and left the heavy lifting of images for others, which suits me fine.

  20. Anonymous
    Unregistered
    Posted 10 years ago #

    Yes im getting this in the advanced edit page (in the right form, all the time), i cannot see any folders/pictures in the left form. This started directly after i installed the database tables.
    Fatal error: Call to undefined function: add_action() in /www/w19577/www-root/wordpress/wp-content/plugins/exhibit10.php(159) : eval()'d code on line 1

  21. Anonymous
    Unregistered
    Posted 10 years ago #

    ringmaster: So there should not be a way to rebuild all of the thumbnails even if they're already there?

    I just think that its an overhead to recreate all thumbnails even if they have already been generated. How about this ... by default only generate thumbnails for images without a thumbnail and also provide a manual link against each image to create individual a (new) thumbnail for it.

  22. chad
    Member
    Posted 10 years ago #

    Again, great plugin ringmaster! The upload capabilities and the image subdirectory creation changes you mentioned in your previous post would be really nice to have. Even better, it'd be cool to have another setting in a user's profile for their base upload directory. For example, have a setting so that when user billybob logs in, everything he uploads will go into the folder ~/uploads/billybob/. Then give billybob the ability to create his own subdirectories under that "home" directory.
    Thanks again for the time and effort put into this. I'm liking it a lot more than any of the other plugins out there and am really looking forward to the changes you mention for the next release.

  23. ringmaster
    Member
    Posted 10 years ago #

    Egad... I've been using the Vexme.com site for testing of Exhibit 1.0b, so I'm sure you looked at it exactly when I had the inline switched for testing popups. Gah!
    But this is an issue no longer, because Exhibit now supports per-post display config! You can make one post use pop-ups and another display images inline. This is working in 1.0b and can be seen in the two posts (so far) on vexme.com. Unfortunately, I'm a tease, since 1.0b is not quite yet available.
    1.0b now generates thumbnails in a directory only for those images that do not already have thumbnails. When all of the images have thumbnails, a [rebuild] link appears which will rebuild all of the thumbnails in the directory. I'm thinking that this is somethng you're not going to do every day, so you'll just have to accept this one-time server hit if you want to rebuild everything.
    The output that Exhibit produces validates as per W3C guidelines. See here and here.
    Would anyone be sad if I skipped the file management routines for Exhibit and just wrote a full Upload page replacement?
    I have looked at WP 1.3 alpha and it doesn't seem to offer any extra features over 1.2 at this time - it just messes around with how database table names are accessed. This doesn't affect Exhibit at all, since the table names that Exhibit uses are all in the Exhibit code. Without a better idea of the problems, I can't begin to diagnose what's wrong.
    That said, I have Exhibit running just fine on a local system with a 1.3 nightly installed. Works for me.

  24. Anonymous
    Unregistered
    Posted 10 years ago #

    BTW, will the plugin also generate thumbs for images which I might have uploaded but do not need a thumb for? Not a biggee but just something I was pondering on? Also, when will this new version become available for download?
    And yes, good work! Keep it up!!!

  25. chad
    Member
    Posted 10 years ago #

    Skipping the file management stuff wouldn't be so bad, that stuff would probably be more usefull as a seperate plugin/patch.

  26. georgianlady
    Member
    Posted 10 years ago #

    OOOOOH I'm excited! I was tearing through some yahoo group archives looking for something and ... anyone who's ever done that since Yahoo changed the group archiving structure knows how torturously impossible it is to find something two or more years ago by searching, or without knowing exactly when it was posted but know it was over two years ago to four years ago ... so I grew weary and went to close windows and had Vexme still opened, so I refreshed it and THAT's how I learned of the awesome features, through interaction on Vexme posts, without having read anything here.
    I see Inline Display working, and that's truly what I want! I love the way you can put the code in the post ... I was starting to suggest that in my above post, and deleted that, not wanting to get so complex, but I see that, once again, great minds think alike ;)
    Whenever you have 1.0b ready, I'm first inline ;) To have choice when posting for HOW Exhibit will be applied is exactly what I was wishing for so cudos so far!
    I'll be super thrilled to see it working for me, and can't say how much this plugin means already, it's farly superior to anything else for how well it makes a combo photo/weblog work. I like manually uploading my photos, and make my own thumbs generally, don't have imagemagic and such, and so this plugin is the only good one available. Really. Even in it's early stages. I played with Wp-photo before WP 1.2 came out (I liked it, but not fully enough) so I'm glad to see the vast improvement of such things with Exhibit. It sounds like the plan is it'll work wonderfully for the masses of photos languishing away on my MT Photo Log which I have no desire to switch over due to the heft of changes. To start afresh with photos in their directories usable, whoo hoo!
    Silly me. It's only photo stuff. Why am I so excited? Simple things for shutterbugs are complex though simple and make showing off photos a pure delight. Thanks Ringmaster!

  27. Anonymous
    Unregistered
    Posted 10 years ago #

    What about this permission Problem? How can I change the chmod settings made by exhibit? I really don't like to have Files on my Server with different owners than mine so I would be unable to delete them!
    Thats not good!

  28. Anonymous
    Unregistered
    Posted 10 years ago #

    Zip file upload capabilities
    If you do this could you make a checkbox to either "leave zip on server" or "delete zip."
    If the zip files were left I'd still have to FTP on over to delete them - not to mention the problems with different ownership for many people.
    I'm currently using this plugin and am quite happy with it. Thanks for everything :)

  29. Anonymous
    Unregistered
    Posted 10 years ago #

    Okay, I must be stupid, but how do you install this hack? I placed all the files in the /wp-content/plugins directory and activated it and I don't see any extra features afterward. There was no documentation or intallation instruction in the .zip file I downloaded.

  30. Anonymous
    Unregistered
    Posted 10 years ago #

    I have Exhibit installed on two computers currently. The first was just a test setup to make sure I could get everything working. The install went flawless and it is performing how I want. Great work!
    However, on the second computer, I can not seem to get Exhibit to create thumbnails for a directory. I have looked though many different areas of the code, but I can't seem to find the problem. Interestingly, the code will successfully create the "t" directory for the thumbnails, and can read and resize the images without any faults. However, the call to "ImageJPEG" fails on the output. I have checked to make sure the path names are correct and that the permissions on the "t" directory are not causing problems (I even tried permissions 777), but it is still not creating thumbnails properly. Does anyone have any ideas?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags