Forums

upload images: no thumb-URL created (6 posts)

  1. Jack Tummers
    Member
    Posted 7 years ago #

    This is so stupid, I'm afraid I'm overlooking the obvious again?
    When I use the upload option, upload a file, click 'create thumbnail' (fixed size or custom size) all works well (the thumb-img.jpg IS created on the server in the same imagefolder as the original larger image), then I get the screen that says "here is the code to display etc.", but this code is always the code to the large image, while I want the thumbnail to be displayed!
    I searched throught the php-files but I can't find where to edit/hack the code for the ' fileupload_url'

  2. chuyskywalker
    Member
    Posted 7 years ago #

    wp-admin/upload.php somewhere round line 186
    ;D

  3. Jack Tummers
    Member
    Posted 7 years ago #

    if ( ereg('image/',$img1_type)) {
    $piece_of_code = "<img src=&quot;". get_settings('fileupload_url') ."/$img1_name&quot; alt=&quot;$imgdesc&quot; />";
    } else {
    $piece_of_code = "$imgdesc";
    };

    You mean this code? And then change it to:
    $piece_of_code = "<img src=&quot;". get_settings('fileupload_url') ."/thumb-$img1_name&quot; alt=&quot;$imgdesc&quot; />";
    ?

  4. chuyskywalker
    Member
    Posted 7 years ago #

    I dont know, did changing it work?
    :D

  5. astroja
    Member
    Posted 7 years ago #

    were is the upload option? i downloaded this Version 1.2,

  6. moshu
    Member
    Posted 7 years ago #

    upload option > see here

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.