xoops forums

codefantom

Just popping in
Posted on: 2013/6/27 22:07
codefantom
codefantom (Show more)
Just popping in
Posts: 19
Since: 2013/6/19
#1

How do I change the Jquery image size in wfdownloads?

I am using wfdownloads and I noticed that the image screenshot and jquery image that loads when its clicked on are both the same size. When I change the size dimensions in the module admin then only the screenshot image changes. The jquery image doesn't. Where do I change the size of the jquery image? Or more clearly: How do I get it to load the full size picture that I upload?

codefantom

Just popping in
Posted on: 2013/6/28 19:53
codefantom
codefantom (Show more)
Just popping in
Posts: 19
Since: 2013/6/19
#2

Re: How do I change the Jquery image size in wfdownloads?

I'm still working on this issue with no solution. The module is creating a thumbnail for the screenshot image so I turned this offer as a solution but it just enlarges the screenshot image to the original size of 1120x1648.

I found out that I'm using a thickbox jquery script but the thickbox.css offered no solutions either.

There was a similar problem on a prestashop forum but the solution was to check the original image size to make sure it was larger than 600x600 and that wasn't the problem.

It seems that the module is using the generated thumbnail for the screenshot image and the thickbox image as well. And that defeats the whole purpose of the script.

I'm trying to get the displayed screenshot to show as 300x450 and the thickbox image to display as 600x900.

Does anyone know how to change the dimensions of the thickbox image?

This is my last issue and I'm ready to launch my site.

Thanks in advance.

luciorota

Module Developer
Posted on: 2013/7/17 14:50
luciorota
luciorota (Show more)
Module Developer
Posts: 197
Since: 2007/4/20
#3

Re: How do I change the Jquery image size in wfdownloads?

I think:

"thickbox image" is the original uploaded image

"screenshot image" is resized as thumbnail only if, in module preferences, "Use Thumbnails" preference is setted to "Yes"



In templates files, for example in "wfdownloads_singlefile.html":

"thickbox image" url is <{$xoops_url}>/<{$shots_dir}>/<{$down.screenshot_full}>
and it isn't resized

"screenshot image" url is <{$down.screenshot_thumb}>
and it is resized according to module preferences