如何解决phpcms推荐位无法排序的问题

今天就跟大家聊聊有关如何解决phpcms推荐位无法排序的问题,可能很多人都不太了解,为了让大家更加了解,小编给大家总结了以下内容,希望大家根据这篇文章可以有所收获。

在富顺等地区,都构建了全面的区域性战略布局,加强发展的系统性、市场前瞻性、产品创新能力,以专注、极致的服务理念,为客户提供成都做网站、成都网站制作 网站设计制作定制网站建设,公司网站建设,企业网站建设,品牌网站制作,营销型网站建设,外贸网站建设,富顺网站建设费用合理。

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

解决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://pwwzsj.com/article/gpicds.html