Skip to Content Skip to Menu

MYSPACE like MP3 player (Released)

  • houbahop
  • houbahop
  • OFFLINE
  • Posts: 50
  • Thanks: 0
  • Karma: 9
17 years 7 months ago #32825 by houbahop
Replied by houbahop on topic Re:MYSPACE like MP3 player (Released)
Thank you for the links.

Currently it's not possible to allow several players, but I must work on this when I will have time.

I could for example make 10 fields where 10 different regexp could be put (one by player)

Sorry, it will need a little time, I can't work on it currently.

Please Log in or Create an account to join the conversation.

  • tokmoh
  • tokmoh
  • OFFLINE
  • Posts: 18
  • Thanks: 0
  • Karma: 2
17 years 7 months ago #32840 by tokmoh
Replied by tokmoh on topic Re:MYSPACE like MP3 player (Released)
dude.. it's work.. all profile n all flash mp3 using <embed> code, but, its not work for <object> code

[code:1]^(<embed)( )+(src="«»)(.*)(</embed>«»)$[/code:1]

yeah.. cool.. thanx.. bro..
visit my profile..
budak-u.com.my/tokmoh
or
www.utecportal.com/tokmoh

my mp3 player
tm.pengganas.net/fs2/mp3.swf

Please Log in or Create an account to join the conversation.

  • houbahop
  • houbahop
  • OFFLINE
  • Posts: 50
  • Thanks: 0
  • Karma: 9
17 years 7 months ago #33000 by houbahop
Replied by houbahop on topic Re:MYSPACE like MP3 player (Released)
Hello,
Have you tried :

[code:1]^(<object)( )+(src="«»)(.*)(</object>«»)$[/code:1] ?

If this don't work, please copy and paste here your new player code, I will write you the matching regexp.

Basically the sign [code:1]^[/code:1] at the beginning means "that must start with what follows"

the sign : [code:1]$[/code:1] means "that must end with what is before

parenthesis are used to make different groups.

[code:1]+[/code:1] means that the previous group must be present at least one time. So, in the previous code [code:1]( )+[/code:1] means "one of several spaces"

[code:1].[/code:1] means "any character"
[code:1]*[/code:1] means "zero or more times"
So, [code:1](.*)[/code:1] means "any character zero or more time"

To sum up the whole string means that the player code must :

1- Start with [code:1]<object[/code:1]
2- have one or more space after object
3- have [code:1]src="[/code:1] after the space(s)
4- must finish by [code:1]</object>[/code:1]
5- can have or not any text between 3 and 4

It's a bit hard to catch that but with training, you find it easy ;-):cheer:

Please Log in or Create an account to join the conversation.

  • tokmoh
  • tokmoh
  • OFFLINE
  • Posts: 18
  • Thanks: 0
  • Karma: 2
17 years 7 months ago #33080 by tokmoh
Replied by tokmoh on topic Re:MYSPACE like MP3 player (Released)
o0o0ic.. i tried to combine object n embed.. but it's not working.. now i dont have any idea.. hehehe.. anybody can help us? :P :P :P

Please Log in or Create an account to join the conversation.

  • houbahop
  • houbahop
  • OFFLINE
  • Posts: 50
  • Thanks: 0
  • Karma: 9
17 years 7 months ago #33094 by houbahop
Replied by houbahop on topic Re:MYSPACE like MP3 player (Released)
copy here the text song code that you want to put please.

I will take a look.

If you absolutely want to allow all and dont mind about security, you can write that regexp

[code:1](.*)[/code:1]

It should work with anything (even two songs one after the other)

But your users could use that to hack.

Please Log in or Create an account to join the conversation.

17 years 6 months ago #35675 by evolgrinder
Replied by evolgrinder on topic Re:MYSPACE like MP3 player (Released)
Hey, thanks for the plugin.

I've installed it using your instructions but when I tried to input the song code from radioblogclub.com, I got this error message:

Fatal error: Call to undefined function: mb_eregi() in /home/content/E/v/o/Evolgrinder/html/joomla/components/com_comprofiler/plugin/user/plug_musicplayer/cb_musicplayer.php on line 41

Actualy, it may be a good idea also to generate a unique CB regexp code for it. That would also require a CB Gallery 'code fetch' box so users could insert it through the musicplayer edit. We could then play our own fav mp3's from the Gallery on the front using the CB Musicplayer plugin.

Post edited by: evolgrinder, at: 2007/04/15 16:34

Post edited by: evolgrinder, at: 2007/04/15 17:54

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum