Login to download the latest version of Mint and your favorite Pepper, purchase additional licenses, or post in the Forum. Don't have an account? Create one!

In Partnership with Media Temple

Mint Forum

birdfeeder in expression engine

gleek
Minted
Posted on Apr 19, '08 at 10:01 pm

does anyone have any tips (or step-by-step instructions) for installing birdfeeder code into the RSS and ATOM feeds in expression engine? i’m not having any luck getting it to work.

here are a few questions:

1) EE serves up the feeds as PHP, right? so i don’t have to jigger with the htaccess file or put the XML declaration into a PHP header and echo the head tag.

2) the feed templates in EE should be set to serve PHP on output, right?

all i’m getting are blank pages when trying to view my feeds.

currently i have this at the top of my ATOM feed:

<?php global $Mint, $DB; define('BIRDFEED', 'News Atom Feed'); include($_SERVER['DOCUMENT_ROOT'].'/feeder/index.php'); $DB->select_db(‘name_of_my_mint_DB’); // WordPress users uncomment the following line // $wpdb->select(DB_NAME); ?>

gleek
Minted
Posted on Apr 19, '08 at 11:02 pm

ok, i ran across this posting in the EE forum which really helped. http://expressionengine.com/forums/viewthread/43074

to answer my own questions (and for anyone else who had the same issues)

1) you do not have to do anything to the htaccess files. EE serves up the feeds as PHP.

2) feeds should be set up in the preferences as PHP on output.

also, you should use this code at the top of your template instead of what i had above:

<?php global $Mint, $DB; define('BIRDFEED', 'Name of Feed'); include($_SERVER['DOCUMENT_ROOT'].'/feeder/index.php'); $DB->select_db('name_of_your_expression_engine_database'); ?>

then also, if you are getting a blank page, make sure that all of your PHP segments are closed (i had an extra one open!) and that bird feeder is actually installed in the mint preferences.

You must be logged in to reply. Login above or create an account