WordPress.org

Support

Support » Plugins and Hacks » WPNewCarousels » [Resolved] [Plugin: WPNewCarousels] Links not working

[Resolved] [Plugin: WPNewCarousels] Links not working

Viewing 15 replies - 1 through 15 (of 23 total)
  • Hi there – Any news on this please? Have same issue and hoping it is a blip.

    Thanks.

    Hi,

    Links still not working and not scrolling through to the 2nd slide either.

    A bit frustrating!

    My scrolling is OK – Here is my code, if it helps:

    [wpnewcarousel name=”Front Page” height=”141″ width=”400″ effect=”” startslide=”” animationspeed=”500″ imagepausetime=”2500″ shownav=”” hoverpause=””]

    Hope we get an answer for links – Nice plugin.

    Cheers.

    Plugin Author Arjun Jain

    @arjunjain08

    Hi,

    I have tested the plugin its working fine. Can you please tell me the url which you are give with image.

    Thanks
    Arjun Jain

    Hi Arjun,

    The shortcode I have is …

    [wpnewcarousel name=”FrontPage” effect=”fold” animationspeed=”500″ imagepausetime=”2500″ shownav=”true” hoverpause=”true”]

    The settings are …
    Click on the image ‘/images/adbar-welcome.jpg’
    with the background image link to
    http://www.waltonchurch.org/about/our-vision/

    I have 2 slides set up but they don’t scroll or rotate either which is annoying!

    Thanks,

    dan.

    Plugin Author Arjun Jain

    @arjunjain08

    Hi Dan,

    The background image link and background image in fine. I can’t find the exact reason of not working of wpnewcarousel. This issue may be due to javascript error on website. Use firebug with consol option to find the bug or give the link of website on which you are using this plugin.

    Thanks
    Arjun Jain

    Hiya,

    The page is http://www.waltonchurch.org/tester

    thanks!

    dan.

    Plugin Author Arjun Jain

    @arjunjain08

    Hi ,

    I have found two javascript related problem in website
    1: You have entered wrong url its www.*** not http://www.*** please add “http://” with url.

    2: Please enter in F12 in chrome and click on console option and reload the page than you will find four javascript error which caused carousel failure.

    Thanks
    Arjun Jain

    Hi Arjun,

    Thanks for your email! Your help is much appreciated!

    I have changed the links within the wp-new-carousel set-up page to be http:// rather than just www.

    I have followed your instructions within chrome and found the following, alhtough, not being a ‘techy’ am unsure of the errors and how to correct them.

    ————————–
    ————————–

    dk-ret comment preview…..

    $j = jQuery.noConflict();

    $j(document).ready(
    function() {

    // Commentpreview Plugin is written by Frank Bueltge
    // http://bueltge.de/live-kommentarvorschau-mit-jquery-und-wordpress/541/
    $j( ‘#comment’ ).one( ‘focus’, function() {
    $j( ‘.comment-form-comment’ ).prepend( ‘<div id=”comment-live-preview”></div>’ );
    });

    var $comment = ”;
    $j( ‘#comment’ ).keyup( function() {
    $comment = $j(this).val();
    $comment = $comment.replace( /\n/g, “
    ” ).replace( /\n\n+/g, ‘

    ‘ ).replace( /(<\/?)script/g,”$1noscript” );
    $j( ‘#comment-live-preview’ ).html( $comment );
    });
    }
    );

    ————————
    ————————

    and

    within script.js

    ————————–
    ————————–

    (function($) {

    $(function() {
    try {
    if (typeof _wpcf7 == ‘undefined’ || _wpcf7 === null)
    _wpcf7 = {};

    _wpcf7 = $.extend({ cached: 0 }, _wpcf7);

    $(‘div.wpcf7 > form’).ajaxForm({
    beforeSubmit: function(formData, jqForm, options) {
    jqForm.wpcf7ClearResponseOutput();
    jqForm.find(‘img.ajax-loader’).css({ visibility: ‘visible’ });
    return true;
    },
    beforeSerialize: function(jqForm, options) {
    jqForm.find(‘.wpcf7-use-title-as-watermark.watermark’).each(function(i, n) {
    $(n).val(”);
    });
    return true;
    },
    data: { ‘_wpcf7_is_ajax_call’: 1 },
    dataType: ‘json’,
    success: function(data) {
    var ro = $(data.into).find(‘div.wpcf7-response-output’);
    $(data.into).wpcf7ClearResponseOutput();

    $(data.into).find(‘.wpcf7-form-control’).removeClass(‘wpcf7-not-valid’);
    $(data.into).find(‘form.wpcf7-form’).removeClass(‘invalid spam sent failed’);

    if (data.captcha)
    $(data.into).wpcf7RefillCaptcha(data.captcha);

    if (data.quiz)
    $(data.into).wpcf7RefillQuiz(data.quiz);

    if (data.invalids) {
    $.each(data.invalids, function(i, n) {
    $(data.into).find(n.into).wpcf7NotValidTip(n.message);
    $(data.into).find(n.into).find(‘.wpcf7-form-control’).addClass(‘wpcf7-not-valid’);
    });

    ro.addClass(‘wpcf7-validation-errors’);
    $(data.into).find(‘form.wpcf7-form’).addClass(‘invalid’);

    $(data.into).trigger(‘invalid.wpcf7’);

    } else if (1 == data.spam) {
    ro.addClass(‘wpcf7-spam-blocked’);
    $(data.into).find(‘form.wpcf7-form’).addClass(‘spam’);

    $(data.into).trigger(‘spam.wpcf7’);

    } else if (1 == data.mailSent) {
    ro.addClass(‘wpcf7-mail-sent-ok’);
    $(data.into).find(‘form.wpcf7-form’).addClass(‘sent’);

    if (data.onSentOk)
    $.each(data.onSentOk, function(i, n) { eval(n) });

    $(data.into).trigger(‘mailsent.wpcf7’);

    } else {
    ro.addClass(‘wpcf7-mail-sent-ng’);
    $(data.into).find(‘form.wpcf7-form’).addClass(‘failed’);

    $(data.into).trigger(‘mailfailed.wpcf7’);
    }

    if (data.onSubmit)
    $.each(data.onSubmit, function(i, n) { eval(n) });

    $(data.into).trigger(‘submit.wpcf7’);

    if (1 == data.mailSent)
    $(data.into).find(‘form’).resetForm().clearForm();

    $(data.into).find(‘.wpcf7-use-title-as-watermark.watermark’).each(function(i, n) {
    $(n).val($(n).attr(‘title’));
    });

    $(data.into).wpcf7FillResponseOutput(data.message);
    }
    });

    $(‘div.wpcf7 > form’).each(function(i, n) {
    if (_wpcf7.cached)
    $(n).wpcf7OnloadRefill();

    $(n).wpcf7ToggleSubmit();

    $(n).find(‘.wpcf7-submit’).wpcf7AjaxLoader();

    $(n).find(‘.wpcf7-acceptance’).click(function() {
    $(n).wpcf7ToggleSubmit();
    });

    $(n).find(‘.wpcf7-exclusive-checkbox’).each(function(i, n) {
    $(n).find(‘input:checkbox’).click(function() {
    $(n).find(‘input:checkbox’).not(this).removeAttr(‘checked’);
    });
    });

    $(n).find(‘.wpcf7-use-title-as-watermark’).each(function(i, n) {
    var input = $(n);
    input.val(input.attr(‘title’));
    input.addClass(‘watermark’);

    input.focus(function() {
    if ($(this).hasClass(‘watermark’))
    $(this).val(”).removeClass(‘watermark’);
    });

    input.blur(function() {
    if (” == $(this).val())
    $(this).val($(this).attr(‘title’)).addClass(‘watermark’);
    });
    });
    });

    } catch (e) {
    }
    });

    $.fn.wpcf7AjaxLoader = function() {
    return this.each(function() {
    var loader = $(‘<img class=”ajax-loader” />’)
    .attr({ src: _wpcf7.loaderUrl, alt: _wpcf7.sending })
    .css(‘visibility’, ‘hidden’);

    $(this).after(loader);
    });
    };

    $.fn.wpcf7ToggleSubmit = function() {
    return this.each(function() {
    var form = $(this);
    if (this.tagName.toLowerCase() != ‘form’)
    form = $(this).find(‘form’).first();

    if (form.hasClass(‘wpcf7-acceptance-as-validation’))
    return;

    var submit = form.find(‘input:submit’);
    if (! submit.length) return;

    var acceptances = form.find(‘input:checkbox.wpcf7-acceptance’);
    if (! acceptances.length) return;

    submit.removeAttr(‘disabled’);
    acceptances.each(function(i, n) {
    n = $(n);
    if (n.hasClass(‘wpcf7-invert’) && n.is(‘:checked’)
    || ! n.hasClass(‘wpcf7-invert’) && ! n.is(‘:checked’))
    submit.attr(‘disabled’, ‘disabled’);
    });
    });
    };

    $.fn.wpcf7NotValidTip = function(message) {
    return this.each(function() {
    var into = $(this);
    into.append(‘<span class=”wpcf7-not-valid-tip”>’ + message + ‘</span>’);
    $(‘span.wpcf7-not-valid-tip’).mouseover(function() {
    $(this).fadeOut(‘fast’);
    });
    into.find(‘:input’).mouseover(function() {
    into.find(‘.wpcf7-not-valid-tip’).not(‘:hidden’).fadeOut(‘fast’);
    });
    into.find(‘:input’).focus(function() {
    into.find(‘.wpcf7-not-valid-tip’).not(‘:hidden’).fadeOut(‘fast’);
    });
    });
    };

    $.fn.wpcf7OnloadRefill = function() {
    return this.each(function() {
    var url = $(this).attr(‘action’);
    if (0 < url.indexOf(‘#’))
    url = url.substr(0, url.indexOf(‘#’));

    var id = $(this).find(‘input[name=”_wpcf7″]’).val();
    var unitTag = $(this).find(‘input[name=”_wpcf7_unit_tag”]’).val();

    $.getJSON(url,
    { _wpcf7_is_ajax_call: 1, _wpcf7: id },
    function(data) {
    if (data && data.captcha)
    $(‘#’ + unitTag).wpcf7RefillCaptcha(data.captcha);

    if (data && data.quiz)
    $(‘#’ + unitTag).wpcf7RefillQuiz(data.quiz);
    }
    );
    });
    };

    $.fn.wpcf7RefillCaptcha = function(captcha) {
    return this.each(function() {
    var form = $(this);

    $.each(captcha, function(i, n) {
    form.find(‘:input[name=”‘ + i + ‘”]’).clearFields();
    form.find(‘img.wpcf7-captcha-‘ + i).attr(‘src’, n);
    var match = /([0-9]+)\.(png|gif|jpeg)$/.exec(n);
    form.find(‘input:hidden[name=”_wpcf7_captcha_challenge_’ + i + ‘”]’).attr(‘value’, match[1]);
    });
    });
    };

    $.fn.wpcf7RefillQuiz = function(quiz) {
    return this.each(function() {
    var form = $(this);

    $.each(quiz, function(i, n) {
    form.find(‘:input[name=”‘ + i + ‘”]’).clearFields();
    form.find(‘:input[name=”‘ + i + ‘”]’).siblings(‘span.wpcf7-quiz-label’).text(n[0]);
    form.find(‘input:hidden[name=”_wpcf7_quiz_answer_’ + i + ‘”]’).attr(‘value’, n[1]);
    });
    });
    };

    $.fn.wpcf7ClearResponseOutput = function() {
    return this.each(function() {
    $(this).find(‘div.wpcf7-response-output’).hide().empty().removeClass(‘wpcf7-mail-sent-ok wpcf7-mail-sent-ng wpcf7-validation-errors wpcf7-spam-blocked’);
    $(this).find(‘span.wpcf7-not-valid-tip’).remove();
    $(this).find(‘img.ajax-loader’).css({ visibility: ‘hidden’ });
    });
    };

    $.fn.wpcf7FillResponseOutput = function(message) {
    return this.each(function() {
    $(this).find(‘div.wpcf7-response-output’).append(message).slideDown(‘fast’);
    });
    };

    })(jQuery);

    —————————–
    ——————————

    How do I find and correct the errors?

    Thanks again!

    dan.

    Plugin Author Arjun Jain

    @arjunjain08

    Hi Dan,

    Disable cookie-law-info plugin this plugin create js error.

    Thanks
    Arjun Jain

    Just to add to the help on here, mine was a JS error – Removed jquery.js file from my actual theme and all working now.

    Cheers.

    Hiya,

    Obviously the removal of cookie-law-info can be replaced by another plugin. What is the implication for the rest of the site if I remove jquery.js?

    Thank you for all your help!

    dan.

    Plugin Author Arjun Jain

    @arjunjain08

    If you remove jquery.js may be most of functionality of website will not work. Don’t remove it but update it with latest version

    Hiya,

    I have removed the cookie-law-info plugin and this seems to have allowed it to work.

    I have another plugin [slidorion name=”YOUR NAME”] which seems to have a similar problem not working though.

    dan.

    Arjun,

    Where do I find the latest version please?

    Sorry for all these questions!

    dan.

Viewing 15 replies - 1 through 15 (of 23 total)
  • The topic ‘[Resolved] [Plugin: WPNewCarousels] Links not working’ is closed to new replies.
Skip to toolbar