WordPress.org

Support

Support » Plugins and Hacks » [Resolved] [Plugin: Rotating Tweets widget and shortcode] Tweets are not rotating

[Resolved] [Plugin: Rotating Tweets widget and shortcode] Tweets are not rotating

Viewing 15 replies - 31 through 45 (of 91 total)
  • mmm… i’ve problem with drop-down menu 🙁

    Goodmorning Martin! Well, if i quote

    <script type=”text/javascript” src=”<?php bloginfo(‘template_directory’); ?>/js/jquery.js”></script>

    the dropdown menu doesn’t work well (this is an exemple: http://curtziegler.com/sitedemo/wordpress-min/
    can you help me?

    thanks!

    Plugin Author Martin Tod
    Participant

    @mpntod

    I think the easiest solution is probably to change wp-content/themes/min/js/general.js to:

    /* General Javascript Configuration */
    
    jQuery(document).ready(function(){
    	jQuery("ul.sf-menu").supersubs({
    		minWidth:    12,
    		maxWidth:    27,
    		extraWidth:  1
    	}).superfish();
    });
    
    function validate(form)
    {
    	if( form.cfname.value == "" || form.cfemail.value == "" || form.cfmessage.value == "" )
       {
    	  document.getElementById('message').innerHTML = ' Fill out all fields!';
    	  document.getElementById('message').style.display = 'inline';
    	  return false;
       }
    }

    In essence, the ‘pure’ version of jQuery allows you to use $ instead of jQuery – the WordPress version doesn’t.

    GREAT! Thanks 😉

    Hey Martin,

    I couldn’t figure out why my widget wasn’t rotating (displayed one tweet, no jquery animation) until I disabled each plugin to find the conflict. It was http://wordpress.org/extend/plugins/cms-pack/. Perhaps you could add a list of known plugins that “don’t play nice” or that have “compatibility issues.” I imagine that would be helpful to lots of other users too. Thanks for the great support (and plugin!).

    Plugin Author Martin Tod
    Participant

    @mpntod

    Possibly in the footer.php template file?

    Martin

    It seems that minified jquery libs conflict with the feed. I have it up on my web site (I must say its such a brilliant little plugin, Martin hands down, great job) but like mentioned many times here it didn’t seem to co-corporate! This is not Martins fault or the plugins, its your site and other javascript librarys.

    I read the above feeds and like Martin suggested, do a little debugging in order to find the problem, comment out javascript statements one by one to find the conflicting library. Once you diagnose the problem you should be able to work on a solution to the problem.

    The problem in my site was was with
    <script src=”http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js”>

    Im now working on finding a full library and not a minified library, I may also work back a few revisions!

    Benjaminj
    Member

    @benjaminj

    Martin!
    I love your plugin, and I am also impressed by how much your helpfulness.

    I am having trouble getting the tweets to rotate, could you take a look and see whats up? Thanks!!! Here is the site:
    http://www.caring4orphans.com

    One more thing – here is the jquery line:
    <script type='text/javascript' src='http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js?ver=3.5'></script>

    Thanks again!
    Jake

    Plugin Author Martin Tod
    Participant

    @mpntod

    Andrew – many thanks. What I’m currently trying to do is adjust the plug-in so that it keeps working – although in some cases, that’s not possible unfortunately. I fear a list of problematic plugins might be a long list!

    iamchris – the problem is often when jquery gets loaded a second time on a page – often because the plugin or theme developer isn’t using wp_enqueue_script to load jquery. This seems to wipe out all previous jquery code.

    Benjaminj – I’ve had a look and can’t see anything immediately. In these circumstances, I try to find the problem script by switching off plugins one at a time – or briefly try the site using the original theme – until I can find the theme or the plug-in that’s causing the problem. I sometimes also try the development version of the plug-in.

    Benjaminj
    Member

    @benjaminj

    I tested the plugins and themes. It seems that the theme is causing the problem. The theme is Felici, which I purchased from Theme Forrest. What other info do you need? Thanks for your help!

    Plugin Author Martin Tod
    Participant

    @mpntod

    I think you may need to add
    <script type='text/javascript'>try{jQuery.noConflict();}catch(e){};</script>
    in the header.php file of the template immediately after
    <script type='text/javascript' src='http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js?ver=3.5'></script>

    Benjaminj
    Member

    @benjaminj

    Hmm, it seems that the wp_head() function is generating <script type='text/javascript' src='http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js?ver=3.5'></script>
    How do I insert <script type='text/javascript'>try{jQuery.noConflict();}catch(e){};</script>
    Thanks for your help (and pardon my ignorance!)

    Plugin Author Martin Tod
    Participant

    @mpntod

    This is all very odd. Do you have a plug-in that makes your site use the Google version of jQuery instead of a locally hosted version of jQuery?

    Are you able to find whereabouts in your code http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js is requested?

    It might be in your template functions.php file and it might be in a plug-in.

    Martin

    Benjaminj
    Member

    @benjaminj

    I ran grep -R "jquery\." felici on the theme’s folder. Here is the output: http://pastebin.com/LUKssYyN

    That should be every line in every theme file with “jquery.” in it. I hope that helps. I will be taking a look at to see what I can come up with. Thanks!

    Plugin Author Martin Tod
    Participant

    @mpntod

    Very interesting. There’s nothing obviously problematic there.

    What about your plug-ins? I’m wondering how the Google version of jQuery gets used…

Viewing 15 replies - 31 through 45 (of 91 total)
  • The topic ‘[Resolved] [Plugin: Rotating Tweets widget and shortcode] Tweets are not rotating’ is closed to new replies.