通过本教程可以实现帝国CMS后台给前台注册用户发消息,把内容输入框改为编辑器,可上传图片,等
打开文件\e\admin\member\SendMsg.php 大约84行
<textarea name="msgtext" cols="60" rows="14" id="msgtext"></textarea>
替换为:
<input type="hidden" id="msgtext" name="msgtext" value="<?=$ecmsfirstpost==1?"":stripSlashes($addr[msgtext])?>" style="display:none" /><input type="hidden" id="msgtext___Config" value="" style="display:none" /><iframe id="msgtext___Frame" src="/e/data/ecmseditor/infoeditor/editor/fckeditor.html?InstanceName=msgtext&classid=4&filepass=1271497810&Toolbar=Basic" width="100%" height="300" frameborder="0" scrolling="no"></iframe>
会员注册表单替换方法类似, 替换msgtext字段即可