ZiNgA BuRgA
Fag
Posts: 3,357
Joined: Jan 2008
|
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
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 |
|