本文整理汇总了PHP中CKunenaLink::GetLatestPostAutoRedirectHTML方法的典型用法代码示例。如果您正苦于以下问题:PHP CKunenaLink::GetLatestPostAutoRedirectHTML方法的具体用法?PHP CKunenaLink::GetLatestPostAutoRedirectHTML怎么用?PHP CKunenaLink::GetLatestPostAutoRedirectHTML使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CKunenaLink
的用法示例。
在下文中一共展示了CKunenaLink::GetLatestPostAutoRedirectHTML方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: explode
//end parenting foreach loop
//inherit hits from old topic
$kunena_db->setQuery("SELECT hits FROM #__fb_messages WHERE id='{$id}'");
$hits = (int) $kunena_db->loadResult();
$kunena_db->setQuery("UPDATE #__fb_messages set hits={$hits} WHERE id={$new_topic}");
$kunena_db->query();
//set the highest sorting for old topic
$kunena_db->setQuery("UPDATE #__fb_messages set ordering='2' WHERE id={$id}");
$kunena_db->query();
//copy over sticky bit to new topic
$kunena_db->setQuery("UPDATE #__fb_messages set ordering='{$sticky_bit}' WHERE id={$new_topic} AND parent=0");
$kunena_db->query();
//split succeeded
CKunenaTools::reCountBoards();
echo '<br /><br /><div align="center">' . _POST_SUCCESS_SPLIT . "</div><br />";
echo CKunenaLink::GetLatestPostAutoRedirectHTML($fbConfig, $new_topic, $fbConfig->messages_per_page, $catid);
} else {
if ($do == "subscribe") {
$catid = (int) $catid;
$id = (int) $id;
$success_msg = _POST_NO_SUBSCRIBED_TOPIC;
$kunena_db->setQuery("SELECT thread, catid from #__fb_messages WHERE id='{$id}'");
if ($id && $kunena_my->id && $kunena_db->query()) {
$row = $kunena_db->loadObject();
//check for permission
if (!$is_Moderator) {
if ($fbSession->allowed != "na") {
$allow_forum = explode(',', $fbSession->allowed);
} else {
$allow_forum = array();
}