In this week's episode, Bob tackles FileField Podcast module and shows you how to Podcast with Drupal 6 (and without audio.module). This approach gives us lots of flexibility because it's purely a CCK/Views setup. What's that? Bob already covered this topic? True, but with the change in the Views API, FileField Podcast module had to change as well, so this is an updated version that shows you how to build your views with a new method and greater flexibility.


Theming frontend tabs
Bob,
Great podcast and I love G&G too. I'm building a frontend theme and apparently my css stylesheet is overriding Drupal's tab styling (View, Edit, Panels, etc - I have the frontend theme setup to display when editing pages) and it's also screwing up the form fields and collapsible fieldsets on the edit tab. How do you overcome this or do you do use a seperate css stylesheet for Drupal's tabs and form elements?
Thanks,
Bob K.
Topic Suggestion
I absolutely love your drupal podcast. It's by far the best tutorial on drupal I've seen and that includes Lynda.com for which I pay for. I'm have trouble figuring out how to style my custom views. I thought it would be the same process as theming nodes as you explained in an earlier podcast but I've had no luck. I can't even find and good information on the web. Thanks and keep up the great work!
I am in durpal hell
What up Bob,
I am In drupal hell with SWF tools. I have been working on this for weeks now but, I can not get it to work. I themed the podcast node and I have all the right module to make is work but, does not work
here is themed the podcast node
nid; ?>" class="node<?php if ($sticky) { print ' sticky'; } ?><?php if (!$status) { print ' node-unpublished'; } ?>">
<?php if ($page == 0): ?>
" title="<?php print $title ?>"><?php print $title ?>
<?php endif; ?>
<?php print swf($node->field_file_audio_filed[0]['drupal/sites/default/files']); ?>
<?php print $content ?>
what I am doing wrong?
also I would be nice if you break it down "step by step" with your more intermediate
podcast episode. also here is a topic for the next episode theming a node in durpal 6
God's peace
Chris
Podcast Feed
Thank you SO much! I had followed your previous video cast and was stumped as to why things were not working. I appreciate this most recent updated video cast and your effort to get those of us who were lost back on track!!! (=
3rd Party Hosting
Is this technique able to use files on a separate hosting server, i.e., Libsyn or Archive.org?
You area beautiful man -
You area beautiful man - thank you I've been looking for this capability.
Thanks You So Much
Just wanted to drop a line to tell you how invaluable the videos you provide are. Your knowledge and insight, and the effort that goes into your videos, are an example to all. Thanks.
Hi Bob, This is not really
Hi Bob,
This is not really related to Drupal. What editors or software tools do you use for design and coding? I had a look on the web and there are so many arround that it is hard to decide on which ones to get.
Thanks!
Lots of answers...
@Bob K: I never had any issue overriding tab styling. I can't be sure where you're trouble lies, sorry! I do everything in my main stylesheet.
@David: Views theming would be a great episode for the podcast, I'll try and get to that in the future.
@Chris: Not sure if you got this figured out, but it looks like your code is missing some stuff. Places in it like
nid; ?>"
or
" title="
Don't really make sense...not sure what to tell ya other than to check your code for errors.
@Harlem: We'd like to add offsite hosting to this solution eventually...it's on our wish list for the future. I'll profile it here if we make it happen!
@Carel: I'm using Coda for my coding and FTP needs. Check it out at: http://panic.com/coda
media links and embedded player
my new podcast feed is fetching and displaying all of my podcasts perfectly, but the links it gives to the audio file adds an extra "?q=", leading to a nonexistant page.
example:
www.sitename.com/sites/default/files/music.mp3 -works
www.sitename.com/?q=sites/default/files/music.mp3 -doesnt work
also, could you go over/give the link to how to add the embedded player? i had trouble following other sites' theming guides :/
Clean URLs
Hey Steven...
This path issue won't be a problem with FFPC module. It's not even a problem with Views itself. It's an issue with Drupal's clean URLs functionality and your webserver setup. I'd check Drupal.org for tips on making sure your Clean URL functionality is working properly.
Also, check out this episode about adding the player using SWF Tools.
Site upgrade
Hi, I am in the process of wanting to upgrade my drupal 5 church website to drupal 6. The one thing that is holding me back is the podcast. I currently use the audio module with the iTunes audio RSS in views.
I have looked at you podcast for setting up a new podcast using Filefield podcast, but want to know if I can do the switch but still preserve the back catalogue of podast episodes and keep the feed url the same. Is this possible?
Where is the node-podcast.tpl.php file?
Hi Bob!
Thanks for the great podcasts. You are tons of help to me.
I'm new to Drupal and I may have a dumb question. Please forgive me. Can you tell me where the node-podcast.tpl.php file is located? I have looked all over and couldn't find it. I do see a file called ffpc-view-pocast-feed.tpl.php and that's it.
Is this file located some where else? Thanks!
Jim
Field section after adding Feed not displaying
Hi Bob,
I followed your podcast to the "tee" and I noticed that once we add the feed display and set the Style and Row style the Fields setion says "None defined" and is not accessable.
Also, under Live preview, two errors are displayed:
Display Defaults uses fields but there are none defined for it or all are excluded.
Display Feed uses fields but there are none defined for it or all are excluded.
All files we use are the latest. Do you have any ideal where I tripped up? Thanks
paul
FFPC Answers
@James:
Yes, you could maintain an old 'back catalog' of your audio module content by not removing that module or changing any of the feed information. Then, setup your new FFPC module and feed. At this point you'd have two feeds. If you want them all on one feed, I recommend mashing them together with Yahoo Pipes or a similar service before sending that resulting feed into Feedburner. That would get both your old and new feeds into a single feed you could distribute. If you didn't take this route, you'd have to convert all audio nodes over to CCK/Filefield nodes...and that's just not fun :)
@paul:
for the node-podcast.tpl.php you have to CREATE that file. It doesn't exist normally. Also, not the naming convention: the 'podcast' in that name is the machine readable name of your CCK content type. So, if you name your content type "audio", that file would be named node-audio.tpl.php
As for the errors, you missed a step in the process. You need to add the filefield file to the Views "field" section. Once you do that, and make sure you have a URL chosen in the "path" setting, the errors will go away.
playing of off-site mp3 files
Hi Bob!
Is it possiable to use FFcp to play mp3 off-site? Like from Amazon S3?
Jim Paul
Podcast
You have some of the best Video Podcast on the net that I have found. I enjoy listening and learning from you site.
My questions: I was able to implement the podcast tutorial, but I was not sure which file that you used to place the code for the player.
Thanks for you feedback and look forward to other podcast.
Styling
Great video podcast, definitely explains things better than the documentation available for FFPC. Any information on a release date now that both Views2 and CCK2 are official releases?
Okay, so I'm looking for some help... I'm in the process of assisting my church in porting from Drupal 5 to Drupal 6. One of the biggest hurdles right now is the lack of the ability to use the audio module (and frankly, FFPC seems a lot better, and less cumbersome). However, I need to figure out a way to *auto* create a list like the one that is available here:
http://www.ncwoc.com/audio
That is the current site in Drupal 5 using the Audio Module. The plan is to have this same sort of setup (it doesn't necessarily have to look identical, but it should be in some sort of list format).
I guess the obviously "easy" way would be to get the RSS Feed to display within a drupal node. I am relatively new to drupal as a whole, and certain things are throwing me for a loop. So, is there any good documentation out there on how to do this, or could you do a video on how to theme a podcast in a way similar to what I'm looking for?
Thanks, and have a very good and thankful Thanksgiving!
Josh
Re: Embedding the player...
Directed towards safeday:
The player was embedded using the SWF Tools Module. There is some really good documentation on SWF Tools that will tell you how to embed the player into a node, and will also tell you how to change the default player.
The easiest way to embed the player is to use this code:
<?php
print swf('sites/default/files/audio/file_name.mp3')
?>
That is an example, the path for yours might be different.
With just enabling SWF Tools and ensuring proper permissions, that code will work and allow playing using the *Default* SWF Tools player. To use a different player, like the 1 Pixel Out one, you'll need to "install" that player into SWF Tools, and tell it to use it. Again, documentation on how to do that is excellent, and available on the drupal site under the SWF Tools Module page: http://drupal.org/project/swftools.
Hope that helps both you, as well as Bob needing to respond to each inquiry. If anyone else has input, maybe something I've missed (as I am relatively new to drupal), please, post it.
Josh
No Feed Output?
Greetings -
This is the path I set for my podcast feed: podcast/feed/1
The full url would be: www.newcreationwoc.org/v2/podcast/feed/1. However, it doesn't seem to be outputting any data at all, and I followed your video precisely. Any thoughts?
Hi, thanks for all these
Hi, thanks for all these great podcasts. The audio module outputs ID3 information in its own field. Isn't Filefield meta supposed to do sort of the same thing? I much rather use Filefield, but I have no clue how to get id3 info to display in taxonomy.
Does filefield currently work this way or is that just a pipedream? Thanks.
Video podcasting?
Your tutorial video is fantastic.
Can I make a video podcast using this technique?
If you let every user have his own podcasts, how do you get those podcasts into itunes? Each user has to upload their own podcast url?
Enclosure Link is Correct in Node but not in Podcast XML
Hi, enjoying your podcasts, very informative. I'm having one litte issue getting the podcasts' xml to work.
If I view the node for the podcast (aka from cck), then the link to the audio file is working.
If I view the podcast feed (xml created by views/filefield podcast), then the link is broken because "?q=" gets added in somewhere. If I look at the view for it, the preview of the audio file is fine.
Do you still think this could be a clean urls issue? I'm not using it on this site, are you saying I need clean urls for the filefield podcast to work?
I hope that's not the case, but I look forward to hearing your feedback.
Thanks again.
Help with displaying 1pixel out!
Hi there,
I'm also a Drupal newbie, but longtime Web producer (not programmer.)
I'm really excited about moving my podcast over to Drupal, and allowing for community podcasting, but I am having a tough time figuring out this node-podcast.tpl.php thing (like Chris.)
As you can see on my page, I get the file showing up, not a Flash player:
http://pulpkulture.com/node/3
I do have a file named node_podcast.tpl.php in the Garland theme, here's what's in it:
<?php
// $Id: node_podcast.tpl.php,v 1.5 2007/10/11 09:51:29 goba Exp $
?>
nid; ?>" class="node<?php if ($sticky) { print ' sticky'; } ?><?php if (!$status) { print ' node-unpublished'; } ?>">
<?php if ($page == 0): ?>
" title="<?php print $title ?>"><?php print $title ?>
<?php endif; ?>
<?php print swf($node- >field_file[0]['filepath']); ?>
<?php print $content ?>
I can't seem to figure out what's wrong. Any suggestions welcome.
Thanks!
Kevin
node-podcast.tpl.php
An earlier episode explains how to set up custom tpl.php files. Check out the episode about customizing your blog, iirc.
d'oh!
It didn't help that I had an underscore, not a dash in the file name:
node-podcast.tpl.php
Got it running, tho, finally. Here's my code for anyone else struggling:
<?php
// $Id: node_podcast.tpl.php,v 1.5 2007/10/11 09:51:29 goba Exp $
?>
nid; ?>" class="node<?php if ($sticky) { print ' sticky'; } ?><?php if (!$status) { print ' node-unpublished'; } ?>">
<?php if ($page == 0): ?>
" title="<?php print $title ?>"><?php print $title ?>
<?php endif; ?>
<?php print swf($node->field_file[0]['filepath']); ?>
<?php print $content ?>
adding iTunes explicit, category info?
Hi there,
Great tutorial!
Any suggestions on how to add iTunes specific tags like Explicit and Category tags?
Thanks,
Kevin
ID3 tags
kevcol:
All ID3 tags (including this explicit information) should be set in your mp3 file before upload. You can do this in iTunes by importing your mp3, using 'get information' and changing the tags there...then exporting the file. Eventually we'd like to allow you to edit these tags within drupal, but it's not quite there yet.
Where in the World are the Filters
Bob,
Really enjoy your videos. They are helping me bridge over to some of that drupally mysticism. I am following along on my site attempting to setup a conversion from audio module. When you get to the part where you are choosing filters for the node feed I am finding that I have no filters. Is there a place where I enable those? Guess I'm still a newbee.
Listing users podcasting
Thanks for the awesome screencast. I have learnt heaps - I'm new to drupal! I have also implemented the podcasting content type on my drpual site.
Is there any chance of a follow up where you show how to setup a views page of a user's podcasts? At the moment all podcasts publish to /content/shownname where showname is the title of the podcast.
I tried using views to set this up but I don't know what the user variable is or how to get it into the path eg /%user%/podcasts. What I'd like to see is /username/podcasts where username can be any authenticated user and all of the episodes they've created are listed.
Once again thanks for a great podcast ... my learning continues.
cheers
Darrel
Tracking Feed Downloads or Subscriiptions
What are some ways to track podcast download stats? Is Google Feedburner the best tool or is there a way to do this just in Drupal 6?
1 Pixel Out missing
I've got everything set up except I can't seem to get Drupal to see 1 Pixel Out. I've downloaded the files (audio-player folder, audio-player.php, player.swf) and have put them in the SHARED folder in every path configuration I can uimagine, but it doesn't see it. Any thoughts? Many thanks.
1 Pixel Out hidden in Firefox
Well, I apparently had it set up fine, it just is not showing in Firefox on my mac or my PC. It is showing in IE and Safari. Hmmm?
SWF code to embed player
I'm new at this, and I'm having a hard time embedding the 1pixelout player. I've created an episode. I have the player installed correctly, as best as I can tell. I tried the embed command in the body of the episode using full-html, but something tells me it's not that simple. Could you give a bit more step by step instructions for "dummies"?
Thanks,
David
Where do you put the php
Where do you put the php syntax? That's what I can't figure out. (I bet I'm newer at this than you!)
node-podcast.tpl.php
You guys may want to jump back to the theming a drupal blog episode. There, it shows how you create a node-[type].tpl.php file and do your theming there.
So, in this example, it's a node-podcast.tpl.php file where I'm printing the player with php.
No output on feed
I saw someone else is having the same problem as me. I followed all the directions carefully, but there is no output on my feed. I have a podcast episode, but there is no output: www.davidmoerschel.org/podcast/feed
What am I doing wrong?
-David
Does FileField Meta collect ID3 info and how to display it?
Does FileField Meta collect and store ID3 info like artist, album, title, etc.?
If so, how do I display it or retrieve it?
Thanks.
How to display the tag information
(I don't know how to store this data yet. Still looking for this info.)
If you want to see what meta data can be retrieved using getid3(), put this code in your node-*.tpl.php file:
$info = getid3_analyze($node->name_of_filefield_field[0]['filepath']);if (isset($info['audio'])) {
echo '<>';
print_r ($info);
echo '';
}
For example, to print the ID3v1 "Artist" tag, you would use:
print $info['tags']['id3v1']['artist'][0];To print the ID3v2 "Album" tag, you would use:
print $info['tags']['id3v2']['album'][0];How to display the tag information
(I don't know how to store this data yet. Still looking for this info.)
If you want to see what meta data can be retrieved using getid3(), put this code in your node-*.tpl.php file:
$info = getid3_analyze($node->name_of_filefield_field[0]['filepath']);if (isset($info['audio'])) {
echo '<< pre >>';
print_r ($info);
echo '<< /pre >>';
}
For example, to print the ID3v1 "Artist" tag, you would use:
print $info['tags']['id3v1']['artist'][0];To print the ID3v2 "Album" tag, you would use:
print $info['tags']['id3v2']['album'][0];Storing ID3 tag info via FileField_meta
Given the information in this posting, it looks to me that it doesn't and won't store any ID3 info for now.
I totally understand why it doesn't. There are way too many tags and variations.
Hi, Great videos! I have
Hi,
Great videos!
I have created the feed but I have a small problem, I want to use image attach to have an image along with the info for my podcasts, but if i do this then the media file that is attached to the end of the post in the feed is the image and not the audio file, any ideas how to use image attach but have the feed not show the image media files link?
Do not show SWFTools Player if no file
I am using this solution with great success on our site. But, there are times in which the content type node might not have a video or mp3 uploaded. In this case, a blank video player shows up with an error.
I would like to create an if statement that would do the following
If no file in the filefield, print a statement like "No media available for this session"
If there is a file, use the player and play the file.
This is what I have so far and it does not work. I am not a coder, but I'm trying to learn.
<?php if (!empty($field_podcast_audio[0]['filepath'])): ?>
<?php print t("No video available for this session"); ?>
<?php else: ?>
<?php print swf($node->field_podcast_audio[0]['filepath']); ?>
<?php endif; ?>
Anyone have any ideas or advice on how to accomplish this.
Thanks so much,
Dan
Solution - Do not show SWFTools Player if no file
So, I had not realized that the solution has already been implemented for us by the maintainers of the SWFTool module as of version 6.x-2.4. They have implemented CCK Filefield support and we no longer need to add the line
<?php print swf($node->field_podcast_audio[0]['filepath']); ?>
to our node-CONTENT-TYPE.tpl.php files, nor do we need to worry about the player showing up with an error if there is no media file uploaded to the node.
Bob had given us a great solution through this tutorial, but now the module will take care of this for us.
To use it, you just need to go into the Display Fields area of your content type and select one of the two options for SWFTools in the drop-down selector for your media filefield type. It's simple, it makes sense and it's a huge help.
Hope this helps anyone else.
No output in feed
For those who have a problem with getting an output in their feed:
I installed the getid3 module, but never installed the library. Views made the feed, but it was never populated with episodes. Once I installed the library, the feed was populated.
Hope that helps!
David
Can't figure out Explicit ID3 tags
I saw the note above about importing the mp3 file into iTunes and then adding the explicit tag there, but I don't see a place in the "Get Information" window to add explicit. Can you give more detail about how to do that. I have everything else working now, but I am stuck here.
Thanks,
David
Assigning SWFTools Player to FileField without modifying Theme
Hey Bob,
thanks for your great tutorials. I don't know when the feature was included in SWFTools but with the version I installed today (Module Version 6.x-2.5) it is possible to assign SWFTools as a FileField formatter. See the documentation http://drupal.org/node/550238 for details. I think this might solve a lot of peoples headaches here and is more elegant in my opinion.
God Bless!
Nethanja
One (or 1) Pixel out
I can't for the life of me get swf to recognize the onepixelout player...as in the podcast I renamed the dir to 1pixelout...but when I do a swf report...it never sees or recognizes the player?
using Embedded Media in a FileField Podcaster feed?
Has such a thing been done?, i.e. able to host media on site like Odeo or Audiocloud, have those embedded audio files in a Drupal views2 Feed/podcast, then still be a compatible feed with itunes or where-ever?
I find this whole web 3.0 world fascinating (i.e. getting all the web 2.0 stuff to work together)
Jeremy