image upload code: how to display thumbnails? (8 posts)

  1. richards1052
    Posted 9 years ago #

    I'm new to WP & uploading images here. I uploaded an image & designated a custom thumbnail be created. Yet when the code was generated, there was nothing referring to the thumbnail. I only got code for a full size image display. What do you have to do to get the thumbnail displaying properly?

  2. The image thumbnails are created with "thumb-" before the original file name. So, the thumbnail for "image.jpg" would be "thumb-image.jpg". All you'll have to do is replace the name of the image file linked to in the presented img tag with the thumbnail's file name. For example, change:

    <img src='http://www.domain.com/wordpress/images/image.jpg' alt='my image' />


    <img src='http://www.domain.com/wordpress/images/thumb-image.jpg' alt='my image' />

    Sorry for the confusion.

  3. richards1052
    Posted 9 years ago #

    I'm still confused.

    I want to make clear that I don't only want to display a thumbnail of the image. I want to display a thumbnail which also links to the full sized image & allows it to display in a pop up window--how do I do this?

    Also, for some reason yr. code trailed off outside the right hand margin so I couldn't see the critical portion of it with the 'thumb.'

  4. Ah, in that case, do this (If the code moves off the screen again, just copy/paste it into a text editor. The entire field should be selectable, even though it isn't visible.):

    <a href="http://www.domain.com/wordpress/images/image.jpg" target="_blank"><img src='http://www.domain.com/wordpress/images/thumb-image.jpg' alt='my image' /></a>

  5. richards1052
    Posted 9 years ago #

    Yes, that worked much better (see the results at http://box22.bluehost.com/~richard2/wordpress/2005/06/04/jonah-my-knight-in-training/ . Thanks for the suggestion.

    Next question: isn't there some way to automate this so you don't have to manually configure your code ea. time you upload an image for which you want both a thumb & full size image (which is often the configuration I want when I upload images).

    Is there a plug in that might help do this? I moved here fr. TP & their image upload feature allowed for automation of the image upload code so you could create yr. own default settings that translated into the corresponding code.

  6. I believe "Exhibit" is what you're looking for: http://redalt.com/downloads/

  7. richards1052
    Posted 9 years ago #

    I just downloaded the exhibit & write post find plug ins, unzipped them & uploaded them to my wp-content/plug ins folder.

    The exhibit upload consisted of an Exhibitimg folder & a separate Exhibit10.php file. I uploaded both plug ins to the plug ins folder. When I attempted to activate the Write post find plug in I got an error msg. saying it didn't like something about the Exhibit10.php file. So I moved this file into the exhibit img folder. Then Write post found activated correctly.

    But when I attempted to activate Exhibit, I got this error msg.:

    Fatal error: Call to undefined function: get_currentuserinfo() in /home/richard2/public_html/wordpress/wp-content/plugins/exhibitimg/exhibit10.php on line 205

    Someone tell me how to install this properly & activate it, pls.

  8. Jinsan
    Posted 9 years ago #

    read the documentation provided with the plugin it tells you everything you need to know.

    If you JUST want image management and NOT a gallery I highly recommend IImage Browser


    Does all that you need it to, except create a gallery - very easy to install. Upload 2 files, configure none, and activate

Topic Closed

This topic has been closed to new replies.

About this Topic