Hi all, Anyone else having a slideshow/scroller issue on the homepage if using 'stalfoshop' or other templates with it (the scroller) in? I think there could be a problem with a script accessing an external website which could be dragging your site speed and also preventing the scroller from working (moving between products) normally. Just checking this further now.
PS: Link here for all interested: http://forum.freshstorebuilder.com/viewtopic.php?f=13&t=1290 I wonder actually if it's worth uploading a local copy of the file instead onto individual servers running FSB. Looks like who was hosting it has gone out of business. Source.
Looks like 2.5 was calling the script externally from the template files, e.g: I'm going to serve this file locally on my sites and templates, safer I reckon.
be alot quicker as well, I havent got anymore time to find other bugs, just trying to get any sort of ranking back in mine lol
Anyone who wants to serve this locally, pop this into your layout_default.php file: Replace the following <head> code: Code: <script src="http://cdn.jquerytools.org/1.2.5/full/jquery.tools.min.js"></script> With this: Code: <script type="text/javascript" src="<?= URL_SITE ?>templates/<?= TEMPLATE_FOLDER ?>/js/jquery.tools.min.js"></script> Upload the script "jquery.tools.min.js" in the templatename/js folder (create if needed). To get the .js file: Copy/paste code from this LINK into a file (use a blank notepad file) named 'jquery.tools.min.js' and save to your hard drive to obtain local file. Make sure you save it ending in extension .js (not .txt). Sorted!
Jquery.tools is back up now. I've just added an http status check and if it's offline I serve my backup local version!
That's good, saves me altering all my other FSB installations! Hope it stays live this time - I'm going to leave it as a local .js file for some though.
If you add something like this, it will check first... PHP: $headers = @get_headers("http://jquerytools.org"); if (preg_match('/^HTTP\/\d.\d\s+(200|301|302)/', $headers[0])){ echo"<script src=\"http://cdn.jquerytools.org/1.2.3/jquery.tools.min.js\"></script>"; }else{ echo"<script src=\"/jquery.tools.min.js\"></script>"; }
Im just wondering, you know google has an issue with no content above the fold and images etc, the staf template doesnt sit every well if you use the slider as all you have above the fold is the slider and the special offers, im just wonder weather it would be better to switch the special offers and content on the home page around? Well I have done this, see if it makes any differents in googles eyes