Support » Plugin: Slideshow Satellite » JS Broken – respExtra ?

  • Resolved jdd00d

    (@jdd00d)


    Hello:

    Here is a page I am working on that is not working:

    https://www.universityvalues.com/blog/?page_id=172

    I was editing a few things dealing with my template that I use for certain satellite slideshow pages, and somehow the javascript ceased to work to make satellite appear as a slideshow — now it just looks like images and text listed down the page. I tried using the default page template with the gallery again (used in that link) and I still have the same problem.

    I tried adding define('SCRIPT_DEBUG', true); into wp-config.php but that seemed to do nothing.

    Here is the error that firebug gives me on firefox’s javascript console:

    SyntaxError: syntax error
    comment-reply.js?ver=3.5.1()comment-reply.js?ver=3.5.1 (line 45)
    [Break On This Error] 	
    
    respExtra: , // the width beyond the slide image
    
    comment-reply.js?ver=3.5.1 (line 45, col 27)

    I checked out that file referenced by the error message (comment-reply.js) and saw that on line 45 there is a function declared:

    I: function(e) {
    return document.getElementById(e);
    }

    as part of the addComment object literal defined in this file.

    Also, I searched for “respExtra” (referenced by the javascript error) not only in this file but in my entire website project — NO file contains “respExtra”

    I also tried searching my entire project for parts of the comment that is on the same line as respExtra on the javascript error, but again, with no such thing found.

    When I view my page’s source for the page I am trying to get this to work on, respExtra does appear in two javascript functions:

    jQuery(document).ready(function($) {
                $('#featured').satlorbit({
                    animation: 'fade-blend',  // fade, horizontal-slide, vertical-slide, horizontal-push
                    animationSpeed: 700,  // how fast animations are
                    timer: true,  // true or false to have the timer
                    advanceSpeed: 5000, 		 // if timer is enabled, time between transitions
                    pauseOnHover: false, 		 // if you hover pauses the slider
                    startClockOnMouseOut: true, 	 // if clock should start on MouseOut
                    startClockOnMouseOutAfter: 1000, 	 // how long after MouseOut should the timer start again
                    directionalNav: true, 		 // manual advancing directional navs
                    captions: true,	 // do you want captions?
                    captionAnimation: 'none', // fade, slideOpen, none
                    captionHover: false, // true means only show caption on mousehover
                    captionAnimationSpeed: 800, 	 // if so how quickly should they animate in
                    bullets: false,	// true or false to activate the bullet navigation
                    bulletThumbs: true,		 // thumbnails for the bullets
                    bulletThumbLocation: '',	 // location from this file where thumbs will be
                    afterSlideChange: function(){},    // empty function
                    centerBullets: true,
                    navOpacity: 0.3,
                    sideThumbs: false,
                    preloader: 1,
                    thumbWidth: 85,
                    respExtra: , // the width beyond the slide image
                    alwaysPlayBtn: true            });
            });
                    jQuery(window).resize(function($) {
                jQuery('#featured').satlresponse({
                    respExtra: , // the width beyond the slide image
                    sideThumbs: false            });
            });

    I would love ANY help or feedback on this. It has had me stuck for a few hours now and I really want to move on to other parts of the project.

    If you need any other info from me or anything, let me know.

    Thanks a bunch.

    http://wordpress.org/extend/plugins/slideshow-satellite/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author cpres

    (@cpres)

    First off, thanks jdd00d for such a well documented bug report!

    In /views/orbit/default.php
    look for this line:
    $respExtra = (isset($respExtra)) ? $respExtra : 0;
    and change it to:
    $respExtra = (isset($respExtra)) ? intval($respExtra) : 0;

    let me know if that fixes your problem!

    Otherwise just do
    $respExtra = 0

    Thread Starter jdd00d

    (@jdd00d)

    Wow, thanks for the great reply. I was starting to lose hope! Ha ha

    Unfortunately, respExtra does not exist in my /views/orbit/default.php file.

    Perhaps my default.php file got altered somehow? Do you have a fresh copy I could grab?

    Otherwise, could you post the code context surrounding that line you mentioned (around the $respExtra = …; line).

    Thanks!

    Thread Starter jdd00d

    (@jdd00d)

    Hey, I started fiddling with the code a bit, but soon noticed I had an update notification for Satellite Slideshow. I only recently received this project from someone else (who initially implemented the slideshows). Apparently version 1.3.something was installed for Satellite Slideshow and I think it said that the newest version was 3.something. I updated, and now everything is perfectly fine. 🙂

    Thanks for your great work! I’m glad to be seeing an animating slideshow once again! Ha ha

    Thread Starter jdd00d

    (@jdd00d)

    Forgot to mark this as resolved.

    Plugin Author cpres

    (@cpres)

    Great to hear! Best way to show your thanks is a review if you find the time!

    Cheers, CP

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘JS Broken – respExtra ?’ is closed to new replies.