1. need to open and add the code to your lib-custom.php file
Text Formatted Code
// Custom RDF / RSS feed on static page
function static_rdf($blockid = false) {
$error = array();
if ($blockid != false && is_numeric($blockid) && $blockid != "") { global $_TABLES;
if (DB_getItem( $_TABLES['blocks'], 'type', "bid = '{$blockid}'" ) == 'portal') { $sql = "SELECT UNIX_TIMESTAMP(rdfupdated) as date, content, rdfurl FROM {$_TABLES['blocks']} WHERE bid = '" . $blockid . "'";
$result = DB_query( $sql );
$A = DB_fetchArray( $result );
if ( COM_rdfCheck($blockid, $A['rdfurl'], $A['date'] ))
{
$A['content'] = DB_getItem( $_TABLES['blocks'], 'content',
"bid = '{$blockid}'" );
} $return = $A['content'];
} else {
$error[] = 'Block is not of Portal Type';
}
} else {
$error[] = 'Is not a valid BlockID';
} if (count($error) > 0) {
$return = "Something is wrong with the blockid that you entered. Fix this. Otherwise there could be issues";
$return .= '<ul>';
for ( $x = 0; count($error) > $x; $x++ ) {
$return .= '<li>' . $error[$x] . '</li>';
}
$return .= "</ul>";
}
return $return;
}