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