ryturner
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Antisnews troubleI am having this problem as well and just like @treerootandtwig, I am a wordpress newbie. I see the area you are wanting us to modify in the cropper.php, and i see the first die() section in the Show_cache_file but i don’t know what it means to “comment out” a section?
mine currently looks like this:
function show_cache_file ($cache_dir, $mime_type,$lastModified,$fcatcropw,$fcatcroph,$tipid) {
$cache_file=”;
$cache_file_the_cache_file=antisnews_get_cache_file($lastModified,$fcatcropw,$fcatcroph,$tipid);
if( isset($cache_file_the_cache_file) && !empty($cache_file_the_cache_file))
{
$cache_file = $cache_dir . ‘/’ . $cache_file_the_cache_file;
}if (file_exists($cache_file)) {
if(isset($cache_file) && !empty($cache_file)){
$gmdate_mod = gmdate(“D, d M Y H:i:s”, filemtime($cache_file));
}if(! strstr($gmdate_mod, “GMT”)) {
$gmdate_mod .= ” GMT”;
}if (isset($_SERVER[“HTTP_IF_MODIFIED_SINCE”])) {
// check for updates
$if_modified_since = preg_replace (“/;.*$/”, “”, $_SERVER[“HTTP_IF_MODIFIED_SINCE”]);if ($if_modified_since == $gmdate_mod) {
// header(“HTTP/1.1 304 Not Modified”);
die();
}}
$fileSize = @filesize ($cache_file);
return $cache_file;
die();
}
}
am i in the right section? and if so what am i supposed to do to it exactly?