Filmstrip Gallery not working with bootstrap accordion

Permalink Browser Info Environment
We have an issue with the Filmstrip Gallery when used inside the bootstrap accordion which does not happen outside the accordion.
When the gallery is placed inside the accordion, all looks fine until the the page is published. There is no gallery there - when logged in or out it is not there. Sometimes it appears and then disappears again when the page is refreshed.
Here is the page where we have it appearing:http://karas.co.uk/newsite/index.php/contact-us...
Here is the page where it is not working:http://karas.co.uk/newsite/index.php/process...
The gallery is in section two (Alocrom 1200).

Can you see what the confilct is?

Thanks

Fergus

Type: Pre-Sale
Status: Resolved
ferg
View Replies:
emirii replied on at Permalink Reply
emirii
Hi there, yes I have had a similar problem before!

The slideshow needs to be re-initialized in jQuery on expansion so that the width and height of the slideshow appear correctly.

Make sure the ID matches the accordion...
$('#accordion').on('shown.bs.collapse', function () {
  $('.flexslider').flexslider();
})

https://v4-alpha.getbootstrap.com/components/collapse/#events...

Let me know if this does the trick, if not I will try a demo myself, as I am just remembering from memory. :)
ferg replied on at Permalink Reply
ferg
Hi there

Sorry, but that has not fixed the issue - not sure if it something that we're doing wrony!
If you could try the demo that would be great.

Thanks

Ferg
emirii replied on at Permalink Reply
emirii
Hi there, thanks for your patience, I wish I could have gotten to this a bit sooner but things kept getting in the way.

I made a jsFiddle with working example!
https://jsfiddle.net/um3hpuzv/24/...

You should just have to put in the bottom of the page this code for it to work (taking the id of element from your website you provided):
$('#collapseTwo').on('shown.bs.collapse', function () {
    $.each($('.flexslider'), function(i, v) {
      $(v).data('flexslider').setup();
    });
})


apparently it's a pretty nasty bug in Flexslider. Hmmm.. :(

Hope this helps! Thanks!
ferg replied on at Permalink Reply
ferg
Hi there

Thanks for the help - the filmstrip is now showing on the accordion.
Follow-up question (sorry!)

Where is the setting that would allow us to change the height of the filmstrip container? Currently it appears to be 150px high - the client would prefer smaller thumbnails - say 50px high. I few set the images at 50px, then they just blow up to the 150px high container and pixelate. - you can see it here:http://karas.co.uk/newsite/index.php/process... - click on the second section down, "Alocrom 1200 ...".

Many thanks for the support.

Kind Regards

Ferg

-----Original Message-----
From: concrete5 Community [mailto:discussions@concretecms.com]
Sent: 22 October 2017 02:14
To: fergus@jagseven.co.uk
Subject: Filmstrip Gallery not working with bootstrap accordion : Support

concrete5 Environment Information

# concrete5 Version
Core Version - 8.2.1
Version Installed - 8.2.1
Database Version - 20170802000000

# concrete5 Packages
GalleryES (2.5.7), Styled Maps (1.2.3)

