[pLog-svn] r2341 - in plugins/trunk: . moblog/class/moblog

Mark Wu markplace at gmail.com
Sat Jul 16 19:35:01 GMT 2005


Hi nick:

Podcast (enclosure) is done by getArticleResources() .... And it is through
the id="res_xxx" attribute in the <a...></a> html tag ...to get the resource
id. 

If you want to check what kind of file will used in podcast, you can see
rss20.templatte, only $resource->isSound() and $resource->isVideo() file
will show in rss feed.

So, I think the file type is no relation to podcast.

Mark



> -----Original Message-----
> From: plog-svn-bounces at devel.plogworld.net 
> [mailto:plog-svn-bounces at devel.plogworld.net] On Behalf Of 
> nick nizhenyuan
> Sent: Saturday, July 16, 2005 11:08 PM
> To: plog-svn at devel.plogworld.net
> Subject: Re: [pLog-svn] r2341 - in plugins/trunk: . 
> moblog/class/moblog
> 
> Hi, mark
> 
> I found no type field such as type="audio/mpeg", do you think 
> this is nessesay for podcast?
> 
> 
> On 7/16/05, mark at devel.plogworld.net <mark at devel.plogworld.net> wrote:
> > Author: mark
> > Date: 2005-07-16 14:36:02 +0000 (Sat, 16 Jul 2005) New 
> Revision: 2341
> > 
> > Modified:
> >   plugins/trunk/moblog.php
> >   plugins/trunk/moblog/class/moblog/moblogrequest.class.php
> > Log:
> > Fixed the issue: http://bugs.plogworld.net/view.php?id=646
> > 
> > Modified: plugins/trunk/moblog/class/moblog/moblogrequest.class.php
> > ===================================================================
> > --- 
> plugins/trunk/moblog/class/moblog/moblogrequest.class.php   
> 2005-07-15 19:58:20 UTC (rev 2340)
> > +++ 
> plugins/trunk/moblog/class/moblog/moblogrequest.class.php   
> 2005-07-16 14:36:02 UTC (rev 2341)
> > @@ -170,7 +170,7 @@
> >                     // whatever comes as a part, we will 
> take it and treat it as if it was
> >                     // a normal resource as long as it's 
> not an application/smil thingie...
> > 
> > -                    if( strtolower($part->ctype_secondary) 
> != 'smil' && MOBLOG_IGNORE_SMIL_ATTACHMENTS ) {
> > +                    if( strtolower($part->ctype_secondary) 
> != 'html' 
> > + && strtolower($part->ctype_secondary) != 'smil' && 
> > + MOBLOG_IGNORE_SMIL_ATTACHMENTS ) {
> >                         // GalleryResources::addResource 
> only deals with uploaded files, so we'll
> >                         // have to pretend that this is one of them!
> >                         $config =& Config::getConfig();
> > 
> > Modified: plugins/trunk/moblog.php
> > ===================================================================
> > --- plugins/trunk/moblog.php    2005-07-15 19:58:20 UTC (rev 2340)
> > +++ plugins/trunk/moblog.php    2005-07-16 14:36:02 UTC (rev 2341)
> > @@ -226,7 +226,7 @@
> >     $curItem = 0;
> >     foreach( $resourceIds as $resId ) {
> >         $resource = $res->getResource( $resId );
> > -        $markup = "<a href=\"".$rg->resourceLink( 
> $resource )."\">";
> > +        $markup = "<a id=\"res_".$resId."\" 
> > + href=\"".$rg->resourceLink( $resource )."\">";
> >         if( $resource->isImage()) {
> >             $previewType = $blogSettings->getValue( 
> "plugin_moblog_resource_preview_type" );
> >             if( $previewType == MOBLOG_EMBED_MEDIUM_PREVIEW )
> > 
> > _______________________________________________
> > pLog-svn mailing list
> > pLog-svn at devel.plogworld.net
> > http://devel.plogworld.net/mailman/listinfo/plog-svn
> >
> _______________________________________________
> pLog-svn mailing list
> pLog-svn at devel.plogworld.net
> http://devel.plogworld.net/mailman/listinfo/plog-svn




More information about the pLog-svn mailing list