快上网专注成都网站设计 成都网站制作 成都网站建设
成都网站建设公司服务热线:028-86922220

网站建设知识

十年网站开发经验 + 多家企业客户 + 靠谱的建站团队

量身定制 + 运营维护+专业推广+无忧售后,网站问题一站解决

phpcms推荐位无法排序怎么办

phpcms无法排序的解决办法:首先找到并打开“content/content.php”文件;然后找到文中第454行的内容;接着更改推荐排序;最后保存修改过后的文件即可。

长子网站制作公司哪家好,找创新互联建站!从网页设计、网站建设、微信开发、APP开发、成都响应式网站建设公司等网站项目制作,到程序开发,运营维护。创新互联建站2013年开创至今到现在10年的时间,我们拥有了丰富的建站经验和运维经验,来保证我们的工作的顺利进行。专注于网站建设就选创新互联建站

解决phpcms V9 推荐位无法排序

/phpcms/modules/content/content.php  454行
/**
  * 排序
  */
public function listorder() {
    if(isset($_GET['dosubmit'])) {
       $catid = intval($_GET['catid']);
       if(!$catid) showmessage(L('missing_part_parameters'));
       $modelid = $this->categorys[$catid]['modelid'];
       $this->db->set_model($modelid);
       foreach($_POST['listorders'] as $id => $listorder) {
          $this->db->update(array('listorder'=>$listorder),array('id'=>$id));
        //更改推荐排序开始--新添加的
        $r = $this->db->get_one(array('id'=>$id));
        if($r['posids']){
          $this->db_config = pc_base::load_config('database');
          $tablepre = $this->db_config['default']['tablepre'];
          $this->db->table_name = $tablepre."position_data";
          $this->db->update(array('listorder'=>$listorder),array('id'=>$id,modelid=>$modelid));
        } 
        //更改推荐排序结束--
       }
       showmessage(L('operation_success'));
    } else {
       showmessage(L('operation_failure'));
    }
}

推荐:《phpcms教程》
标题名称:phpcms推荐位无法排序怎么办
标题来源:http://6mz.cn/article/chcjpg.html

其他资讯