本文整理汇总了PHP中CKunenaLink::GetLatestCategoryAutoRedirectHTML方法的典型用法代码示例。如果您正苦于以下问题:PHP CKunenaLink::GetLatestCategoryAutoRedirectHTML方法的具体用法?PHP CKunenaLink::GetLatestCategoryAutoRedirectHTML怎么用?PHP CKunenaLink::GetLatestCategoryAutoRedirectHTML使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CKunenaLink
的用法示例。
在下文中一共展示了CKunenaLink::GetLatestCategoryAutoRedirectHTML方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: str_replace
$tmpstr = str_replace('%id%', $id, $tmpstr);
echo $tmpstr;
break;
case -4:
echo _POST_ERROR_TOPIC . '<br />';
echo _KUNENA_POST_DEL_ERR_USR;
break;
case -5:
echo _POST_ERROR_TOPIC . '<br />';
echo _KUNENA_POST_DEL_ERR_FILE;
break;
default:
echo '<br /><br /><div align="center">' . _POST_SUCCESS_DELETE . "</div><br />";
break;
}
echo CKunenaLink::GetLatestCategoryAutoRedirectHTML($catid);
} else {
if ($do == "move") {
if (!$is_Moderator) {
$app->redirect(htmlspecialchars_decode(JRoute::_(KUNENA_LIVEURLREL)), _POST_NOT_MODERATOR);
}
$catid = (int) $catid;
$id = (int) $id;
//get list of available forums
//$kunena_db->setQuery("SELECT id, name FROM #__fb_categories WHERE parent != '0'");
$kunena_db->setQuery("SELECT a.*, b.id AS catid, b.name AS category FROM #__fb_categories AS a LEFT JOIN #__fb_categories AS b ON b.id = a.parent WHERE a.parent!='0' AND a.id IN ({$fbSession->allowed}) ORDER BY parent, ordering");
$catlist = $kunena_db->loadObjectList();
check_dberror("Unable to load categories.");
// get topic subject:
$kunena_db->setQuery("SELECT subject, id FROM #__fb_messages WHERE id='{$id}'");
$topicSubject = $kunena_db->loadResult();