DEDECMS 5.1版本(新版不知是不是还这样?),每次上传附件,默然的都是在根目录下创建一个年年月月日日形式的目录,然后再把附件放到这个目录里。为了便于管理,我们要修改一下设置。

下面参考navyao的研究,大家修改就可以了。

1.修改文件: rooturl/dede/inc/inc_archives_functions.php

查找GetRemoteFlash,把

$cfg_uploaddir = $GLOBALS['media_dir'];

改为:

$cfg_uploaddir = $GLOBALS['cfg_medias_dir'];

2.到后台,新增一个变量:

系统管理-》添加新变量,所属组选择“附件/图片”,变量名称:cfg_medias_dir,变量值:/7k7k_swf(你可以修改你的)。

保存就OK了。你在../include/config_hand.php里也可以看到刚才新增的变量。

大家可以看这个小游戏站的设置。

Tags:

This entry was posted on Monday, January 12th, 2009 at 9:26 pm and is filed under 代码编程, 网站经验谈. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

2 comments so far

 1 

原来如此!顶下www.7kxyx.com

January 13th, 2009 at 11:04 pm
 2 

之前一直遇到DEDECMS的重复tag问题,不知道如何解决~

February 3rd, 2009 at 2:21 am

Leave a reply

Name (*)
Mail (will not be published) (*)
URI
Comment