Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Mp3 Player 1.0 (Beta)
#1
Code:
Plugin Name: Mp3 Plugin
Description: Replace links to mp3 files with a flash player inside of page contents
Version: 1.0

Simple plugin that replace anchors to mp3 files with an mp3 player

On my site works well, but it needs some tests Smile


bye bye


Code:
TODO:

- add admin tab for customize the player settings
Reply
#2
Any instructions?

Thanks.

homershines
Reply
#3
Unzip it to your plugin folder and you should be good.
“Don’t forget the important ˚ (not °) on the a,” says the Unicode lover.
Help us test a key change for the core! ¶ Problems with GetSimple? Be sure to enable debug mode!
Reply
#4
Got it.

Thanks.

Homer
Reply
#5
Don't work for me !
Reply
#6
Hi there.. hope you dont mind, I update the one part of your code to allow for whitespace characters that breaks the plugin

changed
Code:
$str = '/<a(.*)(href|src)(\"|\'|\=\"|\=\')(.*'.$str.')(.*)\/a>/i';

To be as follows
Code:
$str = '/<a(.*)(href|src)(\"|\'|\=\"|\=\')(.*'.$str.')(.*[ \t\r\n]*)(.*<\/a>)/i';

Now if link looks like this

Code:
<a href="123wq.mp3">
  Test me please    </a>

then it wont break. as it required the links text to be as follows

Code:
<a href="123wq.mp3">  Test me please    </a>

Hope it helps.. Thanks for the plugin.

cheers

Johannes
Stopped developing on GS Plugins. Anybody welcome to take the projects over. Thanks for all the support all.
Reply
#7
Also, extra note, what I noticed is that the mp3 files must not have spaces in its name for example
my mp3 music file.mp3

it seems the flash plugin does not like that, must rather be linked, I did mine as

my_mp3_music_file.mp3

then it works..

tx
Stopped developing on GS Plugins. Anybody welcome to take the projects over. Thanks for all the support all.
Reply
#8
how much there is that line?
Reply
#9
Sorry dont really understand what you are asking (English is not my native language)

Thanks
Stopped developing on GS Plugins. Anybody welcome to take the projects over. Thanks for all the support all.
Reply




Users browsing this thread: 1 Guest(s)