Yes, the temporary solution worked. Of course I will wait till your official release of the new version.
Would you mind to take a look of my feed validation? It is workable but not perfectly valid. I admire your skill to think and fix at the same time writing once again. Cheers, linly On 4月1日, 下午6時04分, The Editor <[email protected]> wrote: > For now try renaming code.rss.skin to code.rss.skin.paper (or > whatever) until I figure a better way to handle this. But this is a > bad, temporary solution. > > Probably, we need to insert this first line in engine.php, around line 1396 > > elseif ($pageArray[0] == 'rss') $skin = 'code.rss.skin'; > else { > > If we do it this way of course, we could change the page to > code.skin.rss, which would make it easier to edit the page and do > viewing of it with action=view or whatever. For instance, change the > line above to: > > elseif ($pageArray[0] == 'rss' && ! isset($_GET['action'])) $skin = > 'code.rss.skin'; > > Then in rss.php make these two changes: > > Change line 20 > if (! isset($_GET['action']))$BOLTserverHeaders[] = "Content-Type: > application/xml; charset=utf-8"; > > Insert before line 55: > if (isset($_GET['action'])) return str_replace(Array('<','>',"\n"), > Array('<','>','<br/>'), BOLTurl2utf($out)); > return BOLTescape("<channel>\n$out\n</channel>"); > > Very cool. Now you will see your normal skin when editing (or any > action) on the rss feed. If you do action=view you can see the actual > xml feed in the web page. I think I'm going to definitely change the > page you store the rss skin to code.skin.rss so on the default skin it > will display this way as well. So rename your code.rss.skin page to > code.skin.rss and change the line above to > > elseif ($pageArray[0] == 'rss' && ! isset($_GET['action'])) $skin = > 'code.skin.rss'; > > Oh, I notice the item titles are all % encoded. Fixed that (hope it > doesn't break validation). And I added a utf declaration in the xml > skin, like this: > > <?xml version="1.0" encoding="utf-8"?> > > Ok, just updated the docs and the rss.plug. YOu still need to make > this change in engine.php ~ 1396 > > elseif ($pageArray[0] == 'rss' && ! isset($_GET['action'])) $skin = > 'code.skin.rss'; > > will be in next release (today). Sorry for this rambling. Email, just > thinking, writing, and fixing all at the same time. As usual. > > Cheers, > Dan > > P.S. I also added a useful action=rsslist feature to the plugin, which > allows you to list the pages in a feed (even templatable). Very useful > for testing purposes. > > 2009/3/31 Linly <[email protected]>: > > > > > Hi Dan, this worked in default skin only. If I use another skin, the > > rss would read all of the skin code into the feed. > > > Cheers, linly > > > On 3月31日, 下午11時28分, The Editor <[email protected]> wrote: > >> Alright, I think it's about ready. Here's the BoltWire blog feed > >> validation: > > >>http://validator.w3.org/feed/check.cgi?url=http%3A%2F%2Fwww.boltwire.... > > >> This is pretty cool. Just uploaded the latest rss script, and rewrote > >> the solutions page docs. > > >> Cheers, > >> Dan > > >> P.S. I suppose we could easily set up feeds for the docs, using > >> perhaps the changelog data field, or a feed for new solutions. Or a > >> feed for BoltWire upgrades, etc. Kind of cool... --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "BoltWire" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/boltwire?hl=en -~----------~----~----~----~------~----~------~--~---
