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

春风如梦风过无痕,只为心的思念,遥寄一份浓浓的祝福。决不能习惯失败,因为你要知道,身体的疲惫,不是真正的疲惫;精神上的疲惫,才是真的劳累。

打开\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=newFCKDialogCommand('Addon',FCKLang.InsertAddon,'dialog/dede_addon.php',480,250);break;

下面添加

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

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

下面添加

1
case'AddonUser':B=newFCKToolbarButton('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);

到此这篇关于dedecms织梦前台会员中心上传附件方法就介绍到这了。人得自知,既然没种去死,那就找点乐子活下去。更多相关dedecms织梦前台会员中心上传附件方法内容请查看相关栏目,小编编辑不易,再次感谢大家的支持!

标签: dedecms