Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • Christiaan: No, this probably won’t be considered a bug. It looks like the developers purposely changed how the “description” is used, at least in this version. I liked the old style, so I made this fix.

    Sorry, please disregard my first post. I actually had to change a lot of other things in inline-uploading.php to get it to work properly. Here are all the changes.

    Line 143:
    $attachments = $wpdb->get_results("SELECT ID, post_date, post_title,
    Add post_content to the list between post_date and post_title.

    Line 243:
    Find the line
    $title = wp_specialchars($image['post_title'], ENT_QUOTES);
    After this line, add the following line:
    $descr = wp_specialchars($image['post_content'], ENT_QUOTES);

    Around line 247:
    Make this change for the two lines that begin with imga[{$ID}] and with imgb[{$ID}]. Replace alt=\"{$title}\", with alt=\"{$descr}\" title=\"{$title}\" or whatever change you wanted to make.

    Around line 252:
    Make the same change as above. It should look like
    <div id='div{$ID}' class='imagewrap' onclick=\"doPopup({$ID});\">
    <img id=\"image{$ID}\" src=\"$src\" alt=\"{$descr}\" title=\"{$title}\" $height_width />
    </div>

    Sorry, please disregard my first post. I actually had to change a lot of other things in inline-uploading.php to get it to work properly. Here are all the changes.

    Line 143:
    $attachments = $wpdb->get_results("SELECT ID, post_date, post_title,
    Add post_content to the list between post_date and post_title.

    Line 243:
    Find the line
    $title = wp_specialchars($image['post_title'], ENT_QUOTES);
    After this line, add the following line:
    $descr = wp_specialchars($image['post_content'], ENT_QUOTES);

    Around line 247:
    Make this change for the two lines that begin with imga[{$ID}] and with imgb[{$ID}]. Replace alt=\"{$title}\", with alt=\"{$descr}\" title=\"{$title}\" or whatever change you wanted to make.

    Around line 252:
    Make the same change as above. It should look like
    <div id='div{$ID}' class='imagewrap' onclick=\"doPopup({$ID});\">
    <img id=\"image{$ID}\" src=\"$src\" alt=\"{$descr}\" title=\"{$title}\" $height_width />
    </div>

    You have to edit inline-uploading.php (in your wp-admin folder). Go to around line 251, and find the line that says

    <img id=\"image{$ID}\" src=\"$src\" alt=\"{$title}\" $height_width />

    Change this line to

    <img id=\"image{$ID}\" src=\"$src\" alt=\"{$descr}\" title=\"{$title}\" $height_width />

    This should take effect the next time you upload something. Unfortunately, the change won’t apply to anything you’ve already uploaded, because the HTML is already stored in your database.

    You have to edit inline-uploading.php (in your wp-admin folder). Go to around line 251, and find the line that says

    <img id=\"image{$ID}\" src=\"$src\" alt=\"{$title}\" $height_width />

    Change this line to

    <img id=\"image{$ID}\" src=\"$src\" alt=\"{$descr}\" title=\"{$title}\" $height_width />

    This should take effect the next time you upload something. Unfortunately, the change won’t apply to anything you’ve already uploaded, because the HTML is already stored in your database.

Viewing 5 replies - 1 through 5 (of 5 total)