Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#16 2015-11-20 17:00:07

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 12,502
Website GitHub

Re: RFC: Remove .swf support from the image panel

Deprecation might be simpler for now, given I don’t know how to stop support for those that haven’t got any SWF, but retain support for those that already do! If such users exist.

Can we straw poll on G+ too? I mean, if nobody says yay then we can drop it now wholesale, right?


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Hire Txp Builders – finely-crafted code, design and Txp

Offline

#17 2015-11-20 17:24:18

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,806
GitHub

Re: RFC: Remove .swf support from the image panel

Bloke wrote #296721:

Can we straw poll on G+ too? I mean, if nobody says yay then we can drop it now wholesale, right?

Done

Offline

#18 2015-11-21 11:08:15

Dragondz
Moderator
From: Algérie
Registered: 2005-06-12
Posts: 1,559
Website GitHub Twitter

Re: RFC: Remove .swf support from the image panel

Hi

I am using it on one of my website because some ad banner are still .swf, what i am doing now is checking the extention and it s .swf i use code to render a flash file instead of just image:
below the cod ei am using now:

<txp:images category="bannerh" limit="4" sort="rand()">
  <div>
    <txp:variable name="extention" value='<txp:image_info type="ext"/>'/>
    <txp:if_variable name="extention" value=".swf">
         <object type="application/x-shockwave-flash" data="/images/<txp:image_info type="id"/>.swf" width="<txp:image_info type="w"/>" height="<txp:image_info type="h"/>" style="height:<txp:image_info type="h"/>px">
                <param name="movie" value="/images/<txp:image_info type="id"/>.swf"/>
                <param name="wmode" value="transparent"/>
           </object>
     <txp:else />
            <txp:variable name="lienimg" value='<txp:image_info type="caption"/>' />
            <txp:if_variable name="lienimg" value="">
                   <img data-lazy=<txp:image_url/> />
            <txp:else />
                   <a href="<txp:image_info type="caption"/>" onClick="_gaq.push(['_trackEvent', 'Bannerh', 'Click', 'Click:<txp:image_info type="alt"/>',1.00,true]);" title="<txp:image_info type="alt"/>" target="_blank"><img data-lazy=<txp:image_url/> /></a>
            </txp:if_variable>
     </txp:if_variable>
  </div>
</txp:images>

Offline

Board footer

Powered by FluxBB