User Tools

Site Tools


wiki:blogfeed

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

wiki:blogfeed [2008/10/18 15:56] – external edit 127.0.0.1wiki:blogfeed [2008/10/18 22:53] (current) siretart
Line 1: Line 1:
 +Patch for fixing the feeds:
  
 +<note> this is a test </note>
 +
 +finally, I managed to repair the feed plugin. Actually, ''[NiKO]'' in the channel ''#dokuwiki'' in [[http://freenode.net|Freenode]] pointed me to the right patch:
 +
 +<code>
 +=== modified file 'lib/plugins/blog/inc/feed.php'
 +--- lib/plugins/blog/inc/feed.php
 ++++ lib/plugins/blog/inc/feed.php
 +@@ -160,6 +160,7 @@
 +     '!<h1>(.*?)</h1>!s'                       => '', // remove title
 +     '#<!-- SECTION \[(\d*-\d*)\] -->#e'       => '', // remove section edit buttons
 +     '!<div id="blog__tags">.*?(</div>)!s'     => '', // remove category tags
 ++    '!<div class="blog_tags">.*?(</div>)!s'     => '', // remove category tags
 +  // '!</(p|h\d)>!s'                           => "\n\n",  // end of paragraphs
 +  // '!<li.*>!s'                               => '* ', // list items
 +  // '!<(br.*|/li|/ul|/ol|/tr|/th|/table)>!s'  => "\n" // line breaks
 +</code>
 +
 +There seems to be a bug in the template, which outputs some other ''<div>'' block. hmrpf