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


PHP CKunenaLink::GetLatestPostAutoRedirectHTML方法代码示例

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


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