MyBB Hacks

Full Version: RSS syndication question
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello everyone! Biggrin

I'd like RSS to show  thread, author, date but I don't want it to show the post (only the title of it)

Could you tell me kindly what lines I should remove?

Thank you Cxp
Find in syndication.php:

PHP Code:
		$parser_options = array(
			"allow_html" => $forumcache[$post['fid']]['allowhtml'],
			"allow_mycode" => $forumcache[$post['fid']]['allowmycode'],
			"allow_smilies" => $forumcache[$post['fid']]['allowsmilies'],
			"allow_imgcode" => $forumcache[$post['fid']]['allowimgcode'],
			"allow_videocode" => $forumcache[$post['fid']]['allowvideocode'],
			"filter_badwords" => 1
		);
		
		$parsed_message = $parser->parse_message($post['message'], $parser_options);
		
		$query2 = $db->simple_select("attachments", "*", "pid=".$post['pid']);
		while($attachment = $db->fetch_array($query2))
		{
			$ext = get_extension($attachment['filename']);
			$attachment['filename'] = htmlspecialchars_uni($attachment['filename']);
			$attachment['filesize'] = get_friendly_size($attachment['filesize']);
			$attachment['icon'] = get_attachment_icon($ext);
			eval("\$attbit = \"".$templates->get("postbit_attachments_attachment")."\";");
			if(stripos($parsed_message, "[attachment=".$attachment['aid']."]") !== false)
			{
				$parsed_message = preg_replace("#\[attachment=".$attachment['aid']."]#si", $attbit, $parsed_message);
			}
			else
			{
				$parsed_message .= "<br />".$attbit;
			}
		}
		
		$items[$post['tid']]['description'] = $parsed_message;

replace with

PHP Code:
		$items[$post['tid']]['description'] = '';




Also, since when did MyBB have an in-loop query on a front facing page like this?

You are the best! THANK YOU MUCH Yipi
Reference URL's