DEDECMS5.6和5.7跳轉(zhuǎn)網(wǎng)址直接顯示跳轉(zhuǎn)網(wǎng)址的解決辦
導(dǎo)讀:[標(biāo)簽dede后臺模板:標(biāo)題2]織夢技術(shù)本解決方案是在DEDECMS5.7中測試過的,當(dāng)文檔設(shè)置為跳轉(zhuǎn)并添加跳轉(zhuǎn)網(wǎng)址后如何不經(jīng)過中轉(zhuǎn)頁而直接可以用標(biāo)簽arcurl在底層模板中顯示redirecturldede免費(fèi)校板下戰(zhàn)手機(jī)模板dede。
本解決方案是在DEDECMS5.7中測試過的,當(dāng)文檔設(shè)置為跳轉(zhuǎn)并添加跳轉(zhuǎn)網(wǎng)址后如何不經(jīng)過中轉(zhuǎn)頁而直接可以用標(biāo)簽arcurl在底層模板中顯示redidede商城模板recturl跳轉(zhuǎn)網(wǎng)址。
找到dedecms文件:/include/helpers/channelunit.helper.php中,第157行處開始修改:
修改前:
if($rank!=0 || $ismake==-1 || $typeid==0 || $money>0) { //動態(tài)文章 if($cfg_rewrite == ‘Y’) { return $GLOBALS[“cfg_plus_dir”].”/view-“.$aid.’-1.html'; } else { return $GLOBALS[‘cfg_phpurl’].”/view.php?aidede5.7模板d=$aid”; } }
修改后:
if($rank!=0 || $ismake==-1 || $typeid==0 || $money>0) { //——–跳轉(zhuǎn)網(wǎng)址不經(jīng)過中間頁直接顯示—————-begin—by oicto global $dsql; $flag = $dsql->GetOne(“select * from dede_archives where id = $aid;”); $flag = $flag[‘flag’]; if(preg_match(“/j/”,$flag)){
$addontable = $dsql->GetOne(“select art.id,cht.addtable from dede_arctype art left join dede_channeltype cht on art.channeltype = cht.id where art.id = $typeid”); $addtable = $addontable[‘addtable’]; $GoUrl = $dsql->GetOne(“select redirecturl from $addtable where aid = $aid”); $redirecturl = $GoUrl[‘redirecturl’]; if($redirecturl != ”){ return $redirecturl; } } //——–跳轉(zhuǎn)網(wǎng)址不經(jīng)過中間頁直接顯示—————-end—by oicto //動態(tài)文章 if($cfg_rewrite == ‘Y’) { return $GLOBALS[“cfg_plus_dir”].”/view-“.$aid.’-1.html'; } else { return $GLOBALS[‘cfg_phpurl’].”/view.php?aid=$aid”; } }
相關(guān)dede免費(fèi)校板下戰(zhàn)手機(jī)模板dede。聲明: 本文由我的SEOUC技術(shù)文章主頁發(fā)布于:2023-07-19 ,文章DEDECMS5.6和5.7跳轉(zhuǎn)網(wǎng)址直接顯示跳轉(zhuǎn)網(wǎng)址的解決辦主要講述跳轉(zhuǎn),網(wǎng)址,網(wǎng)址網(wǎng)站建設(shè)源碼以及服務(wù)器配置搭建相關(guān)技術(shù)文章。轉(zhuǎn)載請保留鏈接: http://www.bifwcx.com/article/web_30502.html