Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
jnm_audio
<txp:jnm_audio />
inserts an mp3 audio player (flash) in your pages and articles.
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
Re: jnm_audio
looks good Juanjo!
I have a cheeky request – any chance we can access the .fla to restyle the buttons?
Offline
Re: jnm_audio
Dude – this is perfect timing!! I was getting quite desperate for this and my deadline is today! You rock!!
Offline
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
Re: jnm_audio
I think you can write it like this instead. Correct me if I’m wrong.
< txp:php >
jnm_audio(array(‘fileid’=>file_download_id()));
< /txp:php >
Last edited by csandberg (2006-04-29 13:23:20)
Offline
Re: jnm_audio
Got a client who’ll love this. Thanks very much.
Offline
Re: jnm_audio
csandberg wrote:
I think you can write it like this instead. Correct me if I’m wrong.
< txp:php >
jnm_audio(array(‘fileid’=>file_download_id()));
< /txp:php >
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
Re: jnm_audio
Okay, try
echo jnm_audio(array(‘fileid’=>file_download_id()));
instead
Offline
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
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
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