本文整理匯總了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();
}