Viewing 15 replies - 1 through 15 (of 23 total)
  • Thread Starter hnariks

    (@hnariks)

    Sorry again, Plus on votemaryannperez.com if i am placing this , then my picture slider also stop sliding.

    thanks.

    Plugin Author Martin Tod

    (@mpntod)

    The problem is the NIVO Slider Plug-in.

    It adds the JavaScript in a very ‘non-standard’ way.

    To add it in a ‘normal’ way, in nivo-slider-for-wordpress/nivoslider4wp-show.php, I would suggest replacing:

    function js_NivoSlider(){
    	?>
    		<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"></script>
    		<script type="text/javascript" src="<?php echo get_option('siteurl') . '/wp-content/plugins/nivo-slider-for-wordpress/js/jquery.nivo.slider.pack.js';?>"></script>
    		<script type="text/javascript">
    		var $nv4wp = jQuery.noConflict();
    		$nv4wp(window).load(function() {
    			$nv4wp('#slider').nivoSlider({

    with

    wp_enqueue_script('jquery');
    wp_enqueue_script('jquery-nivo-slider-pack',get_option('siteurl') . '/wp-content/plugins/nivo-slider-for-wordpress/js/jquery.nivo.slider.pack.js',array('jquery'));
    function js_NivoSlider(){
    	?>
    		<script type="text/javascript">
    		// var $nv4wp = jQuery.noConflict();
    		jQuery(window).load(function() {
    			jQuery('#slider').nivoSlider({

    Hopefully this will work. If it doesn’t, I suggest adding the next bit of code as a separate script rather than by printing it straight onto the HTML page.

    Thread Starter hnariks

    (@hnariks)

    Martin, you are great. its resolved on marveasey.com

    Should i do the same with this site i.e. votemaryannperez.com ??? Please tell this.

    thanks & Regards.

    Hi martin, i have just installed your plug in, it is the the only one out there that is actually displaying on my new site but its not rotating.

    I have a feeling its down to the AJAX them but can you offer any suggestion on how i can get this working?

    https://themusicwardrobe.co.uk/#!/social-media/

    Thanks

    Thread Starter hnariks

    (@hnariks)

    Martin Can you please help resolving the same error on votemaryannperez.com.

    on marcveasey your solution worked great. thank you for your help.

    thanks

    Plugin Author Martin Tod

    (@mpntod)

    RGOnline,

    The problem is that the ajax is not loading the right scripts.

    The development version should fix this. If it doesn’t, just add:

    add_action('wp_enqueue_scripts','rotatingtweets_enqueue_scripts');

    as the last line of rotatingtweets.php

    Martin

    Plugin Author Martin Tod

    (@mpntod)

    hnariks,

    I can’t see the script on votemaryannperez.com currently so I can’t really debug it unfortunately!

    However it does look like it’s loading jQuery twice – which tends to break most things. I’d suggest finding the line in the template files that does this:

    <!-- Grab Google CDN's jQuery, with a protocol relative URL; fall back to local if offline -->
    	<script src="//ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js"></script>
    	<script>window.jQuery || document.write('<script src="https://votemaryannperez.com/wp-content/themes/MaryAnnPerez/js/libs/jquery-1.6.4.min.js"><\/script>')</script>

    and replace it with wp_enqueue_script('jquery')

    Martin

    Hi Martin, thank for your response, I have followed your instructions but with no luck

    any other suggestions, or shall i leave it as a static ‘latest tweet’

    Thanks again

    Plugin Author Martin Tod

    (@mpntod)

    RGOnline

    We have some progress in that the script is now in the header!

    The problem now is that it still doesn’t detect when the tweets arrive on the page because of the way the content is being pulled in via Ajax. I’ll somehow need to write a detection script that works out when the contact has arrived and then runs the Rotating Tweets script.

    Easier said than done!

    Martin

    Thread Starter hnariks

    (@hnariks)

    Hi Martin hope you are doing good. Your plugin works great on some of my websites. But i am facing the issue integerating plugin to your website. I would appreciate if you help finding the error what is the issue

    site
    velvaprice.com

    Error
    Problem retrieving data from Twitter

    Please help me out. I would be thankful to you .

    Plugin Author Martin Tod

    (@mpntod)

    Unfortunately, I can’t see anything.

    Can you send me an access password? Contact details here

    Alternatively, you should be getting more information in the tweets than this. What happens when it rotates? When you look at the source code, does it provide any extra information?

    Hi

    Your plugin is great, but doesn’t rotate on the home page (only) of my theme, which is WPZoom LitePress. All other pages are OK. I’m guessing it’s to do with some sliders elsewhere on the page, although I can’t see any duplicates of jquery.min.js or jquery.cycle.all.min.js in the source.

    Any advice on resolving this much appreciated.

    Unfortunately my site is an internal intranet and I cannot give you a URL.

    Thanks in advance.

    James

    Plugin Author Martin Tod

    (@mpntod)

    James,

    Does version 2 of the JavaScript work of you select it on the settings page?

    Alternatively, it can be worth opening your browser’s “console” and looking to see what error messages there are. This will often show where you have a problem that is breaking the JavaScript on the page.

    Martin

    Martin

    Thanks for your response – sorry for not getting back to you before now.

    The JS v2 made no difference. I hadn’t discovered the browsers’ console function – wow, that’s a useful tool!

    OK, so what I get is this – Uncaught TypeError: Object #<Object> has no method ‘cycle’
    relating to rotating_tweet.js?ver=3.6:48
    on JS v2 I get the same error but with no method ‘cycle2’

    But these errors only occur on my home page, no JS errors on the other pages where the tweets rotate quite happily! So something is removing or blocking or over-riding the cycle/cycle2 method. Any ideas?

    Thanks again for a great widget.
    James

    Plugin Author Martin Tod

    (@mpntod)

    Can you send me a link?

    Alternatively, can you let me know what template you are using and what plug-ins you have on the front page?

    Best wishes,

    Martin

Viewing 15 replies - 1 through 15 (of 23 total)
  • The topic ‘Rotating tweets not rotating’ is closed to new replies.