My rss feeds wont show images…I trying to use jquery plugins , but nothing wont show my website images…
this is my web : www.nerashti.com , and there is my rss.php - i think that this is simple , but i have no idea with coding…
RSS.PHP
[php]<?php
rss.php - rss feed of recent posts
require ‘config.php’;
define(‘IS_ADMIN’, false);
define(‘PRETTY_URLS’, false);
/* LOGIC ************************************************************/
// Connect to database
$db = new Db(Base::get(‘db_default’));
Base::set(‘db’, $db);
// Get posts model
$postsM = Base::getModel(‘posts’);
// Get an array of 10 recent posts
$posts = $postsM->getPosts(‘recent’, 10, ‘resource’);
/* PRESENTATION ****************************************************/
echo “<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<rss version=“2.0”>\n\n”;
echo ‘’.get_option(‘siteName’)."\n";
echo ‘’.get_option(‘image’)."\n";
echo ‘’.Base::get(‘base_url’)."\n";
echo ‘’.get_option(‘meta_d’)."\n";
//echo “”.date(“D, d M Y H:i:s T”, time())."\nen-us\n";
if ($posts)
{
$link = ‘’;
while ($post = $db->fetchAssoc($posts)) {
$link = href(‘posts/view/’.$post[‘url_tag’].’/’.$post[‘postID’]);
echo “\n”.$post[‘title’]."\n";
echo ‘’.$post[‘image’]."\n";
echo '<link>'.$link."</link>\n";
echo '<guid>'.$link."</guid>\n";
echo '<pubDate>'.date("D, d M Y H:i:s O", $post['date_posted'])."</pubDate>\n";
echo '<description>'.$post['description']."</description>\n</item>\n";
}
}
echo “\n\n”;
?>[/php]