phpcms無法排序的解決辦法:首先找到并打開“content/content.php”文件;然后找到文中第454行的內(nèi)容;接著更改推薦排序;最后保存修改過后的文件即可。
長子網(wǎng)站制作公司哪家好,找創(chuàng)新互聯(lián)建站!從網(wǎng)頁設計、網(wǎng)站建設、微信開發(fā)、APP開發(fā)、成都響應式網(wǎng)站建設公司等網(wǎng)站項目制作,到程序開發(fā),運營維護。創(chuàng)新互聯(lián)建站2013年開創(chuàng)至今到現(xiàn)在10年的時間,我們擁有了豐富的建站經(jīng)驗和運維經(jīng)驗,來保證我們的工作的順利進行。專注于網(wǎng)站建設就選創(chuàng)新互聯(lián)建站。
解決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)); } //更改推薦排序結(jié)束-- } showmessage(L('operation_success')); } else { showmessage(L('operation_failure')); } }
推薦:《phpcms教程》
網(wǎng)站題目:phpcms推薦位無法排序怎么辦
地址分享:http://jinyejixie.com/article36/chcjpg.html
成都網(wǎng)站建設公司_創(chuàng)新互聯(lián),為您提供響應式網(wǎng)站、定制開發(fā)、做網(wǎng)站、外貿(mào)網(wǎng)站建設、搜索引擎優(yōu)化、標簽優(yōu)化
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)