• 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?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Moderator James Huff

    (@macmanx)

    Volunteer Moderator

    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' />

    to:

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

    Sorry for the confusion.

    Thread Starter richards1052

    (@richards1052)

    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.’

    Moderator James Huff

    (@macmanx)

    Volunteer Moderator

    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>

    Thread Starter richards1052

    (@richards1052)

    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.

    Moderator James Huff

    (@macmanx)

    Volunteer Moderator

    I believe “Exhibit” is what you’re looking for: http://redalt.com/downloads/

    Thread Starter richards1052

    (@richards1052)

    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.

    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

    http://fredfred.net/skriker/index.php/iimage-browser

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

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘image upload code: how to display thumbnails?’ is closed to new replies.