WordPress.org

Ready to get started?Download WordPress

Forums

Rotating Tweets (Twitter widget and shortcode)
[resolved] [Plugin: Rotating Tweets widget and shortcode] Tweets are not rotating (92 posts)

  1. marcogov
    Member
    Posted 1 year ago #

    i ve found it! Now it's ok, thank you Martin!

  2. marcogov
    Member
    Posted 1 year ago #

    mmm... i've problem with drop-down menu :-(

  3. marcogov
    Member
    Posted 1 year ago #

    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!

  4. Martin Tod
    Member
    Plugin Author

    Posted 1 year ago #

    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.

  5. marcogov
    Member
    Posted 1 year ago #

    GREAT! Thanks ;-)

  6. Andrew
    Member
    Posted 1 year ago #

    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!).

  7. Martin Tod
    Member
    Plugin Author

    Posted 1 year ago #

    Possibly in the footer.php template file?

    Martin

  8. iamchris
    Member
    Posted 1 year ago #

    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!

  9. Benjaminj
    Member
    Posted 1 year ago #

    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

  10. Martin Tod
    Member
    Plugin Author

    Posted 1 year ago #

    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.

  11. Benjaminj
    Member
    Posted 1 year ago #

    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!

  12. Martin Tod
    Member
    Plugin Author

    Posted 1 year ago #

    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>

  13. Benjaminj
    Member
    Posted 1 year ago #

    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!)

  14. Martin Tod
    Member
    Plugin Author

    Posted 1 year ago #

    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

  15. Benjaminj
    Member
    Posted 1 year ago #

    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!

  16. Martin Tod
    Member
    Plugin Author

    Posted 1 year ago #

    Very interesting. There's nothing obviously problematic there.

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

  17. Benjaminj
    Member
    Posted 1 year ago #

    The "Pinterest RSS Widget" was adding the Google jQuery line. I have deactivated it. It looks like this now:
    <script type='text/javascript' src='http://www.caring4orphans.com/wp-content/themes/felici/sprites/js/jquery.js?ver=3.5'></script>

    However, the tweets are not rotating, though we are making progress. Thanks!

  18. Martin Tod
    Member
    Plugin Author

    Posted 1 year ago #

    Try changing

    felici/hades_framework/helper/Helper.php:
    wp_enqueue_script('jquery',URL.'/sprites/js/jquery.js');

    to

    felici/hades_framework/helper/Helper.php:
    wp_enqueue_script('jquery');
  19. Benjaminj
    Member
    Posted 1 year ago #

    I changed it and it didnt load jquery, So I put it back the way it was.

    <link rel='stylesheet' id='toc-screen-css'  href='http://www.caring4orphans.com/wp-content/plugins/table-of-contents-plus/screen.css?ver=3.5' type='text/css' media='all' />
    <script type='text/javascript' src='http://www.caring4orphans.com/wp-content/themes/felici/sprites/js/jquery.prettyPhoto.js?ver=3.5'></script>

    It skipped loading jQuery.

  20. colossalkid
    Member
    Posted 1 year ago #

    Hi Martin,

    I am having the same issue. I think it is also related to the jquery version but I am a bit lost.

    Here is the site: http://www.colossalkids.com I would really appreciate any help.

    Thanks,
    Kid

  21. Martin Tod
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Kid,

    Unfortunately that link isn't working for me.

    Best wishes,

    Martin

  22. colossalkid
    Member
    Posted 1 year ago #

    Doh.

    One too many letters. Try http://www.colossalkid.com/.

    Thanks!
    -Kid

  23. Brujo2012
    Member
    Posted 1 year ago #

    Hello Martin, your plugin rocksĀ” Works well but I have a problem in my homepage (www.espaciobellavista.cl) doesn't rotate, can you help me please? I follow the steps and I think it's duplicated jsquery, but how can I fix it? I'm using a templatic.com template.
    ThanksĀ”

  24. Martin Tod
    Member
    Plugin Author

    Posted 1 year ago #

    There seem to be 3 copies of jQuery!

    The best thing to do is to look for where they've hard-coded the jQuery command in (probably in header.php).

    It looks as if they have hard-coded it in. If so, look for a line like:

    echo ' <script type="text/javascript" src="' . get_template_directory()  . ' /library/js/jquery-1.3.2.min.js" ></script>';

    and replace it with:

    wp_enqueue_script( 'jquery' );

    If this doesn't work, then please let me know how they have loaded jQuery in your template (perhaps using wp_enqueue_script and I'll suggest something else. :-)

  25. VFLnews
    Member
    Posted 1 year ago #

    Hi Martin,

    I have the same problem on my site (www.vflnyheter.se).
    However I can find no conflicting jquery.min or similar problem.
    I've tried to locate the issue but I'm at a loss.
    Would you be able to give me a push in the right direction?

    Thanks,
    Puck

  26. metapaul
    Member
    Posted 1 year ago #

    Hi Martin,

    I have a site that i am using ROTATING TWEETS on but am not able to get them rotating.

    Can u help me fix this

  27. colossalkid
    Member
    Posted 1 year ago #

    Hi Martin,

    Thanks for your help. I think I have narrowed down the problem. The header has the following lines:

    <?php
    wp_enqueue_script('jquery');
    wp_enqueue_script('cufon', get_stylesheet_directory_uri() . '/js/cufon.js');
    wp_enqueue_script('Myriad', get_stylesheet_directory_uri() . '/js/Myriad_Pro_700.font.js');
    wp_enqueue_script('Effects', get_stylesheet_directory_uri() .'/js/effects.js');
    wp_enqueue_script('easing', get_stylesheet_directory_uri() . '/js/jquery.easing.1.1.js');
    wp_enqueue_script('carousal', get_stylesheet_directory_uri() . '/js/jcarousel.js');
    ?>

    When I remove the line wp_enqueue_script('easing', get_stylesheet_directory_uri() . '/js/jquery.easing.1.1.js'); The rotating tweets works fine but my banner stops working. Any ideas on how to make the two play nicely?

    The site is http://www.colossalkid.com/

    Thanks!

  28. Martin Tod
    Member
    Plugin Author

    Posted 1 year ago #

    metapaul

    I can't help if you don't tell me the website address.

    Martin

  29. metapaul
    Member
    Posted 1 year ago #

  30. Martin Tod
    Member
    Plugin Author

    Posted 1 year ago #

    VFLNews

    No obvious answers. I can only suggest switching off your plug-ins one by one to see one of them is causing a problem.

    Martin

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic