Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2005-01-10 07:03:50

flowb33
Member
From: Portland, OR
Registered: 2004-02-25
Posts: 11

Podcasting extension

Wondering if someone has built/could build a plug-in that allowed uploading an mp3 as part of an “article.” Then that would get syndicated through the RSS feed.

Or I wonder if the image uploader can be modified to accept mp3 files?

Update: Just found this thread on the topic as well.

Last edited by flowb33 (2005-01-10 07:10:52)

Offline

#2 2005-03-09 13:31:38

vmarks
New Member
Registered: 2005-03-08
Posts: 2

Re: Podcasting extension

I want this feature.

It seems that most podcast aggregators are looking for rss2.0 enclosure url to specify name of file, length of file, and application/type.

Offline

#3 2005-03-09 14:07:41

ruminator
Member
From: Carson City, NV
Registered: 2005-02-01
Posts: 57
Website

Re: Podcasting extension

You know, I’ve thought about adding a podcast to my site too. It would be really good (read make it doable for me) if Txp supported this function. I’d say it isn’t a high priority issue, but something that would be a nice feature.


Search is your friend… Think before writing…

Offline

#4 2005-03-09 15:54:52

flowb33
Member
From: Portland, OR
Registered: 2004-02-25
Posts: 11

Re: Podcasting extension

I notice the new “file upload” feature in RC3, which I think is a start to making this happen (as long as MP3s can be uploaded). All we have to do is get the RSS to ouput something like this:

<pre>
$size=filesize(“$path_to_mp3”);

if (substr($filename,-3) == “mp3”) { print”<enclosure url=\”$path_to_mp3\” length=\”$size\” type=\“audio/mpeg\” />”; }
</pre>

Not sure if this should be a plug-in or whether we should just alter the source files (which I’m generally not a fan of doing).

Offline

#5 2005-03-09 16:29:31

vmarks
New Member
Registered: 2005-03-08
Posts: 2

Re: Podcasting extension

http://www.shadydentist.com/wordpress/archives/2004/12/23/dircaster-v04-podcasting-php-script/

may be a workaround for the time that there is no textpattern solution.

Offline

#6 2005-05-14 07:18:39

ferenczi
Member
Registered: 2005-01-31
Posts: 67

Re: Podcasting extension

vmarks wrote:

I want this feature.

me, too. mt, which i have used but no longer use because i find txp more exciting, apparently has a podcast enclosure plugin: http://www.skypejournal.com/blog/archives/2004/12/skype_podcast_r.php

a plugin isn’t strictly necessary, of course; it’s easy enough to podcast without a plugin&#8212;but i’m building a site for a friend who will be producing the actual podcasts and i can see him getting flustered by having to use a different process to upload the files ;->

Offline

#7 2005-11-15 03:18:39

soulship
Member
From: Always Sunny Charleston
Registered: 2004-04-30
Posts: 669
Website

Re: Podcasting extension

Has anyone figured anything out on this front? I have a site I’m working up for someone and they need podcasts by feb 06. Short of a seperate install of loudblod and re-templating to match the current txp site what else is there?

Jamie

Offline

#8 2005-11-15 05:22:46

zem
Developer Emeritus
From: Melbourne, Australia
Registered: 2004-04-08
Posts: 2,579

Re: Podcasting extension

We could, say, y’know, fix the feeds, so we can start to look at podcasting.


Alex

Offline

#9 2005-11-15 16:56:03

soulship
Member
From: Always Sunny Charleston
Registered: 2004-04-30
Posts: 669
Website

Re: Podcasting extension

Sorry Alex I got here from a search and didn’t even see your new posts.

Jamie

Offline

#10 2005-11-16 02:15:05

squaredeye
Member
From: Greenville, SC
Registered: 2005-07-31
Posts: 1,495
Website

Re: Podcasting extension

Has anyone taken a look at loudblog ?

It might be a solution. I know you can manipulate the xhtml and css to fit to your site. Its all SSL. I think I may try it myself until some of this gets resolved.

?

Matthew


Offline

#11 2005-11-25 14:59:01

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

Re: Podcasting extension

I am not a programmer, but I really needed to get some kind of podcasting functionality. I found two options:

[1]
Run your feed through feedburner and activate Smart Cast
Smart Cast will pick up either the first anchor link in your feed, or the first anchor with a rel=“enclosure” attribute and turn it into an enclosure for you. To make this work you need to write an anchor containing the URL of the mp3 in either your body or your excerpt.
(see http://forums.feedburner.com/viewtopic.php?t=20 for more info)

[2]
While [1] is all good as a stop-gap, I’m sure it would confuse many users of the sites I want to use TXP for, because they would have to publish, then go find the URL then write themselves an anchor and resave. So I asked a friend to help.

He has never used TXP before and this is very dirty, but it seems to work so I thought I should present it incase anyone can improve on it. I’m sure that’s possible as he had a trouble specifying the URL to the mp3, so he hard-coded some of it (the custom field used and the path to the file).

In my setup I have called custom field 2 ‘mp3’ .
I’m using Mary’s upm_file_packets to make it easier to assign the right file to the mp3 field.

heres the hack as I understand it:

DISCLAIMER:
I can’t write php and cannot provide any support
I do not recommend this unless you know what you are doing!

In publish/rss.php find this line
<code>$a[‘posted’] = $uPosted;</code>

Immediately afterwards insert this:
<code> //get textpattern custom value $custom = $a[‘custom_2’]; //cross reference with file table $sql = “SELECT * from txp_file WHERE id = ‘”. $custom .”’”; $bQuery = mysql_query($sql); $bData = mysql_fetch_array($bQuery); //write file name further down if ( $bData[‘filename’] ) { $domain = ‘http://’; $domain .= $_SERVER[‘HTTP_HOST’]; //change this to the path to your ‘files’ folder $domain .= ‘/yoursite/textpattern/files/’; $custom = $domain . $bData[‘filename’]; $customTag = ‘<enclosure url=”’ . $custom . ‘” type=“audio/mpeg”/>’; } else { $customTag =’‘; }
</code>

then further down find the bit that starts: <code>$item = tag(strip_tags($Title),‘title’).n.</code>
this seems to be where the RSS is structured..

make it like this
<code> $item = tag(strip_tags($Title),‘title’).n. tag($Body,‘description’).n. //custom field $customTag.n. tag($permlink,‘link’);
</code>

So there you go… it will:
check and see if theres anything in custom field 2
if it has content, write the url of the linked file into an enclosure tag and put it into your feed.

hope that helps somehow :)

Offline

#12 2005-12-08 09:17:24

Tyson
New Member
From: Bellingham, WA
Registered: 2005-07-15
Posts: 3
Website

Re: Podcasting extension

Hey everyone, I’ve found a work around for adding enclosures in your rss feed and getting some basic podcasting support for TextPattern with no need for programming, plugins or anything. What you can do is create a new section just for your rss feed and in the page template type out your xml (you can reference the current rss output TextPattern publishes) but add the necessary txp tags for your content to spill out in their necessary places. For enclosure tags and the various itunes xml you can all specify in a form. Then you can just manually type out your rss linkage in the head of your pages to link to what ever you name the section. For instance: <link rel=“alternate” type=“application/rss+xml” title=“MY FEED” href=“http://yoursite.com/mynewfeed” /> A little unfortunate we have to go to this measure to get this kind of control over an rss feed but it seems to work out all right me. Hope this helps.

Last edited by Tyson (2005-12-08 09:19:43)

Offline

Board footer

Powered by FluxBB