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
Watermark on Images
-
- Phoca Member
- Posts: 11
- Joined: 04 Apr 2015, 10:41
Watermark on Images
Last edited by DiamondDog on 23 May 2015, 21:14, edited 2 times in total.
-
- Phoca Member
- Posts: 11
- Joined: 04 Apr 2015, 10:41
Re: Watermark on Images
Can anyone tell me where can I find the lines of code and in which file:
and
Where can I find the "<img" Code?
Code: Select all
<div class="pd-image"><img src="/images/phocadownload/XXX/XXX.gif" alt=""></div>
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">
- Jan
- Phoca Hero
- Posts: 48566
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Watermark on Images
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
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
If you find Phoca extensions useful, please support the project
-
- Phoca Member
- Posts: 11
- Joined: 04 Apr 2015, 10:41
Re: Watermark on Images
Thanks for your answer, the following is correct?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
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;
}
Code: Select all
$pdImage = '';
if ($v->image_download != '') {
$pdImage .= '<div class="pd-image">'.$l->getImageDownload($v->image_download).'</div>';
}
Code: Select all
$pdImage = '';
if ($v->image_download != '') {
$pdImage .= '<div class="pd-image">'.$l->getImageDownload($v->image_download).'</div>';
}
Code: Select all
$v->image_download
Code: Select all
<img src="xxx/setWatermark.php?file=<?php echo $row['img_link']; ?>" border="0" />
- Jan
- Phoca Hero
- Posts: 48566
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Watermark on Images
Hi, just print_r($v->image_download) to see which path of image do you get there.
Jan
Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Member
- Posts: 11
- Joined: 04 Apr 2015, 10:41
Re: Watermark on Images
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.
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.

- Jan
- Phoca Hero
- Posts: 48566
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact: