Page 1 of 1
Watermark on Images
Posted: 13 May 2015, 12:59
by DiamondDog
Hello,
I would like to add to all the previews a watermark.
Is there already a plugin?
If not can someone tell me where I can find all files in the preview images are processed?
Thanks in advance.
Greats DiamondDog
Re: Watermark on Images
Posted: 16 May 2015, 19:56
by DiamondDog
Can anyone tell me where can I find the lines of code and in which file:
Code: Select all
<div class="pd-image"><img src="/images/phocadownload/XXX/XXX.gif" alt=""></div>
and
Code: Select all
<div aria-busy="true" class="shadow phocadownloadpreviewwindow " style="z-index: 65557; left: 661px; top: 327px; width: 320px; height: 200px;" aria-hidden="false" role="dialog" id="sbox-window"><div class="sbox-content-image" style="opacity: 1;" id="sbox-content"><img src="/phocadownloadpap/XXX/XXX.gif" height="200" width="320">
Where can I find the "<img" Code?
Re: Watermark on Images
Posted: 17 May 2015, 14:44
by Jan
Hi, in these files:
components\com_phocadownload\views\category\tmpl\default_files.php
components\com_phocadownload\views\download\tmpl\default.php
components\com_phocadownload\views\file\tmpl\default.php
Jan
Re: Watermark on Images
Posted: 18 May 2015, 19:31
by DiamondDog
Jan wrote:Hi, in these files:
components\com_phocadownload\views\category\tmpl\default_files.php
components\com_phocadownload\views\download\tmpl\default.php
components\com_phocadownload\views\file\tmpl\default.php
Jan
Thanks for your answer, the following is correct?
components\com_phocadownload\views\category\tmpl\default_files.php
Code: Select all
$pdImage = '';
if ($v->image_download != '') {
$pdImage .= '<div class="pd-image">'.$l->getImageDownload($v->image_download).'</div>';
$d .= $pdImage;
}
components\com_phocadownload\views\download\tmpl\default.php
Code: Select all
$pdImage = '';
if ($v->image_download != '') {
$pdImage .= '<div class="pd-image">'.$l->getImageDownload($v->image_download).'</div>';
}
components\com_phocadownload\views\file\tmpl\default.php
Code: Select all
$pdImage = '';
if ($v->image_download != '') {
$pdImage .= '<div class="pd-image">'.$l->getImageDownload($v->image_download).'</div>';
}
Is this the Image Link?
Because I would like to integrate my watermark scripts so:
Code: Select all
<img src="xxx/setWatermark.php?file=<?php echo $row['img_link']; ?>" border="0" />
Re: Watermark on Images
Posted: 21 May 2015, 10:59
by Jan
Hi, just print_r($v->image_download) to see which path of image do you get there.
Jan
Re: Watermark on Images
Posted: 22 May 2015, 23:57
by DiamondDog
Hello,
I've found a solution, it waft interested, here you get the solution for downloading
http://www.file-upload.net/download-106 ... d.rar.html
The issue can be closed.

Re: [Solved] Watermark on Images
Posted: 23 May 2015, 16:45
by Jan
Ok