# concrete5 Overrides
blocks/autonav/templates/top_nav_view.php, blocks/autonav/templates/bootstrap.php, blocks/autonav/templates/header_menu.php, blocks/autonav/templates/breadcrumb.php, blocks/autonav/templates/smartmenu.php, blocks/autonav/templates/plain.php, blocks/autonav/templates/zurb.php, blocks/autonav/templates/megamenujs.php, blocks/autonav/templates/inline.php, blocks/autonav/templates, blocks/autonav, blocks/page_list/templates/karas_thumbnail_grid/view.css, blocks/page_list/templates/karas_thumbnail_grid/view.php, blocks/page_list/templates/karas_thumbnail_grid, blocks/page_list/templates/karas_home/view.php, blocks/page_list/templates/karas_home, blocks/page_list/templates/karas_news/view.php, blocks/page_list/templates/karas_news, blocks/page_list/templates/karas_related/view.php, blocks/page_list/templates/karas_related, blocks/page_list/templates, blocks/page_list, themes/karasplating/fonts/fontawesome-webfont.ttf, themes/karasplating/fonts/fontawesome-webfont.woff, themes/karasplating/fonts/fontawesome-webfont.svg, themes/karasplating/fonts/fontawesome-webfont.eot, themes/karasplating/fonts/FontAwesome.otf, themes/karasplating/fonts/fontawesome-webfont.woff2, themes/karasplating/fonts, themes/karasplating/img/karas-logo-30.png, themes/karasplating/img/header-image.png, themes/karasplating/img/process-accord-thumbs/coming-soon-accord-tb.png, themes/karasplating/img/process-accord-thumbs/dull-tin-accord-tb.png, themes/karasplating/img/process-accord-thumbs/gold-other-accord-tb.png, themes/karasplating/img/process-accord-thumbs/anodising-accord-tb.png, themes/karasplating/img/process-accord-thumbs/nickel-plating-accord-tb.png, themes/karasplating/img/process-accord-thumbs/silver-plating-accord-tb.png, themes/karasplating/img/process-accord-thumbs/zinc-nickel-plating-accord-tb.png, themes/karasplating/img/process-accord-thumbs/alocrom-accord-tb.png, themes/karasplating/img/process-accord-thumbs/zinc-plating-accord-tb.png, themes/karasplating/img/process-accord-thumbs/bright-tin-accord-tb.png, themes/karasplating/img/process-accord-thumbs, themes/karasplating/img/iso-logo.jpg, themes/karasplating/img/karas-logo-50.png, themes/karasplating/img, themes/karasplating/bootstrap/fonts/glyphicons-halflings-regular.svg, themes/karasplating/bootstrap/fonts/glyphicons-halflings-regular.ttf, themes/karasplating/bootstrap/fonts/fontawesome-webfont.ttf, themes/karasplating/bootstrap/fonts/fontawesome-webfont.woff, themes/karasplating/bootstrap/fonts/fontawesome-webfont.svg, themes/karasplating/bootstrap/fonts/glyphicons-halflings-regular.eot, themes/karasplating/bootstrap/fonts/fontawesome-webfont.eot, themes/karasplating/bootstrap/fonts/FontAwesome.otf, themes/karasplating/bootstrap/fonts/fontawesome-webfont.woff2, themes/karasplating/bootstrap/fonts/glyphicons-halflings-regular.woff2, themes/karasplating/bootstrap/fonts/glyphicons-halflings-regular.woff, themes/karasplating/bootstrap/fonts, themes/karasplating/bootstrap/css/bootstrap-theme.css, themes/karasplating/bootstrap/css/bootstrap-theme.css.map, themes/karasplating/bootstrap/css/bootstrap.css.map, themes/karasplating/bootstrap/css/font-awesome.min.css, themes/karasplating/bootstrap/css/bootstrap.min.css, themes/karasplating/bootstrap/css/bootstrap.min.css.map, themes/karasplating/bootstrap/css/bootstrap-theme.min.css, themes/karasplating/bootstrap/css/bootstrap.css, themes/karasplating/bootstrap/css/bootstrap-theme.min.css.map, themes/karasplating/bootstrap/css, themes/karasplating/bootstrap/js/bootstrap.js, themes/karasplating/bootstrap/js/bootstrap.min.js, themes/karasplating/bootstrap/js/npm.js, themes/karasplating/bootstrap/js, themes/karasplating/bootstrap, themes/karasplating/assets/js/ie-emulation-modes-warning.js, themes/karasplating/assets/js/holder.min.js, themes/karasplating/assets/js/accord-all.js, themes/karasplating/assets/js/jquery.min.js, themes/karasplating/assets/js/holder.js, themes/karasplating/assets/js/ie10-viewport-bug-workaround.js, themes/karasplating/assets/js, themes/karasplating/assets, themes/karasplating/right_sidebar.php, themes/karasplating/view.php, themes/karasplating/process.php, themes/karasplating/blank.php, themes/karasplating/full.php, themes/karasplating/home_opt.php, themes/karasplating/about.php, themes/karasplating/font-awesome.min.css, themes/karasplating/home.php, themes/karasplating/page_theme.php, themes/karasplating/default.php, themes/karasplating/jumbotron.css, themes/karasplating/description.txt, themes/karasplating/page_not_found.php, themes/karasplating/page_forbidden.php, themes/karasplating/elements/header.php, themes/karasplating/elements/header-alt.php, themes/karasplating/elements/footer.php, themes/karasplating/elements, themes/karasplating/two-col.php, themes/karasplating/left_sidebar.php, themes/karasplating

# 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
litespeed

# PHP Version
5.6.31

# PHP Extensions
bcmath, bz2, calendar, Core, ctype, curl, date, dom, ereg, exif, fileinfo, filter, ftp, gd, gettext, gmp, hash, iconv, imap, intl, ionCube Loader, json, ldap, libxml, litespeed, mbstring, mcrypt, mhash, mysql, mysqli, mysqlnd, openssl, pcntl, pcre, PDO, pdo_mysql, pdo_pgsql, pdo_sqlite, pgsql, Phar, posix, pspell, readline, Reflection, session, shmop, SimpleXML, soap, SPL, sqlite3, standard, tidy, tokenizer, uploadprogress, wddx, xml, xmlreader, xmlrpc, xmlwriter, xsl, Zend OPcache, zip, zlib

# PHP Settings
max_execution_time - 30
log_errors_max_len - 1024
max_file_uploads - 20
max_input_nesting_level - 64
max_input_time - 60
max_input_vars - 3000
memory_limit - 256M
post_max_size - 8M
sql.safe_mode - Off
upload_max_filesize - 32M
ldap.max_links - Unlimited
mysql.max_links - Unlimited
mysql.max_persistent - Unlimited
mysqli.max_links - Unlimited
mysqli.max_persistent - Unlimited
pcre.backtrack_limit - 1000000
pcre.recursion_limit - 100000
pgsql.max_links - Unlimited
pgsql.max_persistent - Unlimited
session.cache_limiter - <i>no value</i>
session.gc_maxlifetime - 7200
soap.wsdl_cache_limit - 5
opcache.max_accelerated_files - 2000
opcache.max_file_size - 0
opcache.max_wasted_percentage - 5
zend_optimizerplus.max_accelerated_files - 2000
zend_optimizerplus.max_file_size - 0
zend_optimizerplus.max_wasted_percentage - 5

Browser User-Agent String

Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36

Hide Post Content

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

Hide Content

Request Refund

You may not request a refund that is not currently owned by you.