Gallery Images Doesn't Seem to be Responsive

Permalink Browser Info Environment
Hello there,
We have been using this add-on since a long time in developing our production site. Our site is not published yet because of some of the issues to be resolved. One of the issues is responsiveness of touch gallery add-on images. In this following exam page:

http://exrx.net/concrete/Store/VHI/Kits/DynamicExercises...

We have gallery images in the right side bar. If you make your browser screen narrower, images does not respond to be smaller or fit the size as the attached screenshot and stick with the assigned width in the gallery option. Although, I have selected, shrink down proportionally, it does not wok responsively. I am guessing, if the image dimension option can be give as % instead of pixels, then the images might work well. Can you please inform me how I can make your add-on work responsive? Or if it will not work in the case we are having in our side bar, then is there any chance to add a feature to your add-on? Last is, I can see there is an update notice for your add-on in the dashboard. Do I need to update the add-on before going to the concrete5 version 8?

Thanks in Advance!

1 Attachment

Type: Discussion
Status: Resolved
TiPritam
View Replies:
mnakalay replied on at Permalink Reply
mnakalay
Hello,
To answer your questions:
1- Yes the gallery is responsive as it adapts to different screen sizes. Each image, however, has a fixed size. But that can be easily fixed in your template
2- Selecting the setting to "resize proportionally" means your bigger images will be "physically" resized proportionally to create thumbnails (as opposed to resized and cropped), not that it will resize proportionally when resizing the browser.
3- I do not know what version you are using but Touch Gallery has been compatible with v8 for a few versions now. Is there any reason you don't want to upgrade?

As to making thumbnails change size with the resizing of the browser, please send me your template zipped and I will make the modification for you.
TiPritam replied on at Permalink Reply 1 Attachment
TiPritam
Hi,
Thanks for your kindest reply. I have got your first two points. Here is my answer for the one:
3- Yes, we want to update to the latest version of the add-on but I am wondering if there is any edits in the templates, will they be lost after the update or not. BTW, I am using v7.5.13

And thank you very much as you want to help us with the templates. I have uploaded the zip format of that template folder.

Thanks!
mnakalay replied on at Permalink Reply
mnakalay
Hi Again, you sent me all the templates included with the gallery. I need to know which one you are using and or you modified.

Also, you have to know that you should never modify a package directly so after you tell me which you are using I will create an independent template that you will use which will allow you to update the gallery anytime you want.
TiPritam replied on at Permalink Reply 1 Attachment
TiPritam
Hello There,
Thank you very much for your reply again. There was another guy before me contracting the same site, so I am not sure if he had made some edits or not. Secondly, I have now checked and found no templates is being used in the right side bar [see the attachment]. Actually my Boss wants the things to be as simple as we can keep. So, he doesn't like to use templates. Using a same thing or recycling in across the site is the main concern. And that's why if we use templates, more item gets added in the list of recycling. He wants very less amount of resources to be used in every where and that's why I am guessing my previous guy had not used any templates. In this case, what could be the solution?

Thanks,
Pritam
mnakalay replied on at Permalink Reply
mnakalay
Hello,

My understanding is the block was modified directly. This is the worse possible thing you can do. Templates exist for a reason. They are there so you can create custom designs and functionality that will not be overwritten when you upgrade. By modifying the code directly you have ensured you cannot easily upgrade the gallery and will not benefit from future fixes an enhancement.

Also, I cannot support a package that was modified. It is not my work anymore, it is a modification of my work and I can't support something I don't have control of.

Like I said, I will send you a template that you can use that does what you want. If you don't want to use the template, feel free to use the code in it and add it to your own modifications.
TiPritam replied on at Permalink Reply
TiPritam
Hi,
Thanks for your reply. I am not sure if the core is customized. As I said, there was a previous developer before me so I am not sure if he did anything. And it's been a long time so asking him to know what he had changed will not get any proper answer. Anyways, thanks for your consideration for a new template. It will be highly appreciated.

Thanks Again!
mnakalay replied on at Permalink Reply 1 Attachment
mnakalay
Here's the template. You have to unzip it inside application/blocks so you end up with application/blocks/touch_gallery/templates/ex_rx and some files inside it.

Once that's in place, apply the template to your gallery (name Ex Rx).

