How to add BBcode for Soundcloud
Here is the Soundcloud BBcode for forums:
I went to library/core/class.format.php and made all {param} variables with
When you type: [soundcloud][/soundcloud] in most forums it must show the SC player!
But the result here is shown as:
param name="movie" value="http://player.soundcloud.com/player.swf?url=embed height="81" src="http://player.soundcloud.com/player.swf?url=
Where is the problem? I hope for a help
<object height="81" width="100%"><param name="movie" value="http://player.soundcloud.com/player.swf?url={param}&g=bb"></param><param name="allowscriptaccess" value="always"></param><embed allowscriptaccess="always" height="81" src="http://player.soundcloud.com/player.swf?url={param}&g=bb" type="application/x-shockwave-flash" width="100%"></embed></object> <a href="{param}">{param}</a>
I went to library/core/class.format.php and made all {param} variables with
\\1
$Mixed2 = preg_replace("#\[soundcloud\](.*?)\[/soundcloud\]#si",'<object height="81" width="100%"><param name="movie" value="http://player.soundcloud.com/player.swf?url=\\1&g=bb"></param><param name="allowscriptaccess" value="always"></param><embed allowscriptaccess="always" height="81" src="http://player.soundcloud.com/player.swf?url=\\1&g=bb" type="application/x-shockwave-flash" width="100%"></embed></object> <a href="\\1">\\1</a>',$Mixed2);
When you type: [soundcloud][/soundcloud] in most forums it must show the SC player!
But the result here is shown as:
param name="movie" value="http://player.soundcloud.com/player.swf?url=embed height="81" src="http://player.soundcloud.com/player.swf?url=
Where is the problem? I hope for a help

Tagged:
1
Comments
my class.format.php has this code:
$Mixed2 = preg_replace("#\[sc\](.*?)\[/sc\]#si",'<object height="81" width="100%"><param name="movie" value="http://player.soundcloud.com/player.swf?url="\\1&g=bb"></param><param name="allowscriptaccess" value="always"></param><embed allowscriptaccess="always" height="81" src="http://player.soundcloud.com/player.swf?url="\\1&g=bb" type="application/x-shockwave-flash" width="100%"></embed></object>',$Mixed2);
i think it has something to do with the quotation of the url ("")
any clues?