Closed (fixed)
Project:
AudioField
Version:
7.x-1.0-beta8
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
8 Oct 2012 at 21:59 UTC
Updated:
28 Oct 2012 at 20:51 UTC
Hi,
I'm just starting tolearn D7 and audiofield, so I hope that my question is a pertinent one.
Is it possible to have one of the players inline?
I mean to have text after the player, so basically to chooe exactly where you would like the player to occur in one page.
At the moment I can place the player only at the bottom of a page.
Thank you
Comments
Comment #1
tamerzg commentedYou can switch input format to php code in your textarea and then add following snippet wherever you want to render audio player (just replace field_audio with the name of your audiofield):
Comment #2
chrisivens commentedI suppose a long way round would be to have a content type or entity purely for video content and then create a filter that renders the player for whichever node you specify using a short code. That's possibly the way I'd do it for reuse.
Comment #3
tbom commentedHi,
I added the text below:
but I get this error:
public_html/modules/php/php.module(80) : eval()'d code on line 6
Can you please help
I replaced the field_audio with the name of my field (the name that I've added in the Content type)
Thank you
Comment #4
tbom commentedIs there any hope for some help on the error I got above?
thank you
Comment #5
tbom commentedI found the issue,
$audiofile = file_create_url($node->field_audio['und'][0]['uri']);The minus sign "-" was missing, instead of $node>field_audio, it should be $node->field_audio... and now I get another error, I'll post it separately