UBB.Dev
Posted By: smallufo How to embed <bgsound> in the signature ? - 02/15/2001 3:47 AM
as title...
When I embed <bgsound src="http://xxx/xxx.mid" loop="1">
It can't work. I know this may need a new markup tag. But how ?

Posted By: MTO Re: How to embed <bgsound> in the signature ? - 02/15/2001 4:14 AM
Are you sure you want this?! []/w3timages/icons/crazy.gif[/] What happens if more than one person has a musical signature? []/w3timages/icons/crazy.gif[/]

Mateo Byler
CruceDeCaminos.com
In reply to:

What happens if more than one person has a musical signature?



LOL!!!!! Great question, Mateo!


Posted By: Eileen Re: How to embed <bgsound> in the signature ? - 02/15/2001 5:53 AM
I have a video tag:

$Body =~ s,\[ video\]http://(.*?)\[ /video\],< EMBED SRC=http://$1 AUTOSTART=TRUE LOOP=TRUE WIDTH=170 HEIGHT=150 ALIGN=CENTER>,isg;
$Body =~ s,\[ video\](.*?)\[ /video\],< EMBED SRC=http://$1 AUTOSTART=TRUE LOOP=TRUE WIDTH=170 HEIGHT=150 ALIGN=CENTER>,isg;

I suppose you could use something similar for sound and trap to inline it only in threaded mode...

BTW I had to put a space into the html tag here to stop it displaying!

[]http://www.wopr.com/w3tuserpics/Eileen-sig.gif[/]
Posted By: smallufo can you help me... - 02/15/2001 8:19 AM
Thank you, but I am not familiar with perl/RegEX
can you help me translate this
<bgsound src="xxx.mid" loop="1">
or
<bgsound src="http://...../xxx.mid" loop="1">

to the markup tag
[bgsound src="xxx.mid" loop="1"]
or
[bgsound src="http://...../xxx.mid" loop="1"]

thank you

Posted By: Eileen Re: can you help me... - 02/15/2001 7:31 PM
Well, I don't think you want background sound - you want a one-off embed.

Try this:

http://www.amdragon.com/cgi-bin/www...st&Number=2377&page=0&view=expanded&sb=5

here's how I did it:

#do_markup:
$Body =~ s,\[ sound\]http://(.*?)\[ /sound\],< EMBED SRC=http://$1 AUTOSTART=TRUE LOOP=1 ALIGN=CENTER>,isg;
$Body =~ s,\[ sound\](.*?)\[ /sound\],< EMBED SRC=http://$1 AUTOSTART=TRUE LOOP=1 ALIGN=CENTER>,isg;

#undo_markup:
$Body =~ s,< EMBED SRC="(.*)" AUTOSTART=TRUE LOOP=1 ALIGN=CENTER>,\[ sound\]$1\[ /sound\],ig;
$Body =~ s,< EMBED SRC=(.*) AUTOSTART=TRUE LOOP=1 ALIGN=CENTER>,\[ sound\]$1\[ /sound\],isg;



[]http://www.wopr.com/w3tuserpics/Eileen-sig.gif[/]
© UBB.Developers