Destoon修改记录




Destoon官网:http://www.destoon.com

1、修改 config.inc.php 路径;修改以下文件内容:DT_ROOT.'/config.inc.php' => DT_ROOT.'/[SOMEDIR]/config.inc.php'
[hide] common.inc.php
admin/setting.inc.php
module/member/credit.inc.php
install/index.php
install/chmod.txt
将 config.inc.php 移动到 [SOMEDIR]/config.inc.php

2、首页静态页面保存位置;修改内容:DT_ROOT.'/'.$DT['index'] => DT_ROOT.'/file/homepage_'.$DT['index']
index.php
admin/html.inc.php
api/task.js.php
include/index.htm.php

3、添加自定义函数库
include/extend.inc.php
修改 common.inc.php 在 require DT_ROOT.'/api/extend.func.php'; 下面新加一行输入
require DT_ROOT.'/include/extend.func.php';//第三方代码引入
主要函数:
getCatIDByCatdir() 供伪静态使用
showCate()     显示分类列表

4、伪静态规则 修改
api/url.inc.php

5、分页列表 修改
api/pages.default.php
api/pages.simple.php

6、sitemap 取消目录,采用伪静态
将 sitemap/index.php 移动到 extend/sitemap.index.php

7、archiver 取消目录,采用伪静态
将 archiver/index.php 移动到 extend/archiver.index.php

8、添加自定义搜索
添加表 `destoon_search`
DROP TABLE IF EXISTS `destoon_search`;
CREATE TABLE IF NOT EXISTS `destoon_search` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `moduleid` smallint(4) unsigned NOT NULL DEFAULT '0',
  `itemid` int(10) unsigned NOT NULL DEFAULT '0',
  `catid` int(10) unsigned NOT NULL DEFAULT '0',
  `title` varchar(180) NOT NULL DEFAULT '',
  `thumb` varchar(520) NOT NULL DEFAULT '',
  `url` varchar(120) NOT NULL DEFAULT '',
  `time` int(10) unsigned NOT NULL DEFAULT '0',
  `weight` int(10) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `title` (`title`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8;
添加文件:
extend\search.index.php
module\extend\search.inc.php
template\TPL\extend\search.htm
修改文件:
module\article\index.inc.php add/edit/move/delete
module\sell\index.inc.php add/edit/move/delete

9、发布产品里面缩略图插入内容(可以避免缩略图和内容里面重复上传图片):
修改 api/swfupload/handlers_editor.js
 复制函数 Add_IMG(o) 为其他名字如Add_IMG_NEW(o),删除里面的 o.style.display = 'none';
修改 module/sell/admin/template/edit.tpl.php
onclick="if(this.src.indexOf('waitpic.gif') == -1){Add_IMG_NEW(Dd('showthumb'));}
 *已传图片的点击则插入内容中,未传的则依旧显示上传界面

10、修改公司伪静态路径 /com/ 为其他的比如 /shop/
[hide]include/global.func.php
$URL = DT_PATH.'com/'.$username.'/';

11、支持分类名称目录一起填写(支持逗号、竖线、空格分隔)
admin/category.inc.php 修改 if(!$catname) continue; 后面
$catname = str_replace(array(',',' ',' ','|'),',',$catname);
$catname = explode(',',$catname);
$category['catname'] = trim($catname[0]);
$category['catdir']  = trim($catname[1]);

作者头像
山少

沉默时听数来去的脚步,一段轻松,一段沉重

作者/编辑

评论(0)

还没有评论。