Error TimThumb wordpress di PHP 5.3

Untuk cara mengatasi error TimThumb wordpress silahkan bukak saja file timthumb.php pada themes yang di gunakan

Untuk Script

// positional cropping!
if ($align) {
if (strpos ($align, ‘t’) !== false) {
$src_y = 0;
}
if (strpos ($align, ‘b’) !== false) {
$src_y = $height – $src_h;
}
            if (strpos ($align, ‘1’) !== false) {
                    $src_x = 0;
                }
if (strpos ($align, ‘r’) !== false) {
$src_x = $width – $src_w;
}
}

 

Ganti dengan

// positional cropping!
if ($align) {
if (strpos ($align, ‘t’) !== false) {
$src_y = 0;
}
if (strpos ($align, ‘b’) !== false) {
$src_y = $height – $src_h;
}
                if (strpos ($align, ‘0’) !== false) {
                    $src_x = 0;
                }
if (strpos ($align, ‘r’) !== false) {
$src_x = $width – $src_w;
}
}

 

Semoga bermanfaat

comments (0)

Track comments via RSS 2.0 feed. Feel free to post the comment, or trackback from your web site.

Currently there are no comments related to article "Error TimThumb wordpress di PHP 5.3". You have a special honor to be the first commenter. Thanks!

Leave a Comment