Page 1 of 2
download image not showing
Posted: 19 Feb 2014, 11:47
by grafica
Hi, I have some trouble displaying download's image in the front-end.
the default layout should already show it as there's the parameter for it
Code: Select all
{pdimage} {pdfile} {pdfilesize} {pdversion} {pdlicense} {pdauthor} {pdauthoremail} {pdfiledate} {pddownloads} {pddescription} {pdfeatures} {pdchangelog} {pdnotes}
{pdmirrorlink2} {pdmirrorlink1}
{pdreportlink}
{pdrating}
{pdtags}
I have set an image for the download (the default png made from the first page of the PDF) but I don't see it.
any help?
Re: download image not showing
Posted: 19 Feb 2014, 23:34
by Jan
Hi, which view you are setting, which Phoca Download version?
Jan
Re: download image not showing
Posted: 20 Feb 2014, 15:19
by grafica
Hi, thanks for reply.
Phoca Download v. 2.1.9 (I believe it's the latest).
I'm trying to configure the file list view, once you browse folders in a page created with a "Phoca Download ยป List Of Categories (Categories View)" menu item.
Re: download image not showing
Posted: 20 Feb 2014, 17:47
by grafica
Hi I would also like to know if it is possible to have Details printed directly below filename, and hide the "Deatils" button.
Re: download image not showing
Posted: 23 Feb 2014, 22:38
by Jan
Hi, testing now 2.1.9, working normally for me
- did you set the image in "image" parameter in file edit?
Details below - for this you need to customize the output directly in php code
Jan
Re: download image not showing
Posted: 14 Jun 2016, 14:52
by mentalhacker
Hi Jan,
I have the same problem with Phoca Download file images.
If I add an image to a file, it doesn't display on the website. If I add an icon, it works well (but an icon is not linked).
I use the latest version of Phoca Download (3.1.2)
The files are usually pdf files, and the first page of the pdf is converted into jpg or png, and then resized in order to use it as an icon image. I want to add these images to the Phoca Download files in file edit to use them as download images, that is, if someone clicks on them, it should be the same result as clicking on the Download button. But the images don't even show up.
Do you have any idea what the problem is?
Thanks,
mentalhacker
Re: download image not showing
Posted: 15 Jun 2016, 10:22
by mentalhacker
OK, I realized that the image added to a file shows up only in the details view. (I don't use the Details button on the website but I would need linked images.)
Then I would like to post a feature request. Is it possible to add an option to icons so that the user could choose if the added icon is linked or not. The icon link may point either to direct download or to preview mode. So actually this feature means two options.
Thank you,
mentalhacker
Re: download image not showing
Posted: 19 Jun 2016, 15:47
by Jan
Hi, image you can display in case it gets right name, see:
https://www.phoca.cz/documents/17-phoca- ... -file-name
Linking the icons - added to feature request.
Jan
Re: download image not showing
Posted: 28 Aug 2016, 23:11
by mentalhacker
Hi Jan,
Thank you, I tried the phocathumbnail string. It works well, and it's also good for the purpose such as the main icon. But unfortunately the icons are not linked.
I tried to dive into the core files, and in default_files.php I found this (from line 51):
Code: Select all
$pdFile .= '<div class="pd-filename">'. $imageFileName['filenamethumb']
. '<div class="pd-document'.$this->t['file_icon_size'].'" '
. $imageFileName['filenamestyle'].'>';
$pdFile .= '<div class="pd-float">';
$pdFile .= $linkDownloadB .$l->getName($v->title, $v->filename) .$linkDownloadE;
$pdFile .= '</div>';
The pd-float element is between $linkDownloadB and $linkDownloadE, so it is linked.
Is it possible to put the thumbnail image between $linkDownloadB and $linkDownloadE, and if yes, what is the correct syntax?
Thanks,
mentalhacker
Re: download image not showing
Posted: 30 Aug 2016, 23:20
by Jan
Hi, see line 59 in this file, there the variable $linkDownloadB gets all the content - it is a link for download the file.
The pd-float element is between $linkDownloadB and $linkDownloadE, so it is linked
Not sure if I understand correctly? the pd-float element is not between $linkDownloadB and $linkDownloadE it is over it - if you will paste the image here, it will be a part of the link to download.
Jan