MyBB Community Forums

Full Version: MyCode without Expression
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I want to make the following MyCode work without any tags at the beginning or end. The person will just paste their soundcloud link and it will work without the tags.

How would I go about doing that?


\[soundcloud\](.*?)\[/soundcloud\]

<object height="81" width="100%"><param name="movie" value="http://player.soundcloud.com/player.swf?url=$1&amp;g=bb"></param><param name="allowscriptaccess" value="always"></param><embed allowscriptaccess="always" height="81" src="http://player.soundcloud.com/player.swf?url=$1&amp;g=bb" type="application/x-shockwave-flash" width="100%"></embed></object>
Edit: delayed response

you can use AutoMedia plugin instead of using MyCodes for the media
It works great but there is one small problem. The media doesn't fit to the container but runs off the page.

Here: http://i.imgur.com/19AlE4f.png