WordPress.org

Ready to get started?Download WordPress

Forums

How do you handle images? (9 posts)

  1. redneck
    Member
    Posted 10 years ago #

    WordPress has a file upload capability built it. I use this all the time.
    I don't use thumbnails because my PHP install doesn't have the required graphics module, but this shouldn't be difficult to set up.
    Note that after the file upload, WordPress gives you some HTML code you can use to put the image into your post. This text is easy to change. I have changed it in my set-up so I can use a special photo formatting CSS class.
    To do this, open /wp-admin/upload.php and change lines 206 and 208. In your case, you would want something like this:
    <img src="path/tn_imag.jpg" class="image_formatting" alt="This is an image" />
    image_formatting is a CSS class to format the image in your post.
    Now, for lines 206 and 208 you would need to reformat the tag symbols and quote markes with HTML entities, and you would have to do something different for the path. I can't tell you exactly, since I don't know where or how thumbs are stored. But if you know a little PHP, this should be enough to get you started.
    Honestly, no plug-in needed, as it is pretty simple.

  2. pezastic
    Member
    Posted 9 years ago #

    That's regarding the uploading of images? Being a newbie, I don't understand how to go about doing that.
    Regardless, my REAL need is to be able to place thumbnails in a post and have them link to the original images, as in request number 3.

  3. ringmaster
    Member
    Posted 9 years ago #

    @Pezastic:
    Open wp-content\exhibitimg\exhibit10p.php.
    Search for the line that reads:
    if(!$justlink)
    Just before that, insert this line:
    $ret = 'photo.'">';
    This will make every thumbnail link point to only the original image and will generally ignore any settings regarding popups or embedded images. Give it a whirl and let me know when it's working. ;)

  4. Zarniwoop
    Member
    Posted 9 years ago #

    The other way is to upload images via WordPress (let WP generate Thumbnails) and afterwards use the Image Browser plugin to include the image into the post.

  5. ringmaster
    Member
    Posted 9 years ago #

    Ah, but then you won't have access to the flickr crosspost features when Exhibit 2.0 is released... :)

  6. Anonymous
    Unregistered
    Posted 9 years ago #

    I am not being able to upload images.
    I am getting this error message:
    Warning: chmod(): No such file or directory in /home/clasede/public_html/weblog/wp-admin/upload.php on line 177
    It says the file was uploaded successfully, but I can't see it anywhere. Does it have to do with permissions?
    Thanks in advance,
    Jorge

  7. Anonymous
    Unregistered
    Posted 9 years ago #

    Please disregard last message, it had to do with the size of the file. Duh!
    Sorry, :)
    Jorge

  8. Anonymous
    Unregistered
    Posted 9 years ago #

    RM, when is Exhibit 2.0 expected to be released?
    I'm still your biggest fan, man :)

  9. symantix
    Member
    Posted 9 years ago #

    Oops...that was me just above.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.