To make the gallery fluid but within limits, I set a variable inside the file view.php $minWidthRatio and I gave it a value of 0.8 which means 80%

This is used to calculate the minimum width allowed based on the thumbnail width. So, in this case, minimum width will be 80% of thumbnail width. Feel free to change that value to your liking.

Could you do me a favor please, could you take the time to leave a review for Touch Gallery? It really helps when you share your opinion with others. You can do that here:https://www.concrete5.org/marketplace/addons/touch-gallery1/reviews...

Thank you
TiPritam replied on at Permalink Reply 1 Attachment
TiPritam
Hi again,
Sorry for the late reply. I have gone to give you a nice review as you deserve it but it seems like I can't as we have not purchased the add-on using my account. However, I have asked my boss for that and hopefully he will give from his account if he has not already. We are so glad having your new template exclusively for us. I have implemented the new template on this page
http://exrx.net/concrete/test/vhi-proof/OrthopedicRehabilitation-3-...
but seems like the images are not behaving as in the gallery. you can try and see the problem. I am guessing some parts of the codes are missing or something that I can't figure out. Also it works fine in respect to the previous responsiveness problem but whe the browser width is 778px to 768px it seems like the problem is there (as the attached screenshot). I am guessing a change in the value that you have mentioned would do the trick here.

I have another thing to know but I am afraid if I am asking you more than I deserve.
I would like have some suggestion on how I can get rid of the orange underline from the gallery images. If I remove the underline then it affects our all other a tagged links. If it's not burden for you, can you please give me a little idea how I can differentiate the normal links and the gallery image links so that I can get rid of the underline only from the gallery images. Do I need to change the core file or work on the gallery template?
example page:http://exrx.net/concrete/test/vhi-proof/OrthopedicRehabilitation-3...

Many many thanks again. Wish you all the best for your add-on and waiting for your reply.

concrete5 Environment Information

# concrete5 Version
Core Version - 5.7.5.13
Version Installed - 5.7.5.13
Database Version - 20160615000000

# concrete5 Packages
Add and Remove Classes and IDs (0.9.5), Fruitful (1.2), HTML5 Audio Player Basic (2.0.5), Responsive Embed (1.0.0), Share Me (0.9.1), Simple Anchor (1.0.1), Spacer (0.9.3), Thumbnail Generator (0.9.0.6), Touch Gallery (2.1.5), WatermarkNN (1.2.3)

