帝國cms一直以來會員中心字段都不能用html編輯器,添加如下。
1、找到“/e/data/html/memberfhtml.txt”,末尾添加如下:
[!--html--]<?=ECMS_ShowEditorVar("[!--enews.var--]",$ecmsfirstpost==1?"[!--enews.def.val--]":htmlspecialchars_decode(stripSlashes($addr[[!--enews.var--]])),"Default","","300","100%")?>[!--html--]
2、找到“/e/admin/member/AddMemberF.php”,搜索“輸入表單顯示元素”,改成:
<select name="fform" id="fform"> <option value="text"<?=$formtext?>>單行文本框(text)</option> <option value="password"<?=$formpassword?>>密碼框(password)</option> <option value="select"<?=$formselect?>>下拉框(select)</option> <option value="radio"<?=$formradio?>>單選框(radio)</option> <option value="checkbox"<?=$formcheckbox?>>復選框(checkbox)</option> <option value="textarea"<?=$formtextarea?>>多行文本框(textarea)</option> <option value="img"<?=$formimg?>>圖片(img)</option> <option value="file"<?=$formfile?>>文件(file)</option> <option value="html"<?=$formhtml?>>編輯框(html)</option></select>
3、找到“/e/admin/member/AddMember.php”,在頭部的php代碼里面的末尾添加:
//html編輯器include('../ecmseditor/eshoweditor.php');$loadeditorjs=ECMS_ShowEditorJS('../ecmseditor/infoeditor/');?>
4、新建字段選擇“編輯器(html)”就好了
新聞熱點
疑難解答