Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#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
Offline
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
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
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?
Offline
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