Need help? Check out our Support site, then


Embed to Gigya Shortcode Help Please

  1. http://bloodsongtermagant.wordpress.com

    which won't show you anything, but that's my blog. or one of them. i bought a random quote rotator from oxylus flash, to (try to) embed on one of my pages.

    now, following this extremely useful and popular tutorial by panos:
    http://wpbtips.wordpress.com/2010/07/22/gigya-shortcode-3-widgets/

    i know i have to convert my swf file's embed code into gigya shortcode. however, whenever i try to do it, the widget does not work. i thought instead of overloading poor panos, i'd ask folks at large, hoping there are more people who know how to properly do this.

    so, here is the embed code for my swf app:
    <br /> <!-- START: EMBED CODE --><br /> <style type="text/css"><br /> html{<br /> margin:0;<br /> padding:0;<br /> height:100%;<br /> width: 100%;<br /> background-color: #000000;<br /> }<br /> body {<br /> margin: 0;<br /> padding: 0;<br /> height:100%;<br /> width: 100%;<br /> min-width: 1200px;<br /> min-height: 600px;<br /> }<br /> #oxylusflash{<br /> min-width: 1200px;<br /> min-height: 600px;<br /> height: 100%;<br /> overflow: hidden;<br /> display:block;<br /> outline:none;<br /> }<br /> </style><br /> <script type="text/javascript" src="js/swfobject.js"></script><br /> <script type="text/javascript" src="js/swfaddress.js"></script></p> <p> <script type="text/javascript"><br /> // DOCUMENTATION: http://code.google.com/p/swfobject/wiki/documentation<br /> var flashvars = {};<br /> flashvars.xmlFile = "data.xml"; // SET XML FILE HERE<br /> var params = {};<br /> params.scale = "noscale";<br /> params.salign = "tl";<br /> params.bgcolor = "#000000";<br /> params.seamlesstabbing = "false";<br /> params.swliveconnect = "true";<br /> params.allowfullscreen = "true";<br /> params.allowscriptaccess = "always";<br /> params.allownetworking = "all";<br /> params.base = "";<br /> var attributes = {};<br /> attributes.id = "oxylusflash";<br /> attributes.align = "top";<br /> swfobject.embedSWF("main.swf", "alternativeContent", "100%", "100%", "9.0.0", false, flashvars, params, attributes);<br /> </script><br /> <!-- END: EMBED CODE --><br />

    THIS is what i translated that into:
    <br /> [gigya src="http://bldsong.net/dabz/Quotes/main.swf" width=400 & height = 220 & flashvars.xmlFile ="http://bldsong.net/dabz/Quotes/data.xml"]<br />
    (i had a longer one, but all those params didn't really seem needed.)

    i get the flash widget's blank background, but i don't get my random quotes.
    my guess is, there's something screwy with the flashvars.xmlFile thing. because that's not a full parameter, it's... part of an array?? i'm stumped, and i didn't get any reply on the oxylus support forum on this.

    is this widget just not going to work via gigya shortcode because of the external xml file it is using for its operation? i have no idea, to be honest.

    thanks for any help or suggestions to try!

    The blog I need help with is bloodsongtermagant.wordpress.com.

  2. If you notice int he top "script" section where it says, javascript? It appears like the code needs both javascript and flash, so I doubt it is going to work.

  3. oh, is that right? i thought perhaps all SWF files had javascript running them. hey, i dunno nothin! ;D

    thanks!

  4. wait...

    all flash apps, including the embedded ones on panos sample pages, are blocked by no-script. so... that does mean they're all run by javascript, doesnt it?

    ???

  5. The code you pasted is for self-hosted blogs. It cannot be used in a wp.com blog or converted into anything. As TSP already pointed out, if you see "script" or "javascript" in a code, you can forget it. The codes that can be converted into a gigya shortcode start with this tag:
    <embed
    or this tag:
    <object

    As for you last remark, if by "blocked" you mean stripped out by WP, then no that doesn't apply to javascript only: WP strips out the codes that start with script or embed or object or iframe or form.

Topic Closed

This topic has been closed to new replies.

About this Topic