Okay, so I just did some testing.
It appears that there's currently no way to add output before the XML,
with the reason being that the output buffer is cleared right before
the xml is output.
We should probably stick a hook in there.
On May 2, 2009, at 4:59 PM, davidyeiser wrote:
>
> So it would look like this then?
>
> <?php
> class MintBirdFeeder extends Plugin
> {
> function info()
> {
> return array(
> 'name' => 'Mint Bird Feeder',
> 'version' => '0.1',
> 'url' => 'http://designintellection.com/',
> 'author' => 'David Yeiser',
> 'authorurl' => 'http://
> designintellection.com/',
> 'license' => 'Apache License 2.0',
> 'description' => 'This plugin places the Bird
> Feeder Pepper call into the Atom feed.',
> );
> }
> public function action_init_atom()
> {
> define('BIRDFEED', 'Articles');
> include($_SERVER['DOCUMENT_ROOT'].'/feeder/
> index.php');
> }
> }
>
> ?>
>
> I have a feeling that's not working.
>
> Here's what I'm trying to do...
>
> Let's say my feed source looks like this:
>
> <?xml version="1.0"?>
> <feed xmlns="http://www.w3.org/2005/Atom">
> <generator uri="http://www.habariproject.org/" version="0.6">Habari</
> generator>
> <id>tag:designintellection.com,2009-05-02:atom/
> c0775453c8042dee03e4920d3024a1fce451f931</id>
> <title>Design Intellection</title>
> <updated>2009-05-02T20:44:05+00:00</updated>
> .....
> .....
>
> I want to be able to execute those two lines of PHP code like so:
>
> EXECUTE THESE:
> define('BIRDFEED', 'Articles');
> include($_SERVER['DOCUMENT_ROOT'].'/feeder/index.php')
>
> <?xml version="1.0"?>
> <feed xmlns="http://www.w3.org/2005/Atom">
> <generator uri="http://www.habariproject.org/" version="0.6">Habari</
> generator>
> <id>tag:designintellection.com,2009-05-02:atom/
> c0775453c8042dee03e4920d3024a1fce451f931</id>
> <title>Design Intellection</title>
> <updated>2009-05-02T20:44:05+00:00</updated>
> .....
> .....
>
>
> Is that even possible?
> >
--~--~---------~--~----~------------~-------~--~----~
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/habari-users
-~----------~----~----~----~------~----~------~--~---