正文

帝國CMS遠程圖片如何自動本地化并生成縮略圖

帝國CMS遠程保存圖片以及縮略圖的生成都是需要選擇的。下面就來教大家簡單的方法,自動勾選,并自動將縮略圖栽剪成默認的大。

打開系統(tǒng)設(shè)置--》管理數(shù)據(jù)表--》管理字段--》修改newstext表

帝國CMS遠程圖片如何自動本地化并生成縮略圖(圖1)

修改表單中的代碼,

遠程保存圖片:

將<input name="copyimg" type="checkbox" id="copyimg" value="1" >

改成<input name="copyimg" type="checkbox" id="copyimg" value="1" checked="checked">

加水印將 <input name="mark" type="checkbox" id="mark" value="1" >

改成 <input name="mark" type="checkbox" id="mark" value="1" checked="checked">

取第1張圖片并上傳為縮略圖并自動裁剪

將<input name="autosize" type="text" id="autosize" value="5000" size="5">

個字節(jié)為一頁&nbsp;&nbsp; 取第

<input name="getfirsttitlepic" type="text" id="getfirsttitlepic" value="0" size="1">

張上傳圖為標(biāo)題圖片(

<input name="getfirsttitlespic" type="checkbox" id="getfirsttitlespic" value="1">

改成<input name="autosize" type="text" id="autosize" value="5000" size="5">

個字節(jié)為一頁&nbsp;&nbsp; 取第

<input name="getfirsttitlepic" type="text" id="getfirsttitlepic" value="1" size="1">

張上傳圖為標(biāo)題圖片(

<input name="getfirsttitlespic" type="checkbox" id="getfirsttitlespic" checked="checked" value="1">

或者把下面的代碼直接粘入:

<?=ECMS_ShowEditorVar("newstext",$ecmsfirstpost==1?"":stripSlashes($r[newstext]),"Default","","600","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)鍵字替換&nbsp;&nbsp; <input name="copyimg" type="checkbox" id="copyimg" value="1" checked="checked">

遠程保存圖片(

<input name="mark" type="checkbox" id="mark" value="1" >

<a href="SetEnews.php<?=$ecms_hashur[whehref]?>" target="_blank">加水印</a>)&nbsp;&nbsp;

<input name="copyflash" type="checkbox" id="copyflash" value="1">

遠程保存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)為下一頁&nbsp;&nbsp; <input name="autopage" type="checkbox" id="autopage" value="1">自動分頁

,每

<input name="autosize" type="text" id="autosize" value="5000" size="5">

個字節(jié)為一頁&nbsp;&nbsp; 取第

<input name="getfirsttitlepic" type="text" id="getfirsttitlepic" value="1" size="1">

張上傳圖為標(biāo)題圖片(

<input name="getfirsttitlespic" type="checkbox" id="getfirsttitlespic" checked="checked" 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>

聲明:月季網(wǎng)致力月季產(chǎn)業(yè),部分文字和圖片來源網(wǎng)絡(luò),版權(quán)歸原作者,如有侵權(quán)請聯(lián)系刪除。

月季網(wǎng)

月季網(wǎng)