Thread Rating:
  • 414 Votes - 2.85 Average
  • 1
  • 2
  • 3
  • 4
  • 5
replace by image if featurific (if flash) not present
12-12-2009, 05:46 AM
Post: #1
Thumbs Up replace by image if featurific (if flash) not present
Hello,
thank you for this extension really simple to configure. I use it in Wordpress and on static website. it works perfectly.

By cons I would like display a static image alternative when Flash is not present: for example on the iPhone.
so as not to shift the layout.

is there a trick that I do not know? with base code flash is quite simple but now I do not know what to do.

thank you for your ideas and advice
Mathieu
12-15-2009, 04:25 AM
Post: #2
RE: replace by image if featurific (if flash) not present
Hi easysofts,

Featurific uses SWFObject (aka FlashObject) to embed the .swf into the page. It has some options for meeting the need you are referring to. Try Googling these terms to find out how to accomplish what you need. Then, you can simply edit the flash embed code that can be found in the featurific.php file within the wp-content/plugins/featurific-for-wordpress directory.

Best of luck! Smile
-Rich
Find all posts by this user
04-11-2010, 08:06 PM
Post: #3
RE: replace by image if featurific (if flash) not present
(12-15-2009 04:25 AM)rinogo Wrote:  Hi easysofts,

Featurific uses SWFObject (aka FlashObject) to embed the .swf into the page. It has some options for meeting the need you are referring to. Try Googling these terms to find out how to accomplish what you need. Then, you can simply edit the flash embed code that can be found in the featurific.php file within the wp-content/plugins/featurific-for-wordpress directory.

Best of luck! Smile
-Rich

I have open featurific.php and on line 617 there is the SWFObject code but I can't add alernative content, all my test were bad ! Confused

défaut code:
Code:
$html = <<<HTML
        <center><!-- Begin Featurific Flash Gallery (version {$version}) - http://featurific.com -->
        <script type="text/javascript" src="{$web_root}featurific.js"></script><div id="swfDiv">
        <script type="text/javascript">
        // <![CDATA[
        fo = new SWFObject("{$web_root}FeaturificFree.swf?&lzproxied=false", "lzapp", "$width", "$height", "6", "#FF6600");
        fo.addParam("swLiveConnect", "true");
        fo.addParam("name", "lzapp");
        fo.addParam("wmode", "transparent");
        fo.addParam("allowScriptAccess", "always");
        fo.addVariable("xml_location", "{$web_root}{$data_xml_filename}");
        fo.write("swfDiv");
        // End JS for http://featurific.com
        // ]]>
        </script></div>
        <!-- End Featurific --></center>
HTML;

where can I add my alternative content ? thanks Blush
04-13-2010, 05:16 AM
Post: #4
RE: replace by image if featurific (if flash) not present
Hi Guest!

What did you try, more specifically? Perhaps you can post the actual code you tried and I can help out. Smile

Have a great day!
-Rich
Find all posts by this user
04-13-2010, 06:43 AM
Post: #5
RE: replace by image if featurific (if flash) not present
is the original code Featurific above. I tried several solutions but without success.

Am I alone in wanting to do this? Idea

Did you give me an example: display alternate text or image instead of Featurific when flash is not available.

In fact you find it too simple, and you're laughing at me ... Blush
04-20-2010, 07:50 AM (This post was last modified: 04-20-2010 07:51 AM by rinogo.)
Post: #6
RE: replace by image if featurific (if flash) not present
Hi easysofts!

Yes, that seems to be the original code above. I apologize if it seemed that I was laughing at you! It was a smile, not a laugh. Smile

Since you're having some trouble figuring this out from the documentation for swfobject, I did some research for you. Try something like the following instead of the code you posted above:

PHP Code:
    $html = <<<HTML
        <center><!-- Begin Featurific Flash Gallery (version {$version}) - http://featurific.com -->
        <script type="text/javascript" src="
{$web_root}featurific.js"></script><div id="swfDiv">
        <h1>hello</h1>
        Any HTML you include here will be shown if Featurific can't be loaded (e.g. if flash isn't present).<br/>
        <b>Enjoy! :)</b>
        <script type="text/javascript">
        // <![CDATA[
        fo = new SWFObject("
{$web_root}FeaturificFree.swf?&lzproxied=false", "lzapp", "$width", "$height", "6", "#FF6600");
        fo.addParam("swLiveConnect", "true");
        fo.addParam("name", "lzapp");
        fo.addParam("wmode", "transparent");
        fo.addParam("allowScriptAccess", "always");
        fo.addVariable("xml_location", "
{$web_root}{$data_xml_filename}");
        fo.write("swfDiv");
        // End JS for http://featurific.com
        // ]]>
        </script></div>
        <!-- End Featurific --></center>
HTML; 

Best of luck; let me know if this works for you! Smile
-Rich
Find all posts by this user


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  deleting image from the selection summary Garyhou 2 5,094 01-02-2011 03:42 PM
Last Post: rinogo
  Removing border around featurific Guest 8 16,059 12-07-2010 05:05 AM
Last Post: rinogo
  Manually Select Images and Words for Featurific armyhistory 1 5,081 07-17-2010 04:27 AM
Last Post: rinogo
  Changing the WP post image grabbed by the plugin andydarley 1 7,581 07-14-2010 06:44 AM
Last Post: rinogo
  Getting FEATURIFIC to work on my Home Static Page bribiz 1 4,265 05-29-2010 07:04 AM
Last Post: rinogo
  Will the Featurific Plugin Work On Custom Template Pages bribiz 1 3,862 05-29-2010 07:02 AM
Last Post: rinogo
  Image size broken Stuka 1 2,343 03-09-2010 03:44 AM
Last Post: rinogo
  featurific new version Guest 1 3,635 01-12-2010 07:28 AM
Last Post: rinogo
  Arrows and Numbers for advancing the featurific image forward or backward maxfaction 3 16,141 01-01-2010 12:31 AM
Last Post: ForbesOS
  Flash error Phenix 4 4,533 12-31-2009 10:53 AM
Last Post: rinogo

Forum Jump:


User(s) browsing this thread: 1 Guest(s)