如何批量替换“来源”和“作者”

第一步:

打开:dede(台目录)\templets\article_add.htm (发表普通模板)和article_edit.htm(修改普通模板)

分别把:


<input name="source" type="text" id="source" style="width:160px" 

value="<?php echo $source; ?>" size="16"/>  

和:



<input name="writer" type="text" id="writer" style="width:120px" 

value="<?php echo $arcRow["writer"]?>"><input name="selwriter" 

type="button" id="selwriter" value="选择" /> 

分别改为:



<input name="source" type="text" id="source" style="width:160px" value="" size="16"/> 

和:



<input name="writer" type="text" id="writer" style="width:120px" value="织梦猫">

<input name="selwriter" type="button" id="selwriter" value="选择" /> 

(上面把:“”换成你自己的来源,“织梦吧”换成你自己的作者。)

第二步:登陆后台--模板--默认模板管理--article_article.htm(文章内容页模板)

把:

<small>时间:</small>{dede:field.pubdate function="MyDate('Y-m-dH:i',@me)"/}

<small>来源:</small> {dede:field.source/} <small>作者:</small>{dede:field.writer/} 

<small>点击:</small><scriptsrcscriptsrc="{dede:field/}/count.php?view=yes&aid=

{dede:fieldname='id'/}&mid={dede:field/}" type='text/javascript'language="javascript">

</script>次</div& gt;<!-- /info --> 

改为:



<small>时间:</small>{dede:field.pubdate function="MyDate('Y-m-dH:i',@me)"/}

<small>来源:</small> <small>作者:</small>织梦猫<small>点击:< /small>

<script src="{dede:fieldname='phpurl'/}/count.php?view=yes&aid=

{dede:field/}&mid={dede:field/}" type='text/javascript'language="javascript"></script></div> 


(上面把:“”换成你自己的来源,“织梦猫”换成你自己的作者。)

然后:保存

第三步:内容维护--全选--审核

第三:生成--一键更新网站--更新所有--开始更新

以后发布新文章时也不用再选“来源”和“作者”了