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.

Magpie Plugin with PHP Dates "strtotime()" Error

October 25, 2009 9:44pm

Subscribe [4]
  • #16 / Nov 02, 2009 2:07am

    John Henry Donovan

    12339 posts

    John,

    Take a look here

    http://5pieces.com/sandbox/magpie-test/

    The only way that dates would not show on this page was if I had PHP turned off for that particular template

    Can you do the same as me and add this to 1 template only, switch on PHP and set to output. Just add what I have and nothing else and give us the link please

    <h1>Magpie RSS Parser  (v.1.4)</h1>
    
     <h2><a href="http://peltiertech.com">http://peltiertech.com</a></h2>
    <p>{exp:magpie url="http://peltiertech.com/WordPress/label-totals-on-stacked-charts/feed/" limit="5" refresh="720"}<br />
    <table class="siteindex" cellspacing="0"><br />
    <tr><br />
    <td class="hed">Posted</td><br />
    <td class="hed">Recent Entries</td><br />
    {magpie:items}<br />
    </tr><br />
    <td width="15%" valign="top"><?php echo date("Y-m-d", strtotime('{pubdate}')); ?></td><br />
    <td width="85%" valign="top"><a href="http://{magpie:link}">{magpie:title}</a></td><br />
    </tr><br />
    {/magpie:items}<br />
    </table><br />
    {/exp:magpie} <br />
    <hr></p><h2><a href="http://www.contextures.com">http://www.contextures.com</a></h2>
    <p>{exp:magpie url="http://www.contextures.com/feed.xml" limit="5" refresh="720"}<br />
    <table class="siteindex" cellspacing="0"><br />
    <tr><br />
    <td class="hed">Posted</td><br />
    <td class="hed">Recent Entries</td><br />
    {magpie:items}<br />
    </tr><br />
    <td width="15%" valign="top"><?php echo date("Y-m-d", strtotime('{pubdate}')); ?> </td><br />
    <td width="85%" valign="top"><a href="http://{magpie:link}">{magpie:title}</a></td><br />
    </tr><br />
    {/magpie:items}<br />
    </table><br />
    {/exp:magpie}<br />
    <hr></p><h2>cellmatrix</h2>
    <p>{exp:magpie url="http://feeds.feedburner.com/cellmatrix/excelblog/" limit="5" refresh="720"}<br />
    <table class="siteindex" cellspacing="0"><br />
    <tr><br />
    <td class="hed">Posted</td><br />
    <td class="hed">Recent Entries</td><br />
    {magpie:items}<br />
    </tr><br />
    <td width="15%" valign="top"><?php echo date("Y-m-d", strtotime('{magpie:date}')); ?></td><br />
    <td width="85%" valign="top"><a href="http://{magpie:link}">{magpie:title}</a></td><br />
    </tr><br />
    {/magpie:items}<br />
    </table><br />
    {/exp:magpie}<br />
    <hr></p><h2><a href="http://expressionengine.com/">http://expressionengine.com/</a></h2>
    <p>{exp:magpie url="http://expressionengine.com/feeds/rss/full/" limit="5" refresh="720"}<br />
    <table class="siteindex" cellspacing="0"><br />
    <tr><br />
    <td class="hed">Posted</td><br />
    <td class="hed">Recent Entries</td><br />
    {magpie:items}<br />
    </tr><br />
    <td width="15%" valign="top"><?php echo date("Y-m-d", strtotime('{pubdate}')); ?> </td><br />
    <td width="85%" valign="top"><a href="http://{magpie:link}">{magpie:title}</a></td><br />
    </tr><br />
    {/magpie:items}<br />
    </table><br />
    {/exp:magpie}

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

ExpressionEngine News!

#eecms, #events, #releases