dedecms将标题直接链接到外部链接(3)_DedeCms教程

编辑Tag赚U币
教程Tag:暂无Tag,欢迎添加,赚取U币!

pubdate,senddate,adminID,memberID,description,keywords,redirecturl)
VALUES ('$typeid','$typeid2','$sortrank','$iscommend','$ismake','$channelid',
'$arcrank','0','$money','$title','$color','$writer','$source','$litpic',
'$pubdate','$senddate','$adminID','0','$description','$keywords','$redirecturl');"; [Copy to clipboard]

打开:action_archives_edit_save.php
找到
CODE: if($ishtml==0) $ismake = -1; [Copy to clipboard]
改为
CODE: if($redirecturl!="") $ishtml = 0;
if($ishtml==0) $ismake = -1; [Copy to clipboard]
适当地方加入:
CODE: $redirecturl = cn_substr($redirecturl,250); [Copy to clipboard]
查询语句:
CODE: //更新数据库的SQL语句
//----------------------------------
$inQuery = "
update dede_archives set
typeid='$typeid',
typeid2='$typeid2',
sortrank='$sortrank',
iscommend='$iscommend',
ismake='$ismake',
arcrank='$arcrank',
money='$money',
title='$title',
color='$color',
writer='$writer',
source='$source',
litpic='$litpic',
pubdate='$pubdate',
description='$description',
keywords='$keywords',
redirecturl='$redirecturl'
where ID='$ID'; "; [Copy to clipboard]

CODE: [/code]

[code] [Copy to clipboard]

CODE: [/code]

[code]

查看更多 DedeCms教程  织梦模板  织梦DedeCms视频教程  织梦dedecms专题

共3页上一页123下一页
来源:模板无忧//所属分类:DedeCms教程/更新时间:2007-01-28
相关DedeCms教程