Page 2 of 2

Re: download image not showing

Posted: 31 Aug 2016, 11:19
by mentalhacker
Hi,
Yes, I could figure out that $linkDownloadB contains the link for downloading the file.
And sorry, I wasn't precise. Between $linkDownloadB and $linkDownloadE are two things: title and filename.

So if I want to paste the image here, could you please help me what exactly I should paste in the line. What to copy here if I want to link the icon, and what to copy if I want to link the phocathumbnail image? (I'm not a php expert.)

Should it be something similar to this:

Code: Select all

$pdFile .= $linkDownloadB .$l->getName($v->title, $v->filename, $v->file_icon_size) .$linkDownloadE;
Thank you!
mentalhacker

Re: download image not showing

Posted: 02 Sep 2016, 15:17
by Jan
Hi, unfortunately, I didn't such customization yet, so I don't have any exact guide what exactly needs to be added there.

Jan

Re: download image not showing

Posted: 02 Sep 2016, 15:37
by mentalhacker
OK, but do you think it has a good chance to add the new feature of linking the icons to Phoca Download in the near future?

Thanks,
mentalhacker

Re: download image not showing

Posted: 06 Sep 2016, 23:54
by Jan
Hi, I can add it to feature request list (but really no idea when I will be able to take a look at it). But to do this, please write small description of it. I know, the image should be linked but what is the reason for this if there is title and download button set as link, why to add third item as link :idea:

Jan

Re: download image not showing

Posted: 20 Sep 2016, 22:29
by mentalhacker
Jan wrote:I know, the image should be linked but what is the reason for this if there is title and download button set as link, why to add third item as link
Hi Jan,
(Sorry for the delayed reply, I had too much work in the last couple of days.)

Ok, let me explain the situation with some more details. Maybe you will see that there can be cases in which linking the images can have more significance and reason than in other cases.
Our company is a publishing house, and on our websites we make different periodicals available to users in pdf format. There are several types, for instance, weekly magazines, monthly, or quaterly periodicals. Now, it is obvious and appropriate that an issue of a periodical is identified not only by the title but also by the cover image. You can take a look at here:

http://evangelikuselet.hu/lapszamok/category/11-2015
http://evangelikuselet.hu/lapszamok/category/12-2016
http://lutherkiado.hu/letoltes/oktatas/ ... zikoenyvek

(As you can see, the title is turned off in css because of layout design reasons.)
Well, in these cases the users rightly keep asking why the cover images are not clickable. They simply don't understand what is so difficult to link an image. And they are right. (It is very tiring to clarify all the time, in every case, that the download engine is a third party extension etc.)
Additionally, before the company decided to go to Joomla engine, the websites had been individually developed projects (without any extended cms), and on those sites all the covers had been linked, so the users are somewhat used to that feature, and they consider clicking on a cover quite natural.
I think in this case the feature request of linked images is fairly legitimate and appropriate.
What do you think, Jan?

(And let me pursue the matter of this code line a bit further:

Code: Select all

$pdFile .= $linkDownloadB .$l->getName($v->title, $v->filename) .$linkDownloadE;
This is the download link that contains the title and the filename, but only the filename is displayed by default. Is it possible to put the main icon or the phocathumbnail image into this download link?)

Thanks,
mentalhacker

Re: download image not showing

Posted: 21 Sep 2016, 00:32
by Jan
Hi, yes, you can copy this code and customize it for the image. So the image will be inside the same download link. :idea:

Jan

Re: download image not showing

Posted: 04 Oct 2016, 13:54
by mentalhacker
Thank you, Jan. Now it works, the image has been put into the same download link.

mentalhacker

Re: download image not showing

Posted: 07 Oct 2016, 19:21
by Jan
Ok