如果要生成在网站根目录的话,这个值则要为空.
论坛上现在看到的办法是打开cachesconfigssystem.php,修改html_root的值
默认在51行:
修改为:'html_root' => '/html',//生成静态文件路径
下面要讲的是,将html_root这项值添加到后台的基本设置中,让管理员可以随时修改html_root的这个值...'html_root' => '',//生成静态文件路径
我们需要修改2个文件
1.打开phpcmsmodulesadminfunctionsglobal.func.php
找到:
在后面添加:'img_path','attachment_stat',
修改好后保存.'html_root',
2.打开phpcmsmodulesadmintemplatessetting.tpl.php
找到:
在其下面另起一行,加入以下代码:<tr> <th width="120"><?php echo L('setting_upload_url')?></th> <td class="y-bg"><input type="text" class="input-text" name="setconfig[upload_url]" id="upload_url" size="50" value="<?php echo $upload_url?>" /></td> </tr>
修改好保存即可.<tr> <th width="120">生成静态文件路径</th> <td class="y-bg"><input type="text" class="input-text" name="setconfig[html_root]" id="html_root" size="50" value="<?php echo $html_root?>" /> 注:默认在html目录下(即"/html"),要生成在网站根目录下留空即可</td> </tr>
现在在后台的基本设置里面,已经可以修改这个值了....
(责任编辑:网页模板)