Enable watermark only for certain album.. Enable watermark only for certain album..
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Enable watermark only for certain album..

Started by mr.bena, April 02, 2012, 03:51:48 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

mr.bena

Hi, I would like to enable watermark for certain album only and not the whole album of my gallery. For example, if a user upload a picture in "Models" album, the picture should be watermarked but if he uploads a picture in "Natures" album that picture will not be watermarked..




Stramm

Haven't tried this but it schoul work...
open include/picmagmnt.inc.php and within the function add_picture add right after the global definitions

$exclude = array(1, 7, 12, 15);
if (in_array($aid, $exclude)) {
$CONFIG['enable_watermark'] = 0;
}


The $exclude array is what you have to define yourself. Add there all album ids you want to exclude from watermarking.

Ahm.. if you want to do it the other way round... let's say you disable watermarking in config and just want to enable it for some albums, then you change $CONFIG['enable_watermark'] = 0; to 1

mr.bena

It works! Thank you so much for your help.

Ben.