無論你手工發(fā)布,還是采集而來,免不了要進(jìn)行手工操作弄縮略圖,不然標(biāo)題圖片沒有,挺煩人的 只需一次設(shè)定,就可以在文章編輯框里自動(dòng)勾選上分頁和生成縮略圖,免除你次次進(jìn)行操作的麻煩,好了,廢話不多說,上菜“
先到 系統(tǒng)>管理數(shù)據(jù)表 > 后,在你需要進(jìn)行設(shè)定的類型里更改,比如我要 這項(xiàng)的實(shí)現(xiàn)自動(dòng)生成標(biāo)題縮略圖和自動(dòng)分頁(當(dāng)然,你也可以單獨(dú)實(shí)現(xiàn)分頁和生成縮略圖)
找到 新聞系統(tǒng)數(shù)據(jù)表( phome_ ecms_ news ) >[管理字段]>新聞?wù)?后面點(diǎn)擊
輸入表單替換html代碼(增加字段時(shí)請留空)后面的代碼里增加幾個(gè)代碼
<?=ECMS_ShowEditorVar("newstext",$ecmsfirstpost==1?"":stripSlashes($r[newstext]),"Default","","300","100%")?>
<table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#DBEAF5">
<tr>
<td bgcolor="#FFFFFF"> <input name="dokey" type="checkbox" value="1"<?=$r[dokey]==1?' checked':''?>>
關(guān)鍵字替換 <input name="copyimg" type="checkbox" id="copyimg" value="1" checked>
遠(yuǎn)程保存圖片(
<input name="mark" type="checkbox" id="mark" value="1">
<a href="SetEnews.php<?=$ecms_hashur[whehref]?>" target="_blank">加水印</a>)
<input name="copyflash" type="checkbox" id="copyflash" value="1">
遠(yuǎn)程保存FLASH(地址前綴:
<input name="qz_url" type="text" id="qz_url" size="">
)</td>
</tr>
<tr>
<td bgcolor="#FFFFFF"><input name="repimgnexturl" type="checkbox" id="repimgnexturl" value="1"> 圖片鏈接轉(zhuǎn)為下一頁 <input name="autopage" type="checkbox" id="autopage" value="1" checked> 自動(dòng)分頁
,每
<input name="autosize" type="text" id="autosize" value="5000" size="5">
個(gè)字節(jié)為一頁 取第
<input name="getfirsttitlepic" type="text" id="getfirsttitlepic" value="" size="1">
張上傳圖為標(biāo)題圖片(
<input name="getfirsttitlespic" type="checkbox" id="getfirsttitlespic" value="1">
縮略圖: 寬
<input name="getfirsttitlespicw" type="text" id="getfirsttitlespicw" size="3" value="<?=$public_r[spicwidth]?>">
*高
<input name="getfirsttitlespich" type="text" id="getfirsttitlespich" size="3" value="<?=$public_r[spicheight]?>">
)</td>
</tr>
</table>
這是更改后的代碼。
OK, 改好后就提交 數(shù)據(jù)更新 到文章發(fā)布地方看看是不是已經(jīng)自動(dòng)勾選上了啊,從此以后發(fā)布文章寫好后直接發(fā)布,免除你次次手工操作的麻煩怎么樣,是不是挺方便了,這下懶人大大們有福了
在說明下,自動(dòng)生成縮略圖的大小,是在系統(tǒng)參數(shù)設(shè)置里進(jìn)行設(shè)定的,自己可以根據(jù)需要,到參數(shù)設(shè)置里進(jìn)行更改,從而實(shí)現(xiàn)默認(rèn)的大小






