Forums

[Plugin: WP-Cumulus] plugins uses obsolete SWFObject version (5 posts)

  1. gekido
    Member
    Posted 2 years ago #

    Hello,

    Do you have any plans to update WP-Cumulus to use a modern version of the SWFObject javascript library? The version that is included is 1.4, which is extremely old.

    The newer versions are bundled with wordpress by default, and/or can be directly linked via the google hosted javascript libraries, which is a big advantage over the version that is bundled with wp-cumulus at the moment.

    Thanx in advance,

    http://wordpress.org/extend/plugins/wp-cumulus/

  2. Roy Tanck
    Member
    Posted 2 years ago #

    Yes, we're planning a new version with man improvements, including an update of SWFObject to the latest version. Because we're planning a lot of new features, the new version may take a while, but I hope it'll be ready next month.

  3. Edy Hinzen
    Member
    Posted 2 years ago #

    Hello Roy!
    Boombastic plugin, thanks again.

    Hello together!
    Maybe the following code snipped could save you time or help migrating.

    Regards
    Edy

    <script type="text/javascript" language="JavaScript" src="/using-2.2-version-of/swfobject.js"></script>
    <script type="text/javascript">
    var flashvars = {};
    var params = {};
    var attributes = {};
    
    params.menu = "false";
    params.quality = "high";
    params.wmode = "transparent";
    params.AllowScriptAccess = "always";
    
    flashvars.mode = "tags"
    flashvars.tagcloud = "<tags>" +
     "<a href='http://www.hinzen.de' style='1'>Edy Hinzen</a>" +
     "<a href='http://www.roytanck.com' style='2'>Animation 2</a>" +
     "<a href='http://www.roytanck.com' style='5'>Animation 5</a>" +
     "<a href='http://www.roytanck.com' style='6'>Animation 6</a>" +
     "<a href='http://www.roytanck.com' style='7'>Animation 7</a>" +
     "<a href='http://www.roytanck.com' style='10'>Animation 10</a>" +
     "<a href='http://www.roytanck.com' style='11'>Animation 11</a>" +
     "</tags>";
    // or alternatively (change parm 'mode' above) :
    // flashvars.xmlpath = "/common/swf/wp-cumulus/tagcloud-eh.xml";
    
    swfobject.embedSWF("tagcloud.swf",
      "tagCloud1", "180", "180",
      "9.0.0", false, flashvars, params, attributes);
    </script>
  4. Roy Tanck
    Member
    Posted 2 years ago #

    Thanks, I've forwarded this thread to Luke, who's working on version 2.0.

  5. slott.hansen
    Member
    Posted 2 years ago #

    I have successfully implemented this awesome flash tag cloud using swobject 2.2. This is my code:

    var tagcloud = encode($('#tagCloud').html().toLowerCase());
    var flashvars = {
    	tcolor: "0xffffff",
    	tcolor2: "0xffffff",
    	hicolor: "0xffffff",
    	tspeed: "100",
    	distr: "true",
    	mode: "tags",
    	tagcloud: tagcloud
    };
    var params = {
    	bgcolor: "0x000000"
    };
    var attributes = {
    	wmode: "transparent"
    };
    swfobject.embedSWF("<xsl:value-of select="/ms247/@publicdir"/>wp-cumulus/tagcloud.swf", "tagCloud", "550", "375", "9.0.0", "expressInstall.swf", flashvars, params, attributes);

    Note that I keep the tags in a DIV container which is then replaced with the FLASH version - if flash is supported. Otherwise the DIV with working tags will be presented.

    And for IE and some other browsers the toLowerCase is required - something about innerHTML auto converting tags and stuff to uppercase. This is just another reason NOT to use IE :)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags