Posts: 5
Threads: 2
Joined: Jun 2010
2010-06-23, 11:52:03
(This post was last modified: 2010-06-23, 11:54:13 by bindukk20.)
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
bye bye
Code:
TODO:
- add admin tab for customize the player settings
Posts: 104
Threads: 15
Joined: Oct 2009
Any instructions?
Thanks.
homershines
Posts: 972
Threads: 27
Joined: Aug 2009
Unzip it to your plugin folder and you should be good.
Posts: 104
Threads: 15
Joined: Oct 2009
Posts: 105
Threads: 10
Joined: Dec 2009
Posts: 407
Threads: 22
Joined: Aug 2010
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.
Posts: 407
Threads: 22
Joined: Aug 2010
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.
Posts: 1,928
Threads: 88
Joined: Apr 2010
2010-09-12, 19:38:30
(This post was last modified: 2015-02-20, 22:45:38 by Oleg06.)
how much there is that line?
Posts: 407
Threads: 22
Joined: Aug 2010
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.