Vano !!!!
Finally I am able to apply blur effect to the images those are in T&C. Here is what I did. please look into this and let me know if there is anything I have change. ( I have really no idea on PHP
) .
I found this
$file_src = get_file_path($thumb_file_name, "thumb", $cat_id, 0, 1);
$image_info = @getimagesize($file_src);
$width_height = (!empty($image_info[3])) ? " ".$image_info[3] : "";
after this I inserted
global $site_db;
$sql = "SELECT terms
FROM ".IMAGES_TABLE."
WHERE image_id = $image_id";
$result=$site_db->query($sql);
$row = $site_db->fetch_array($result);
$terms1 = $row['terms'];
if ($terms1['terms'] == 2) {
$file_src = "thumb.php?file=".urlencode(str_replace(THUMB_DIR."/", "", $file_src))."&folder=blur";
$thumb = "<img src=\"".$file_src."\" ".(($show_link) ? "" : "onClick=\"alert('".$lang['members_only']."'); \"")."border=\"".$config['image_border']."\"".$width_height." alt=\"".$image_name."\" />";
// $thumb = "<img src=\"./data/thumbnails/test.jpg\" />";
}
else {
$thumb = "<img src=\"".$file_src."\" ".(($show_link) ? "" : "onClick=\"alert('".$lang['members_only']."'); \"")."border=\"".$config['image_border']."\"".$width_height." alt=\"".$image_name."\" />";
}
I just moved
$thumb = "<img src=\"".$file_src."\" ".(($show_link) ? "" : "onClick=\"alert('".$lang['members_only']."'); \"")."border=\"".$config['image_border']."\"".$width_height." alt=\"".$image_name."\" />";
into this else condition.
then I took your thumb.php file from your blur effect post.
and now its done ..
If any image is set for Term and Condition, then the thumbnail is now blured.
One problem !!! IF the thumbnail is in details page's next or previous image, then its displaying normal thumnail ..
.
Where I have to make the changes for this ???