当前位置: 首页>>代码示例>>PHP>>正文


PHP forumTextParser::convert_to_rss方法代码示例

本文整理汇总了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);
开发者ID:mrdeadmouse,项目名称:u136006,代码行数:31,代码来源:component.php


注:本文中的forumTextParser::convert_to_rss方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。