Support » Plugins and Hacks » Creating a plugin for my video/music use, need help.

  • Hello world.

    I simply want to use these two BBcodes (from phpbb3) in wordpress:

    1. [Video]{SIMPLETEXT}[/Video]

    <script type=”text/javascript” src=”http://www.erl115.net/public/flashplayer/flowplayer-3.2.6.min.js”></script>

    <script>flowplayer(“player”, “http://www.erl115.net/public/flashplayer/flowplayer-3.2.7.swf”);</script>

    2. [Music]{SIMPLETEXT}[/Music]

    <embed type=”application/x-shockwave-flash” flashvars=”audioUrl=http://erl115.net/public/flashmusic/{SIMPLETEXT}” src=”http://www.erl115.net/public/musicplayer/player.swf” width=”400″ height=”27″ quality=”best”></embed>

    I’ve only made the .php file with the head information for the plugin, but have no clue on how to proceed 🙁

    I want a button or code i can add when im creating a new post where I can add the url for my video or music files, the java script and the players i already have on my server (as you can see in the BBcodes).

    I will guess this is a easy plugin code to make, but I have never made any plugin for wordpress so I dont know the language.

    Maybe someone could send me in teh right directions or write me the codes for the .php file? 🙂

    I hope someone can help and I will be grateful for any answer ^^

Viewing 2 replies - 1 through 2 (of 2 total)
  • There was a error in the video bbcode, its like this:

    <script type=”text/javascript” src=”http://www.erl115.net/public/flashplayer/flowplayer-3.2.6.min.js”></script>

    <script>flowplayer(“player”, “http://www.erl115.net/public/flashplayer/flowplayer-3.2.7.swf”);</script>

    <script type="text/javascript" src="http://www.erl115.net/public/flashplayer/flowplayer-3.2.6.min.js"></script>
    <a href="http://www.erl115.net/public/flashvideos/{SIMPLETEXT}" style="display:block;width:640px;height:360px" id="player"></a>
    <script>flowplayer("player", "http://www.erl115.net/public/flashplayer/flowplayer-3.2.7.swf");</script>
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Creating a plugin for my video/music use, need help.’ is closed to new replies.