RSS syndication question
trialnick Offline
Junior Member
**
Posts: 13
Joined: Oct 2010
Post: #1
RSS syndication question
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
(This post was last modified: 08-06-2011 08:10 AM by trialnick.)
08-06-2011 06:39 AM
Find all posts by this user Quote this message in a reply
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #2
RE: RSS syndication question
Find in syndication.php:

PHP Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
		$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?


My Blog
08-06-2011 09:24 AM
Find all posts by this user Quote this message in a reply
trialnick Offline
Junior Member
**
Posts: 13
Joined: Oct 2010
Post: #3
RE: RSS syndication question
You are the best! THANK YOU MUCH Yipi
08-06-2011 09:37 AM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

 Standard Tools
Forum Jump: