ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Mint: Have a Mint

July 24, 2012 9:57am

Subscribe [2]
  • #1 / Jul 24, 2012 9:57am

    cjorgensen

    393 posts

    Anyone have any experience integrating Birdfeeder with an EE install?

    I got the basic plain mint install to work, added in some peppers for outbound links and locations, but I can’t figure out the RSS feed part:

    If I enable PHP in my templates and tell it to parse on output I get blank pages.

    Feeder shows as “Mint Bird Feeder is active” and my named feed shows up in the Mint control panel. I’m not sure if that from the times I hit it without it loading or not.

    http://haveamint.com/peppermill/pepper/11/bird_feeder/

    http://haveamint.com/forum/troubleshooting/1505/birdfeeder_in_expression_engine#post_7778

    Any tips would be welcome!

  • #2 / Jul 25, 2012 12:10pm

    Dan Decker

    7338 posts

    Hi Christopher,

    This generally falls under Development and Programming, but it sure would help to see your templates.

    If you are using the PHP from the example you linked too, that would only work in EE 1.x The global objects in EE 2 are called differently.

    I look forward to your reply!

    Cheers,

  • #3 / Jul 26, 2012 9:47am

    cjorgensen

    393 posts

    Yeah, I used the example there, and when that didn’t work I tried this:

    <?php header("Content-Type:text/xml"); echo '<'.'?xml version="1.0"encoding="UTF-8"?'.">\r"; ?>
    <?php global $Mint, $DB; define('BIRDFEED', 'Jackass Letters: The Podcast');
            include($_SERVER['DOCUMENT_ROOT'].'/feeder/index.php');
            $DB->select_db('my_db'); ?>
    <rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0">
    <channel>
    <title>Jackass Letters: The Podcast</title>
    <link>http://jackassletters.com/podcast</link>
    <language>en-us</language>
    <copyright>© 2008-{current_time format="%Y"} Christopher L. Jorgensen</copyright>

     

  • #4 / Jul 27, 2012 2:28pm

    Dan Decker

    7338 posts

    Hi Christopher,

    Can you tell me where you are making the global $DB call from?

    If you are trying to make the call with the ExpressionEngine API, the syntax is different.

    If that is an object in the Feeder file, it is outside the scope of support here.

    I want to help, I just need to fully understand what you’ve got going here.

    Thanks!

  • #5 / Jul 27, 2012 3:06pm

    cjorgensen

    393 posts

    That points to my EE DB I believe. I used a separate DB for the Mint stats.

    The directions for WP or MT integration are fairly straight forward, but EE is more or less non-existent. I could send you the “read me” if you think that would be helpful.

    I get where you say it may be outside of the scope of EE support. I can take it back to them, but I am guessing they will say EE support is outside their scope.

    Integration with regular templates was super easy. The feeds not so much, but that’s because I can’t translate some of the directions to specific EE implementation.

  • #6 / Jul 30, 2012 2:39pm

    Dan Decker

    7338 posts

    Hi

    It should be easy enough to get it working in an RSS template too.

    Knowing that you want to access EE’s database, I can point you to the right documentation.

    I don’t want you to take the scope statement to mean that I won’t help. I’m totally interested in getting you set. I’m just limited in the solutions I have available, ya know?

    Can you send me the readme in a link? and post the whole RSS template to here or Pastie.

    Thanks!

  • #7 / Jul 30, 2012 3:10pm

    cjorgensen

    393 posts

    I wasn’t taking what you said as you saying you wouldn’t help. I was trying to say I didn’t know if this was an EE or Mint issue.

    Here’s the template:

    <?php global $Mint, $DB; define('BIRDFEED', 'Jackass Letters: The Podcast');
            include($_SERVER['DOCUMENT_ROOT'].'/feeder/index.php');
            $DB->select_db('cjorgens_eetwo8302010'); ?>
            <?php header("Content-Type:text/xml"); echo '<'.'?xml version="1.0"
    encoding="UTF-8"?'.">\r"; ?>
    <rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0">
    <channel>
    <title>Jackass Letters: The Podcast</title>
    <link>http://jackassletters.com/podcast</link>
    <language>en-us</language>
    <copyright>© 2008-{current_time format="%Y"} Christopher L. Jorgensen</copyright> 
    
    <itunes:subtitle>A Christopher L. Jorgensen podcast showcasing the letters he writes to luminaries and companies sometimes with responses.</itunes:subtitle>
    
    <itunes:author>Christopher L. Jorgensen</itunes:author>
    <itunes:summary>Jackass Letters is dedicated to examining correspondence with real people and companies. It is equal parts spoof, satire, parody and criticism. New letters are generally published once a week on site. The podcast is updated Tuesday, Thursday and Saturday.</itunes:summary>
    
    <description>Jackass Letters is dedicated to examining correspondence with real people and companies. It is equal parts spoof, satire, parody and criticism. New letters are generally published once a week on site. The podcast is updated Tuesday, Thursday and Saturday.</description>
    
    <itunes:owner>
    <itunes:name>Christopher L. Jorgensen</itunes:name>
    <itunes:email>[email protected]</itunes:email>
    </itunes:owner>
    <itunes:explicit>No</itunes:explicit>
    <itunes:image href="http://jackassletters.com/podcasts/images/jackasspodcast.jpg" >
    <itunes:category text="Comedy">
    
    {exp:channel:entries channel="podcasts" limit="100"}
    <item>
    <title>{title}</title>
    <itunes:author>Christopher L. Jorgensen</itunes:author>
    <itunes:subtitle>{subtitle}</itunes:subtitle>
    <itunes:summary>{summary}</itunes:summary>
    <itunes:image href="http://jackassletters.com/podcasts/images/jackasspodcastsmall.jpg" >
    <enclosure url="http://jackassletters.com/podcasts/audio/{filename}.mp3" length="{length}" type="audio/mpeg" >
    <guid>http://jackassletters.com/{filed}/{filename}</guid>
    {entry_date format='%r'}</pubDate>
    <itunes:duration>{duration}</itunes:duration>
    <itunes:keywords>{podcast_keywords}</itunes:keywords>
    <itunes:explicit>{explicit}</itunes:explicit>
    </item>
    {/exp:channel:entries}
    
    </channel>
    
    </rss>

    It produces a blank page. I’ll probably try the directions on a standard RSS feed and see what happens there.

    The docs for Mint aren’t online that I can find. You get them with the download of the software. I don’t feel comfortable posting them any where if the developer hasn’t.

  • #8 / Jul 31, 2012 11:23am

    Shane Eckert

    7174 posts

    Hey Christopher L. Jorgensen,

    Please let us know how the RSS feed directions go.

    This is a difficult one to grasp as Dan has mentioned, but if you have any specific questions please let me know.

    Cheers,

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases