欢迎来到素材无忧网,按 + 收藏我们
登录 注册 退出 找回密码

dedecms织梦前台会员中心上传附件方法

时间: 2018-12-05 08:31 阅读: 作者:素材无忧网

打开\include\FCKeditor\fckconfig.js

1 2 3 4 FCKConfig.ToolbarSets["Member"] = [ ['Source','Preview','-','PasteText','PasteWord','-','Bold','Italic','Underline','StrikeThrough'], ['ImageUser','FlashUser','-','Link','Unlink','-','Table','Rule','Codes','Quote','Br','-','TextColor','FontSize'] ] ;

替换成

1 2 3 4 FCKConfig.ToolbarSets["Member"] = [ ['Source','Preview','-','PasteText','PasteWord','-','Bold','Italic','Underline','StrikeThrough'], ['ImageUser','FlashUser','AddonUser','-','Link','Unlink','-','Table','Rule','Codes','Quote','Br','-','TextColor','FontSize'] ] ;

1 2 3 4 FCKConfig.ToolbarSets["MemberLit"] = [ ['Source','Preview','-','PasteText','PasteWord','-','Bold','Italic','Underline','StrikeThrough'], ['ImageUser','FlashUser','-','Link','Unlink','-','Table','Rule','Codes','Quote','Br','-','TextColor','FontSize'] ] ;

替换成

1 2 3 4 FCKConfig.ToolbarSets["MemberLit"] = [ ['Source','Preview','-','PasteText','PasteWord','-','Bold','Italic','Underline','StrikeThrough'], ['ImageUser','FlashUser','AddonUser','-','Link','Unlink','-','Table','Rule','Codes','Quote','Br','-','TextColor','FontSize'] ] ;

 

打开\include\FCKeditor\editor\js\fckeditorcode_ie.js 和\include\FCKeditor\editor\js\fckeditorcode_gecko.js
先编辑fckeditorcode_ie.js

1 case 'Addon':B=new FCKDialogCommand('Addon',FCKLang.InsertAddon,'dialog/dede_addon.php',480,250);break;

下面添加

1 case 'AddonUser':B=new FCKDialogCommand('AddonUser',FCKLang.InsertAddon,'dialog/dede_addonuser.php',480,250);break;

1 case 'Addon':B=new FCKToolbarButton('Addon',FCKLang.InsertAddon,FCKLang.InsertAddon,null,false,true,76);break;

下面添加

1 case 'AddonUser':B=new FCKToolbarButton('AddonUser',FCKLang.InsertAddon,FCKLang.InsertAddon,null,false,true,76);break;

 

同理fckeditorcode_gecko.js做类似的修改
3.
在\include\FCKeditor\editor\dialog里,复制一份dede_addon.php,重命名为dede_addonuser.php。
编辑dede_addonuser.php

1 require_once(dirname(__FILE__)."/../../../common.inc.php");

替换成

1 2  require_once(dirname(__FILE__)."/../../../../member/config.php");     CheckRank(0,0);

1 window.open("../../../dialog/select_soft.php?f="+fname, "popUpSoftWin", "scrollbars=yes,resizable=yes,statebar=no,width=500,height=350,left="+posLeft+", top="+posTop);

替换成

1 window.open("../../../../member/uploads_select.php?mediatype=4&f="+fname, "popUpSoftWin", "scrollbars=yes,resizable=yes,statebar=no,width=500,height=350,left="+posLeft+", top="+posTop);  

版权声明: 本站资源均来自互联网或会员发布,如果侵犯了您的权益请与我们联系,我们将在24小时内删除!谢谢!

转载请注明: dedecms织梦前台会员中心上传附件方法

标签:  
模板推荐