phpcms推荐位无法排序怎么办

发布时间:2024-02-25 点击:87
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教程》

vip域名需要实名吗
.gs域名是什么?.gs域名注册要求是什么?
租95互联服务器相关云计算内容
教你如何使用自助快速建站系统
域名个人备案和企业域名备案的区别以及备案信息审核的三个步骤
link域名是什么意思?首次购买域名怎么买?
阿里云服务器挂载网盘下载
网页建设企业的构成要素