23
Mar
Open up /wp-admin/upload.php
One lines 202 & 203, there's this: {re-place [{ with < }
if ( ereg('image/',$img1_type) )
$piece_of_code = "[{ img src='" . get_settings('fileupload_url') ."/$img1_name' alt='$imgdesc' />";
Replace it with this:
<code>
if ( ereg('image/',$img1_type) ) {
if($_POST['thumbsize'] != 'none' )
$piece_of_code = "[{ a href='" . get_settings('fileupload_url') . "/$img1_name'>[{ img src='" . get_settings('fileupload_url') ."/thumb-$img1_name' alt='$imgdesc' />[{ /a>";
else
$piece_of_code = "[{ img src='" . get_settings('fileupload_url') ."/$img1_name' alt='$imgdesc' />";
}
from http://linked.viper007bond.com/wp15-uploadmod.php
Leave a Reply