Thumbnail Positioning and Adding Info

Permalink Browser Info Environment
Hi,

I have managed to get the addon working within my template. I had to modify the template page quite a bit to change navigation. Everything works fine as you advised. A few more niggling issues.

1. Thumbnails at the bottom - I want to position and style them the same as shows on the bottom-left of the page, is that possible?
1a - Do I need to modify the thumbnails_plus_large_300px.php custom template for that?

2. I want to add some static description on top of the thumbnails.

3. The larger image resized by the addon converts my transparent PNG images to JPG and adds black to the background, can the addon maintain transparent PNG?

Much thanks for your help
Regards,
Farhan

Type: Discussion
Status: New
zambeel
View Replies:
jb1 replied on at Permalink Reply
jb1
Hi Farhan,
To answer those questions:

1) That could be done with changes to the CSS file (that will require some decent CSS knowledge, but looking at the current site you've done, you should be able to do that. If you wanted to add some more DIV tags, etc to the custom block template that may give you more control, but I'd imagine it's all possible with just pure CSS.

2) That would require editing the custom block template. You can use this PHP code to display the image "title":
$fv->getTitle()

This sort of change would require basic PHP knowledge and probably some CSS tweaking to make it look good.

3) Try editing the helper/jqzoomimageresizer.php file. Look for line 130 and you'll need to change the ".jpg" to ".png". You may also need to edit line 102 & 108 where resampled images are created, but I haven't tested it. I did have a question some time ago from another customer on another add-on a long time ago about PNG resampling and I'm sure if you're stuck you may find some answers in the C5 forum. And if you get really stuck, let me know and I'll try to find the old support request that mentioned this. It would have been over a year ago, so it's probably buried somewhere deep.

Hope this helps.

JB
zambeel replied on at Permalink Reply
zambeel
Hi,

Thanks for the tips.

I have managed to change jqzoomimageresizer.php. Now it creates PNG files. Transparency is still a challenge.

I have tried code from PHP's website and other places.

Please have a look athttp://www.zambeel.ca/testc/10peaks/index.php/ski...

Any ideas about preserving transparency?

I have made the following changes at Line 108.

imagealphablending($image, false);
imagesavealpha($image, true);
$transparent = imagecolorallocatealpha($image, 255, 255, 255, 127);
imagecolorallocate($image, 255, 205, 255);
imagefilledrectangle($image, 0,0, $finalWidth, $finalHeight, $transparent);
$res2 = @imagePNG($image, $newPath);
jb1 replied on at Permalink Reply
jb1
I looked through all my previous support requests and forum discussions and found the post I was thinking of. Have a read of this:
http://www.concrete5.org/marketplace/addons/gallerific/questions-an...
And it should hold answers to your questions. If you're still stuck after that just let me know.

concrete5 Environment Information

Browser User-Agent String

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.