Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#13 2015-11-03 04:07:41

testdeputy
Member
Registered: 2011-05-29
Posts: 29

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

take a stand against this crap!
+1 for killing/not supporting it

Last edited by testdeputy (2015-11-03 04:08:10)

Offline

#14 2015-11-03 17:26:46

NicolasGraph
Plugin Author
From: France
Registered: 2008-07-24
Posts: 860
Website

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

‘don’t even know that I could upload Flash files in the Images tab…
It was probably useful ten or fifteen years ago… l:D
Kick it if you want.


Nicolas
Follow me on Twitter and GitHub!
Multiple edits are usually to correct my frenglish…

Offline

#15 2015-11-20 15:31:00

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

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

I’m going to bump/reopen this, with a reworded proposal. Deprecate or remove the ability to upload SWF files on the Images panel on the grounds of:

  • SWF files aren’t images.
  • Textpattern image tag doesn’t apply to SWF files (see this for info)
  • SWF files can be uploaded and managed on the Files panel.

The only safety proviso I can think of is to not clobber existing SWF files from folks that already have them stored/managed.

Offline

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

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,250
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.

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,134
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,529
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