Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

  1. Index
  2. » Plugin support
  3. » jnm_audio

#1 2006-04-29 08:06:28

juanjonavarro
Plugin Author
From: Valencia, Spain
Registered: 2005-05-16
Posts: 485
Website

jnm_audio

<txp:jnm_audio /> inserts an mp3 audio player (flash) in your pages and articles.

Info and download

Version: 0.3

History:

0.3

  • Eliminated some warnings in debug mode.
  • The plugin now generates valid xhtml code.

0.2

  • Added “special” value ‘.’ (evaluate body)

0.1

  • Initial release

Last edited by juanjonavarro (2014-03-25 19:15:51)

Offline

#2 2006-04-29 09:33:56

lee
Member
From: Normandy, France
Registered: 2004-06-17
Posts: 831

Re: jnm_audio

A very nice plugin. Thanks.

Last edited by lee (2006-04-29 14:25:37)

Offline

#3 2006-04-29 10:59:51

pieman
Member
From: Bristol, UK
Registered: 2005-09-22
Posts: 491
Website

Re: jnm_audio

looks good Juanjo!
I have a cheeky request – any chance we can access the .fla to restyle the buttons?

Offline

#4 2006-04-29 11:23:05

shearstock
Member
From: Dorset, UK
Registered: 2006-01-29
Posts: 18
Website

Re: jnm_audio

Dude – this is perfect timing!! I was getting quite desperate for this and my deadline is today! You rock!!

Offline

#5 2006-04-29 12:01:50

shearstock
Member
From: Dorset, UK
Registered: 2006-01-29
Posts: 18
Website

Re: jnm_audio

It appears that you cannot use textpattern tags within this tag… ie…

[txp:jnm_audio fileid=”[txp:file_download_id /]”/]

Is it possible to change it so the variables can be txp tags? Is there any other way round? . . . Begining to panic!! ;)

Last edited by shearstock (2006-04-29 12:02:45)

Offline

#6 2006-04-29 13:21:47

csandberg
Plugin Author
From: Sweden
Registered: 2006-01-07
Posts: 40
Website

Re: jnm_audio

I think you can write it like this instead. Correct me if I’m wrong.

&lt; txp:php &gt;
jnm_audio(array(‘fileid’=>file_download_id()));
&lt; /txp:php &gt;

Last edited by csandberg (2006-04-29 13:23:20)

Offline

#7 2006-04-29 13:23:17

ricetxp
Member
From: London, UK
Registered: 2005-05-24
Posts: 89
Website

Re: jnm_audio

Got a client who’ll love this. Thanks very much.

Offline

#8 2006-04-29 13:29:36

shearstock
Member
From: Dorset, UK
Registered: 2006-01-29
Posts: 18
Website

Re: jnm_audio

csandberg wrote:

I think you can write it like this instead. Correct me if I’m wrong.

&lt; txp:php &gt;
jnm_audio(array(‘fileid’=>file_download_id()));
&lt; /txp:php &gt;

Hmmm, thanks csandberg. This replacement isn’t working correctly, it doesn’t seem to output any code. Sorry, I am really not a PHP coder (yet)! Any idea what could be wrong?

Offline

#9 2006-04-29 14:07:02

csandberg
Plugin Author
From: Sweden
Registered: 2006-01-07
Posts: 40
Website

Re: jnm_audio

Okay, try
echo jnm_audio(array(‘fileid’=>file_download_id()));
instead

Offline

#10 2006-04-29 14:07:40

Zanza
Plugin Author
Registered: 2005-08-18
Posts: 699
Website

Re: jnm_audio

You need to specify a file_download_id number, I suppose. To do so you have to call the parameters, using file_download(array(‘id’=>‘XX’)), or something similar, inside the jnm_audio php call.

file_download_id isn’t the correct tag, because it should be used inside a form in a context of file download.

I don’t know if I catch the problem, only guessing…

Z-

Offline

#11 2006-05-01 17:10:48

juanjonavarro
Plugin Author
From: Valencia, Spain
Registered: 2005-05-16
Posts: 485
Website

Re: jnm_audio

pieman wrote:

I have a cheeky request – any chance we can access the .fla to restyle the buttons?

I’m using the flash player created by Martin Laine for Wordpress.

http://www.1pixelout.net/code/audio-player-wordpress-plugin/

You can dowload the flash player source code from his page.

Offline

#12 2006-05-01 17:14:39

juanjonavarro
Plugin Author
From: Valencia, Spain
Registered: 2005-05-16
Posts: 485
Website

Re: jnm_audio

shearstock wrote:

It appears that you cannot use textpattern tags within this tag… ie…

No, you cannot. It’s a textpattern limitation (you cannot use textpattern tags inside other tag’s attributes.

But I have included a solution in version 0.2.

If you specify ‘.’ as the value for any of the source attributes (fileid, filename, audio or url), the tag will parse his body to obtain the actual value.

Example:

<code><txp:jnm_audio fileid=”.”><txp:file_download_id /></txp:jnm_audio></code>

(will use the id of the current file (to be used in a “file form”)

Hope this helps.

Offline

  1. Index
  2. » Plugin support
  3. » jnm_audio

Board footer

Powered by FluxBB