# concrete5 Overrides
blocks/feature/controller.php, blocks/feature, blocks/image_slider/controller.php, blocks/image_slider, blocks/content/controller.php, blocks/content, blocks/image/view.php, blocks/image, js/redactor.js, languages/da_DK/LC_MESSAGES/messages.mo, languages/da_DK/LC_MESSAGES, languages/da_DK, languages/de_DE/LC_MESSAGES/messages.mo, languages/de_DE/LC_MESSAGES, languages/de_DE, languages/el_GR/LC_MESSAGES/messages.mo, languages/el_GR/LC_MESSAGES, languages/el_GR, languages/fi_FI/LC_MESSAGES/messages.mo, languages/fi_FI/LC_MESSAGES, languages/fi_FI, languages/fr_FR/LC_MESSAGES/messages.mo, languages/fr_FR/LC_MESSAGES, languages/fr_FR, languages/it_IT/LC_MESSAGES/messages.mo, languages/it_IT/LC_MESSAGES, languages/it_IT, languages/ja_JP/LC_MESSAGES/messages.mo, languages/ja_JP/LC_MESSAGES, languages/ja_JP, languages/nl_NL/LC_MESSAGES/messages.mo, languages/nl_NL/LC_MESSAGES, languages/nl_NL, languages/pl_PL/LC_MESSAGES/messages.mo, languages/pl_PL/LC_MESSAGES, languages/pl_PL, languages/pt_BR/LC_MESSAGES/messages.mo, languages/pt_BR/LC_MESSAGES, languages/pt_BR, languages/ru_RU/LC_MESSAGES/messages.mo, languages/ru_RU/LC_MESSAGES, languages/ru_RU, languages/sl_SI/LC_MESSAGES/messages.mo, languages/sl_SI/LC_MESSAGES, languages/sl_SI, languages/sv_SE/LC_MESSAGES/messages.mo, languages/sv_SE/LC_MESSAGES, languages/sv_SE, languages/tr_TR/LC_MESSAGES/messages.mo, languages/tr_TR/LC_MESSAGES, languages/tr_TR, src/Html/Image.php, src/Html/Object/Picture.php, src/Html/Object, src/Html, src/Editor/LinkAbstractor.php, src/Editor, src/Retina/RetinaImage.php, src/Retina/RetinaPicture.php, src/Retina, blocks/feature/controller.php, blocks/feature, blocks/image_slider/controller.php, blocks/image_slider, blocks/content/controller.php, blocks/content, blocks/image/view.php, blocks/image, js/redactor.js, languages/da_DK/LC_MESSAGES/messages.mo, languages/da_DK/LC_MESSAGES, languages/da_DK, languages/de_DE/LC_MESSAGES/messages.mo, languages/de_DE/LC_MESSAGES, languages/de_DE, languages/el_GR/LC_MESSAGES/messages.mo, languages/el_GR/LC_MESSAGES, languages/el_GR, languages/fi_FI/LC_MESSAGES/messages.mo, languages/fi_FI/LC_MESSAGES, languages/fi_FI, languages/fr_FR/LC_MESSAGES/messages.mo, languages/fr_FR/LC_MESSAGES, languages/fr_FR, languages/it_IT/LC_MESSAGES/messages.mo, languages/it_IT/LC_MESSAGES, languages/it_IT, languages/ja_JP/LC_MESSAGES/messages.mo, languages/ja_JP/LC_MESSAGES, languages/ja_JP, languages/nl_NL/LC_MESSAGES/messages.mo, languages/nl_NL/LC_MESSAGES, languages/nl_NL, languages/pl_PL/LC_MESSAGES/messages.mo, languages/pl_PL/LC_MESSAGES, languages/pl_PL, languages/pt_BR/LC_MESSAGES/messages.mo, languages/pt_BR/LC_MESSAGES, languages/pt_BR, languages/ru_RU/LC_MESSAGES/messages.mo, languages/ru_RU/LC_MESSAGES, languages/ru_RU, languages/sl_SI/LC_MESSAGES/messages.mo, languages/sl_SI/LC_MESSAGES, languages/sl_SI, languages/sv_SE/LC_MESSAGES/messages.mo, languages/sv_SE/LC_MESSAGES, languages/sv_SE, languages/tr_TR/LC_MESSAGES/messages.mo, languages/tr_TR/LC_MESSAGES, languages/tr_TR, src/Html/Image.php, src/Html/Object/Picture.php, src/Html/Object, src/Html, src/Editor/LinkAbstractor.php, src/Editor, src/Retina/RetinaImage.php, src/Retina/RetinaPicture.php, src/Retina

# concrete5 Cache Settings
Block Cache - Off
Overrides Cache - Off
Full Page Caching - Off
Full Page Cache Lifetime - Every 6 hours (default setting).

# Server Software
Apache

# Server API
cgi-fcgi

# PHP Version
5.6.20

# PHP Extensions
bcmath, calendar, cgi-fcgi, Core, ctype, curl, date, dom, ereg, exif, filter, ftp, gd, gettext, hash, iconv, imap, ionCube Loader, json, libxml, mbstring, mcrypt, mysql, mysqlnd, openssl, pcre, PDO, pdo_mysql, pdo_sqlite, Phar, posix, Reflection, session, SimpleXML, sockets, SPL, sqlite3, standard, tokenizer, xml, xmlreader, xmlwriter, Zend OPcache, zip, zlib

# PHP Settings
max_execution_time - 120
log_errors_max_len - 1024
max_file_uploads - 20
max_input_nesting_level - 64
max_input_time - 60
max_input_vars - 1000
memory_limit - 1024M
post_max_size - 56M
sql.safe_mode - Off
upload_max_filesize - 200M
mysql.max_links - Unlimited
mysql.max_persistent - Unlimited
pcre.backtrack_limit - 1000000
pcre.recursion_limit - 100000
session.cache_limiter - <i>no value</i>
session.gc_maxlifetime - 1440
opcache.max_accelerated_files - 2000
opcache.max_file_size - 0
opcache.max_wasted_percentage - 5

Browser User-Agent String

Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:52.0) Gecko/20100101 Firefox/52.0

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.