Rotating image

Permalink Browser Info Environment
Can the large image on the home page be a rotating image?

Type: Pre-Sale
Status: Resolved
View Replies:
jsantaga replied on at Permalink Reply
jsantaga
Hello Sungraphics,

Yes this is indeed possible, however, I have not yet built this into my theme. I have implemented this quite easily on another website:
http://holderoftheyear.org

Couple options here:
1.) I'm happy to assist and potentially hook this up in the one instance you might need it. Probably wouldn't take more than 1 hour.
2.) If you can wait just a while I can schedule some time to build in the functionality that will allow users to have an image file set loop through in image slider fashion within my LOFT theme in the C5 marketplace. Then you should only have to download an updated copy of LOFT through your own website.

Please let me know if either of these options is appealing to you or if you have any other alternative solutions to your issue that I may help with.

Look forward to hearing from you,
Jordan Santaga
sungraphics replied on at Permalink Reply
Thanks so much.. I am pretty savvy with the back-end stuff. I would love to make this happen sooner than later (not sure what "a short while" would be).

I can have everything loaded in a few days and ready to roll with most of it.
jsantaga replied on at Permalink Reply
jsantaga
Hey Sungraphics,

Totally forgot to follow up here, but did you by chance successfully implement your image slideshow on your LOFT website? I'm noticed I had 1-2 open support cases and this was one of them.

Also, I love seeing the websites built with LOFT, if you ended up using it would you mind sending me the link to your site?

Thanks so much, hope all has been well!

- Jordan
jsantaga replied on at Permalink Reply
jsantaga
Hey Sungraphics,

In that case here's what you'll have to do.
1.) Ensure you DO NOT have the 'main masthead image' page attribute defined on your home page.
2.) Add the following code snippet directly above the '<?php $this->inc('elements/footer.php');?>' line in the /packages/loft/themes/loft/home.php file. Obviously swap out my fake image URL's with the URL's to your images you want in the slider.

<script type="text/javascript">
$(document).ready(function(){
$("#mastheadContainer").backstretch([
"<?php echo $this->getThemePath(); ?>/images/header1.png",
"<?php echo $this->getThemePath(); ?>/images/header2.png",
"<?php echo $this->getThemePath(); ?>/images/header3.png"
], {duration: 5000, fade: 750 });
});
</script>

The 'duration' is how long the image will show and the 'fade' is how long the fade animation will take.

Please let me know if this works for you or if I can help further with this.

- Jordan

concrete5 Environment Information

# concrete5 Version
Core Version - 8.3.2
Version Installed - 8.3.2
Database Version - 20180122213656

# concrete5 Packages
None

# concrete5 Overrides
None

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

# Server Software
Apache

# Server API
cgi-fcgi

# PHP Version
5.6.37

# PHP Extensions
bcmath, bz2, calendar, cgi-fcgi, Core, ctype, curl, date, dba, dom, enchant, ereg, exif, fileinfo, filter, ftp, gd, gettext, gmp, hash, iconv, imagick, imap, intl, ionCube Loader, json, ldap, libxml, mbstring, mcrypt, mysql, mysqli, mysqlnd, odbc, openssl, pcntl, pcre, PDO, pdo_mysql, PDO_ODBC, pdo_pgsql, pdo_sqlite, pgsql, Phar, posix, pspell, readline, redis, Reflection, session, SimpleXML, soap, sockets, SPL, sqlite3, standard, sysvmsg, sysvsem, sysvshm, tidy, tokenizer, xml, xmlreader, xmlrpc, xmlwriter, xsl, Zend OPcache, zip, zlib

# PHP Settings
max_execution_time - 600
log_errors_max_len - 1024
max_file_uploads - 20
max_input_nesting_level - 64
max_input_time - 60
max_input_vars - 1000
memory_limit - 128M
post_max_size - 8M
sql.safe_mode - Off
upload_max_filesize - 2M
ldap.max_links - Unlimited
mysql.max_links - Unlimited
mysql.max_persistent - Unlimited
mysqli.max_links - Unlimited
mysqli.max_persistent - Unlimited
odbc.max_links - Unlimited
odbc.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

Browser User-Agent String

Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 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.