$listHash['role_id'] = $_REQUEST['role_id']; } } } } if (!empty($_REQUEST['blog_id'])) { $listHash['blog_id'] = $_REQUEST['blog_id']; $gBlog = new BitBlog($_REQUEST['blog_id']); $gBlog->load(); if (isset($gBlog->mContentId)) { // adjust feed title to blog title $rss->title = $gBlog->getTitle() . " at " . $gBitSystem->getConfig('site_title'); if (isset($userName)) { $rss->title = $userName . "'s Posts in " . $rss->title; } $rss->description = $gBlog->parseData(); } } $feeds = $blogPost->getList($listHash); // set the rss link $rss->link = 'http://' . $_SERVER['HTTP_HOST'] . BLOGS_PKG_URL . (!empty($_REQUEST['blog_id']) ? "?blog_id=" . $_REQUEST['blog_id'] : ""); // get all the data ready for the feed creator foreach ($feeds['data'] as $feed) { $item = new FeedItem(); $item->title = BitBlogPost::getTitleFromHash($feed); $item->link = BIT_BASE_URI . BitBlogPost::getDisplayUrlFromHash(NULL, $feed); $item->description = $feed['parsed']; $item->date = (int) $feed['last_modified']; $item->source = 'http://' . $_SERVER['HTTP_HOST'] . BIT_ROOT_URL; $item->author = $gBitUser->getDisplayName(FALSE, $feed); $item->descriptionTruncSize = $gBitSystem->getConfig('rssfeed_truncate', 50000);