[BUG] Icon Path Incorrect

Phoca Download - download manager
mdriess
Phoca Member
Phoca Member
Posts: 10
Joined: 09 Sep 2011, 10:09

[BUG] Icon Path Incorrect

Post by mdriess »

I have my absolute path setup in the options of Phoca download, which works great for files, but I think it's messing up custom icons - when I uploaded an icon, the img src that it tries to display is /home/myusername/public_html/images/phocadownload/icon.jpg

However, the upload works fine and if I modify the path after I click the image (it displays the image as broken, but you can still click the link to insert it as an icon) it will work fine. Does this make sense?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49144
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: [BUG] Icon Path Incorrect

Post by Jan »

Hi, yes, the images cannot be displayed from the destination behind public_html ... there only files can be downloaded - but html cannot work with them and it is not allowed of course.

Jan
If you find Phoca extensions useful, please support the project
mdriess
Phoca Member
Phoca Member
Posts: 10
Joined: 09 Sep 2011, 10:09

Re: [BUG] Icon Path Incorrect

Post by mdriess »

Right - what I'm saying is that when absolute path is set to a custom value, it messes up how icons are loaded by the script.

They are uploaded to the right directory (public_html/images/phocadownload), but the script tries to add /home/myusername/public_html in front of the source of the image when you select it as the custom icon for a download item.

Does this make sense?

Thanks
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49144
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: [BUG] Icon Path Incorrect

Post by Jan »

Hi, confirmed, the path to images is wrong in case the custom folder will be selected

Thank you for the info, will be solved in next version.

Jan
If you find Phoca extensions useful, please support the project
mdriess
Phoca Member
Phoca Member
Posts: 10
Joined: 09 Sep 2011, 10:09

Re: [BUG] Icon Path Incorrect

Post by mdriess »

Sure thing, thanks for the great script!
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49144
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: [BUG] Icon Path Incorrect

Post by Jan »

Should be fixed in 2.1.2

Jan
If you find Phoca extensions useful, please support the project
Post Reply