I don't know whether I should start another new thread for this. I know the rule about one question/topic per thread, but since this post is related to the original topic, I am posting it here. (@moderators: just move it to a new thread if you judge so).
Basically, it's about implementing the 'masking' (i.e. allow user to right-click & save, but he/she will only get 1x1 pixel file) feature on Slideshow.
GauGau, this is what I tried (which has not worked yet):
- With slideshow enabled, i tried replacing the following in displayimage.php, within the slideshow() function:
$params = array('{CELL_HEIGHT}' => $CONFIG['picture_width'] + 100,
'{IMAGE}' => '<img src="' . $start_img . '" name="SlideShow" class="image" /><br />',
'{ADMIN_MENU}' => '',
);
with:
$params = array('{CELL_HEIGHT}' => $CONFIG['picture_width'] + 100,
'{IMAGE}' => '<div style=\"width:100%; height:100%; background: url(".$start_img.") no-repeat;\" title=\"{$lang_display_image_php['view_fs']}\"><img src=\"images/spacer.gif\" {$image_size['geom']} border=\"0\" alt=\"\" /></div>',
'{ADMIN_MENU}' => '',
);
I traced the origin of $start_image, and found that it is assigned to $picture_url in slideshow.inc.php. It looked ok up to this point. I thought I could just paste your code, and replace $picture_url with $start_img.
But when I tried running the slideshow, I got a parse error. Something to do with expected ')'. I don't know where the source of this error is.
Any tips/hints, GauGau? Thanks in advance.