Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Trying to write a soundcloud plugin
Hi, i'm new with vanilla, just installed it this week. I'm trying to make a new plugin for embedding the soundcloud player in my discussions. I grabed the Magic plugin and worked it from there...but i'm having some kind of problem with the parsing i think...
i'm returning this in a function:
but when i look at the discussion's html code i see this:
i don't get what's wrong, why is it omitting '<' before param, after that it does it again...any ideas? thank you very much
i'm returning this in a function:
return "<object height=\"81\" width=\"100%\"><param name=\"movie\" value=\"http://player.soundcloud.com/player.swf?url=" . $Matches[0] . "&g=bb\"></param><param name=\"allowscriptaccess\" value=\"always\"></param><embed allowscriptaccess=\"always\" height=\"81\" src=\"http://player.soundcloud.com/player.swf?url=" . $Matches[0] . "&g=bb\" type=\"application/x-shockwave-flash\" width=\"100%\"></embed></object>";
but when i look at the discussion's html code i see this:
<object height="81" width="100%">param name="movie" value="http://player.soundcloud.com/player.swf?url=<a href=">http://&g=bb</a>"><param name="allowscriptaccess" value="always">embed height="81" src="http://player.soundcloud.com/player.swf?url=<a href=">http://soundcloud.com/r_co/blake-baxter-live-tresor-loveparade-12-07-2003&g=bb</a>" type="application/x-shockwave-flash" width="100%"></object>
i don't get what's wrong, why is it omitting '<' before param, after that it does it again...any ideas? thank you very much
Tagged:
0
Comments