1、帝国cms网站后台编辑器不能编辑如何解决?
这个程序都已经停止更新了吧,为什么还使用呢,都找不到人使用的了
2、帝国CMS 批量修改数据
用帝国做的商城系统,上传了很多产品图片,后来要求把缩略图改小,很伤脑筋,结果找到上面的帖子,但怎么搞也不行,可能那不是针对6.0.所有自己加以修改终于成功!!!
以下为修改方法:
一、首先,在t_functions.php中添加一下两个函数
1.function Titlepic_all ($id, $classid, $userid, $username, $pwidth, $pheight)
2. {
3. global $empire,$class_r,$class_zr,$dbtbpre,$keys;
4. $count = count ($id);
5. if (!$count)
6. {
7. printerror ('Noteditpic', 'history.go(-1)');
8. }
9. for ($i = 0; ($i < $count); ++$i)
10. {
11. $r = $empire->fetch1 ('select * from phome_ecms_'.$class_r[$classid][tbname].' where id='.$id[$i].' and titlepic<>""');
12. if(!emptyempty($r[id])){
13. ImageResize("../../".$r[titlepic],$pwidth,$pheight,"../../".$r[titlepic]);
14.
15. }
16. }
17.printerror ('TitlepicAllSuccess', $_SERVER['HTTP_REFERER']);
18. }
19.Function ImageResize($srcFile,$toW,$toH,$toFile="")
20.{
21. global $keys;
22. if($toFile==""){ $toFile = substr($srcFile,0,-4)."small".substr($srcFile,-4); }
23. $info = "";
24. $data = GetImageSize($srcFile,$info);
25. switch ($data[2])
26. {
27. case 1:
28. if(!function_exists("imagecreatefromgif")){
29. echo "你的GD库不能使用GIF格式的图片,请使用Jpeg或PNG格式
30.
31.!<a href='<font>javascript:</font>go(-1);'>返回</a>";
32. exit();
33. }
34. $im = ImageCreateFromGIF($srcFile);
35. break;
36. case 2:
37. if(!function_exists("imagecreatefromjpeg")){
38. Echo "你的GD库不能使用jpeg格式的图片,请使用其它格式的图
39.
40.片!<a href='<font>javascript:</font>go(-1);'>返回</a>";
41. Exit();
42. }
43. $im = ImageCreateFromJpeg($srcFile);
44. break;
45. case 3:
46. $im = ImageCreateFromPNG($srcFile);
47. break;
48.}
49.$srcW = ImageSX($im);
50.$srcH = ImageSY($im);
51.$keys= 0;
52.if (($srcW>$toW) or ($srH>$toH)){
53.if(($srcW/$toW)>=($srcH/$toH)){
54. $temp_height=$toH;
55. $temp_width=$srcW/($srcH/$toH);
56. $src_X=Abs(($toW-$temp_width)/2);
57. $src_Y=0;
58. }
59. else{
60. $temp_width=$toW;
61. $temp_height=$srcH/($srcW/$toW);
62. $src_X=0;
63. $src_Y=Abs(($toH-$temp_height)/2);
64. }
65. $temp_img=ImageCreateTrueColor($temp_width,$temp_height);
66. imagecopyResampled($temp_img,$im,0,0,0,0,$temp_width,$temp_height,$srcW,$srcH);
67. $ni=ImageCreateTrueColor($toW,$toH);
68. imagecopyResampled($ni,$temp_img,0,0,$src_X,$src_Y,$toW,$toH,$toW,$toH);
69.
70.if(Function_exists('imagejpeg')) ImageJpeg($ni,$toFile);
71. else ImagePNG($ni,$toFile);
72. ImageDestroy($ni);
73.$keys= 1;
74.}
75.ImageDestroy($im);
76.}
二、修改 e/admin/ListNews.php{还有个页面:e/admin/ListAllInfo.php},大约在最后几行“选中全部 </td></tr>”的后面添加以下代码:
<tr bgcolor="#FFFFFF">
<td height="25" colspan="8"><div align="right">
缩略图宽: <input name="pwidth" type="text" value="120" width="60">
缩略图高: <input name="pheight" type="text" value="120" width="60">
<input type="submit" name="Submit355" value="修改缩略图" onClick="document.listform.enews.value='Titlepic_all';">
</div></td></tr>
其中,图宽和图稿的默认值可按自己的情况设定,设定好后,以后操作更方便。
三、在e/admin/ecmsinfo.php中添加如下代码:
//批量加标题图片
elseif($enews=="Titlepic_all")
{
$id=$_POST['id'];
$classid=$_POST['classid'];
$bclassid=$_POST['bclassid'];
$pwidth=$_POST['pwidth'];
$pheight=$_POST['pheight'];
Titlepic_all($id,$classid,$logininid,$loginin,$pwidth,$pheight);
}
四、函数中用到“ printerror ('Noteditpic', 'history.go(-1)');”等操作提示,这个提示可加在e/data/language/gb/pub/message.php;当然这一步不加也不影响操作
在message.php 后面加:
'Noteditpic'=>'没有选择!',
'TitlepicAllSuccess'=>'操作成功!',
3、帝国cms如何更改模板
更换整体模板背景的源代码:
<STYLE type=text/css>
body
{background:url(页面背景图片) repeat
scroll!important;}
.logo
{background:url(题图logo图片) no
repeat no scroll!mportant;}
.banner
{background:url(题图大图) no
repeat no scroll!mportant;}
.menu{
background:url("题图下的菜单图片") no-
repeat center;}
.feeds .up{
background:url("正文标题栏上翻时的图片") no-
repeat center;}
.feeds .down{
background:url("正文标题栏下翻时的图片") no-
repeat center;}
.feeds .function{background:url("正文摘要结尾处菜单的图片") no-
repeat right;}
.links .up{
background:url("面板标题栏上翻时图片");}
.links .down{
background:url(面板标题栏下翻时的图片);}
.links .mid{
background:url(面板的背景图片);}
.photo .mid{
background:url(形象照片处的背景图片);}
.label .mid{
background:url(自定义面板的背景图片);}
.calendar .mid{
background:url("日历面板背景");}
.callboard .up{
background:url("公告栏标题栏上翻时图片");}
.callboard .down{
background:url("公告栏标题栏下翻时图片");}
.callboard .mid{
background:url("公告栏背景图片");}
.bodyBg{
background:url("正文背景图片");}
.bodyBottom{
background:url("正文背景图片");}
.gbook .up{
background:url('留言板标题栏上翻时的图片') no-repeat;}
.gbook .down{
background:url('留言板标题栏下翻时的图片') no-repeat;}
.feeds .page{
background:url("正文文章页数图片") no-repeat center;}
</STYLE>
具体操作如下所示:
控制面板----个人首页维护----自定义空白面板----新增----钩显示源代码----粘贴代码----去掉钩----保存
如果是新增的面板可以再在--控制面板里--接着点----左上角的 定制我的首页----添加模块----钩选----选取----保存
我一直都是用XP的CMS
我看过我一朋友用KeSion CMS
你也可以试下
4、帝国cms编辑器如何设计页面大小及页边距吗
GetE('txtWidth').value = oImageOriginal.width ;
GetE('txtHeight').value = oImageOriginal.height ;
改为如下:(450为你想让默认后的显示大小,可以根据自己需要修改)
GetE('txtWidth').value = 450 ;
GetE('txtHeight').value = 450 * oImageOriginal.height / oImageOriginal.width ;
5、求助,编辑器中的字体如何添加更改 帝国cms
这个没有那么容易添加 仅仅是一个属性 你用别的 浏览器不支持
如果你换成什么稀有物种 网站打开时用户还需要请求字体包 那么复杂了
6、帝国cms内容管理系统怎么安装ueditor编辑器
下载UEditor PHP版本,这里以1.3.6为例。
下载后解压,将文件夹名改为ueditor。
接着,上传到服务器,帝国CMS文件夹e\data\ecmseditor\目录下。
进入帝国CMS后台,点击顶部【系统】
再点击左侧【数据表与系统模型】>>>【管理数据表】
然后右侧找到相应的数据表,点击【管理字段】
在弹出的新窗口内找到字段名〖newstext〗,然后点击此行的【修改】
找到〖输入表单替换html代码〗。
将右侧的代码全部删除,复制下面的代码到框内,然后点【提交】。
<script type="text/javascript" src="/e/data/ecmseditor/ueditor/ueditor.config.js"></script>
<script type="text/javascript" src="/e/data/ecmseditor/ueditor/ueditor.all.js"></script>
<script type="text/javascript" charset="utf-8" src="/e/data/ecmseditor/ueditor/lang/zh-cn/zh-cn.js"></script>
<link rel="stylesheet" href="/e/data/ecmseditor/ueditor/themes/default/ueditor.css">
<script type="text/plain" id="myEditor" name="newstext" style="width:99%;height:450px;">
<?=$ecmsfirstpost==1?"":stripSlashes($r[newstext])?>
</script>
<script type="text/javascript">
var editor = new baidu.editor.ui.Editor();
editor.render("myEditor");
editor.classid = <?=$classid?>;
editor.filepass = <?=$filepass?>;
</script>
<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':''?>>关键字替换
<input name="copyimg" type="checkbox" id="copyimg" value="1">远程保存图片(
<input name="mark" type="checkbox" id="mark" value="1"><a href="SetEnews.php" target="_blank">加水印</a>)
<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">图片链接转为下一页
<input name="autopage" type="checkbox" id="autopage" value="1">自动分页,每
<input name="autosize" type="text" id="autosize" value="5000" size="5">个字节为一页 取第
<input name="getfirsttitlepic" type="text" id="getfirsttitlepic" value="" size="1">张上传图为标题图片(
<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>
END
小贴士
如果需要修改编辑器的尺寸,在上面的代码内找到〖style="width:99%;height:450px;"〗进行修改即可。
举例:宽600像素,高500像素,则style="width:600px;height:500px;"
如果是自定义模型或改过模型,字段名不叫〖newstext〗的话,请把上面代码里面所有的〖newstext〗改成你的字段名(一共两处),否则会无法使用。
这样一次修改,只能针对一张数据表,如果有多张数据表,请每个都要修改。
7、帝国cms新闻正文无法填写内容也无法修改之前发过的文章
第一、很多都是浏览器的问题。这种情况一般出现在360IE 浏览器的情况下 一般 显示不版出来 或者是权显示的编辑器的地方就 是一块空的地方。
解决方案:更换下浏览器 或者浏览器模式即可,推荐使用firefox浏览器
第二、很简单了 就是网速的问题 导致帝国cms 编辑器的js等文件加载不出来
解决方案:F5 多刷新几下 (这种情况出现的比较少)
第三、无论是换浏览器了 还是多刷新了几下 还是显示黑色的 不能点击
解决方案1 编辑器文件可能有文件损坏 或者FTP上传的时候有中断 找到对应的帝国cms的版本 e\admin\ecmseditor
把ecmseditor 文件夹里面的直接替换便可以解决
解决方案2:就是系统模型的问题 有些模型设置了编辑器的模式(这个出现的几率基本为O)
解决方案3:本地浏览器JS禁用 如果你的网站后台能登陆 一些JS可以运行 就不会是这个问题
8、如何让修改帝国cms的系统提示页
下面的文件可以修改“信息提示”这4个字,你可以修改成任意你想要的。
e/message/index.php
具体提示文字修改下面的语言包
仿站提示文字要改语言包,e/data/language/gb/pub/q_message.php
9、帝国cms的编辑器怎么修改,默认上传的图片a标签调用的是图片的连接,我想改成下一页连接。

如上图,图片链接为下一页,你试着勾选上试试。
当然,这里有可能的是 列表的下一页;
如果不是内容页分页的下一页,那你要实现这样的功能的话,就得自己动手二次开发,修改帝国cms核心函数了。
如果你自己会改,那就自己开发一下;如果不会,估计你得请个人帮你 做这方面的帝国cms二次开发了。
10、帝国cms7.2文档编辑器怎么改成百度编辑器ueditor教程
这个好办,看下这个教程吧,很详细的。
http://souziyuan.net/news/jiaocheng/2015-12-30/38.html