vForums Support > Programming & Coding :: Code Requests & Support :: > [F] Allow Flash In Siggy
[F] Allow Flash In Siggy - Posted By MiNiCliP™ (miniclip238) on 23rd Apr 08 at 12:32pm
I was wondering of someone can make this code that allows hosted .swf files or flash in signatures
[flash width= height=]some .swf url[/flash]
this kind of ubbc tags in siggys
thanks
and would be appreciated
Re: Allow Flash In Siggy - Posted By Michael (wrighty) on 23rd Apr 08 at 4:12pm
vF has [flash] tags already, that allow Youtube videos. Could you check if that works in sigs please? Then let me know, and I'll work from that!
Re: Allow Flash In Siggy - Posted By Marc (cr0w) on 23rd Apr 08 at 9:17pm
It does work in sigs; remember the "Get Firefox" video I had before?
Miniclip, the [flash] tag is already built-in for sigs.
Re: Allow Flash In Siggy - Posted By MiNiCliP™ (miniclip238) on 25th Apr 08 at 2:35pm
No.. I Mean Allow .SWF Hosted Files On The Signature
im sure you guys get it , dont forget i meant not youtube videos
heres a sample .SWF URL:
http://media4.a123.com/games/files/starwarsroguesquadron550x400.swf
and i know Wrighty You Know Chris From Studio Zero Right?
It's Similar To His Code: [Don't link to other forums]
but im only requiring this on the siggy not on the post which this code does both for siggys and posts
Re: Allow Flash In Siggy - Posted By Michael (wrighty) on 25th Apr 08 at 2:38pm
Perhaps if I get bored this evening. Don't think I have much else to do. I need to clear all of these requests so that I can start on my tutoring.
Re: Allow Flash In Siggy - Posted By Michael (wrighty) on 25th Apr 08 at 5:25pm
Alter the height & width. This is the size that the SWF files will display as.
<script>
/*Flash Tag .swf fix
Created By Wrighty
Do Not: Rip, Repost or Claim!*/
var width = '550px';
var height = '400px';
var f = get('font','tag');
for(a=0;a<f.length;a++){
if(f[a].innerHTML.match(/\[flash\](.+?)\[\/flash\]/) && location.href.match(/view_topic/)){
var link = (f[a].innerHTML.match(/\[flash\](.+?)http:\/\/(.+?).swf(.+?)\[\/flash\]/))? RegExp.$2 : '';
var new_link = 'http://' + link + '.swf';
var n = '<object width="'+width+'" height="'+height+'"><param name="movie" value="'+new_link+'"><embed src="'+new_link+'" width="'+width+'" height="'+height+'"></embed></object>';
var x = new RegExp('[(.*)]');
f[a].innerHTML = f[a].innerHTML.replace(x,n);
}
}
</script>
Global footer
Any problems, reply!
Re: Allow Flash In Siggy - Posted By MiNiCliP™ (miniclip238) on 27th Apr 08 at 6:14am
Yeah it doesn't work.......
i tried this: http://media4.a123.com/games/files/starwarsroguesquadron550x400.swf
But It Only Shows the link why?
Re: Allow Flash In Siggy - Posted By Michael (wrighty) on 27th Apr 08 at 9:53am
it won't work on support. Could you link me to where you're trying it?
Re: Allow Flash In Siggy - Posted By MiNiCliP™ (miniclip238) on 27th Apr 08 at 2:41pm
yep i know it doesn't work here i just put the expample of what i typed on my test forum here: neonmagick.vforums.com
Re: Allow Flash In Siggy - Posted By Michael (wrighty) on 27th Apr 08 at 2:48pm
You need to enable flash in the forum settings in
Re: Allow Flash In Siggy - Posted By MiNiCliP™ (miniclip238) on 28th Apr 08 at 2:08pm
oh okay