本文整理汇总了PHP中forumTextParser::convert_to_rss方法的典型用法代码示例。如果您正苦于以下问题:PHP forumTextParser::convert_to_rss方法的具体用法?PHP forumTextParser::convert_to_rss怎么用?PHP forumTextParser::convert_to_rss使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类forumTextParser
的用法示例。
在下文中一共展示了forumTextParser::convert_to_rss方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
$res["FILES"] = $res["~ATTACH_FILE"] = $res["ATTACH_FILE"] = array();
/************** Message info/***************************************/
/************** Author info ****************************************/
// Avatar
if (strLen($res["AVATAR"]) > 0) {
$res["~AVATAR"] = array("ID" => $res["AVATAR"]);
$res["~AVATAR"]["FILE"] = CFile::GetFileArray($res["~AVATAR"]["ID"]);
$res["AVATAR"] = CFile::ShowImage($res["~AVATAR"]["FILE"], COption::GetOptionString("forum", "avatar_max_width", 90), COption::GetOptionString("forum", "avatar_max_height", 90), "border=\"0\"", "", true);
}
// data
$res["DATE_REG"] = CForumFormat::DateFormat($arParams["DATE_FORMAT"], MakeTimeStamp($res["DATE_REG"], CSite::GetDateFormat()));
// Another data
$res["SIGNATURE"] = "";
if ($arResult["FORUMS"][$res["FORUM_ID"]]["ALLOW_SIGNATURE"] == "Y" && strlen($res["~SIGNATURE"]) > 0) {
$arAllow["SMILES"] = "N";
$res["SIGNATURE"] = $parser->convert_to_rss($res["~SIGNATURE"], $arAllow);
}
/************** Author info/****************************************/
$res["~AUTHOR_LINK"] = CComponentEngine::MakePathFromTemplate($arParams["~URL_TEMPLATES_PROFILE_VIEW"], array("UID" => intVal($res["AUTHOR_ID"])));
$res["AUTHOR_LINK"] = CComponentEngine::MakePathFromTemplate($arParams["URL_TEMPLATES_PROFILE_VIEW"], array("UID" => intVal($res["AUTHOR_ID"])));
$res["~POST_LINK"] = CComponentEngine::MakePathFromTemplate($arParams["~URL_TEMPLATES_MESSAGE"], array("FID" => $res["FORUM_ID"], "TID" => $res["TOPIC_ID"], "TITLE_SEO" => $res["TITLE_SEO"], "MID" => $res["ID"]));
$res["POST_LINK"] = CComponentEngine::MakePathFromTemplate($arParams["URL_TEMPLATES_MESSAGE"], array("FID" => $res["FORUM_ID"], "TID" => $res["TOPIC_ID"], "TITLE_SEO" => $res["TITLE_SEO"], "MID" => $res["ID"]));
$res["~AUTHOR_URL"] = "http://" . $arResult["SERVER_NAME"] . $res["~AUTHOR_LINK"];
$res["AUTHOR_URL"] = "http://" . htmlspecialcharsEx($arResult["SERVER_NAME"]) . $res["AUTHOR_LINK"];
$res["~URL"] = "http://" . $arResult["SERVER_NAME"] . $res["~POST_LINK"];
$res["URL"] = "http://" . htmlspecialcharsEx($arResult["SERVER_NAME"]) . $res["POST_LINK"];
$res["~URL_RSS"] = "http://" . $arResult["SERVER_NAME"] . CComponentEngine::MakePathFromTemplate($arParams["~URL_TEMPLATES_RSS"], array("TYPE" => strToLower($arParams["TYPE"]), "MODE" => "topic", "IID" => $res["TOPIC_ID"]));
$res["URL_RSS"] = "http://" . htmlspecialcharsEx($arResult["SERVER_NAME"]) . CComponentEngine::MakePathFromTemplate($arParams["URL_TEMPLATES_RSS"], array("TYPE" => strToLower($arParams["TYPE"]), "MODE" => "topic", "IID" => $res["TOPIC_ID"]));
$res["UUID"] = __create_uuid($res["~URL"]);
// TOPIC DATA
$arDate = ParseDateTime($res["START_DATE"], false);