Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Integrating Aggrss into bbPress theme?

I’m not sure exactly what your asking. I copied and pasted the code in my WordPress template into my bbPress template. Works fine in WordPress, gives me the above error in bbPress.

The code I used was:

<?php
if ($rs = aggrss('http://onctalk.com/wp-commentsrss2-custom.php'))
{
// dump the structure
//echo "<pre>";
//print_r($rs);
//echo "</pre>";
echo "<a href='" . $rs[link] . "' style='color: #000000; font-weight: bold;' >" . $rs[title] . "</a>";
echo $rs[description] . "<br />";

foreach ($rs['items'] as $item)
{
echo "<p><a href='" .$item['link']. "'>" . $item['title'] . "</a><br/>" .html_entity_decode($item['description']). "</p>";
}
if ($rs['items_count'] <= 0) { echo "Sorry, no items found in the RSS file <img src='http://www.soderlind.no/wp-includes/images/smilies/icon_sad.gif' alt=':-(' class='wp-smiley' /> "; }
}
else
{
echo "<!-- It's not possible to reach RSS file -->";
}
?>

Skip to toolbar