一. 整站程序加测试数据安装说明
1. 解压压缩包
2. 上传压缩包内的所有文件到网站根目录
3. 在浏览器中打开(域名为你的域名) 域名/install/index.php 访问网页会看到以下页面, 等待10秒之后,点击我同意,进入以下页面
4.符合安装环境,请点击下一步(如果不合符安装环境要求,需要联系IDC服务器提供商配置服务器)
5. 如果符合系统文件权限要求,请点击下一步(destoon对于以下6个文件和文件夹要求权限是win系统服务器可读,可写,可执行;linux系统服务器是777,如果不懂服务器权限请自行百度)
6.此处配置已经设置好的mysql数据库信息,请认真并且正确填写,填写好之后点击一下”测试数据库连接”查看是否已经设置好了数据库,同时设置你的管理员的账号密码和其它信息,之后点击下一步。
7.系统开始自动安装,安装完成之后,请登录管理后台
8.登录系统后台
9.点击:系统维护 – 数据维护 进入如下页面
10.再次点击 数据恢复 – 导入本系列备份文件
11. 点击确定
12.恢复数据过程中,需要备份数据内的管理员账号密码,输入点击登陆之后,即可继续恢复数据。
13.恢复完成之后,点击:系统维护 – 更新缓存(等待片刻之后)- 点击生成首页(等待片刻之后)- 点击更新扩展;到此所有的程序安装和测试数据恢复工作全部完成了。
---------------------------------------------------------------------------------------------------------------------
二.独立模板安装教程(非独立模板安装不需要查看以下教程,也就是安装整站包的用户可以忽略以下教程)
1.解压压缩包,把以下文件上传覆盖到网站根目录【压缩包名称:纯模板文件.zip】(图片所示文件不一定每个模板都是这些文件,根据得到的模板文件上传)
2.开启配置“帮助中心”模块,进入你自己的管理后台
3.点击添加模块
4.填写模块必填项,注意:所属模型一点要选择“文章”模型,模块名称和按章目录可以自己根据需要随意填写,之后点击“确定”。
5.进入模块设置
6.设置“帮助中心”的模板文件,请根据下图中显示的内容选择设置(注意:信息发布模板不用选择模板),之后整个“帮助中心”模块已经设置完成。
三.模板/DT系统使用须知
1.如果感觉网站中缩略图显示的不清洗,不够美观,可以去每个功能管理的 – 模块设置内容设置图片的大小。
3.如果发现部分页面内容布局内不显示内容“简介”,可以去各个功能模块 – 模块设置设置此功能。(有的模板带有单独的说明文档,如果有单独说明文档就根据单独说明安装即可,可以忽略本条内容)
4.手机版设置,下图内红框位置是设置手机广告位内的广告内容,以及其它的手机版内容的所有信息。(注意:手机版没有专属的管理后台,其内容管理是和pc端的内容管理集成在一体的)
----------------------------------------------------------------------------------------------------------------------以下内容为普及destoon模板修改基础知识
四.destoon基础知识(调用参数汇总),这是给想要修改部分内容的同学查看的
根目录、模板目录和样式目录:{DT_PATH}、{DT_SKIN}
导入头脚:{template 'header'}和{template 'footer'}
对应模块首页:{$MODULE[$moduleid][linkurl]} 注:$moduleid表示对应模块的ID号
对应模块列表页:{$MODULE[$moduleid][linkurl]}list.php?catid=$catid 注:$catid表示调用的分类的ID号
发布某模块信息:{$MODULE[2][linkurl]}my.php?mid=$moduleid&action=add
调用广告:{ad(27)} 注:27表示广告位为27的广告
时间函数:{date('Y-m-d',$t[addtime])} 注:addtime是添加时间,可以换别的
控制字符数:{dsubstr($t[company],30)} 注:company是公司名称字段,可以换别的。30表示字符数为15个
版权信息:{$DT[copyright]} 客服电话:{$DT[telephone]}
ICP备案号:{$DT[icpno]}
本月:addtime>$today_endtime-30*86400
供应:(level=1)
{php $tags = tag("moduleid=5&table=sell&length=30&condition=status=3 and catid=? and level=?&pagesize=10&order=addtime desc&template=null")}
求购:(level=1)
{php $tags = tag("moduleid=6&table=buy&length=30&condition=status=3 and catid=? and level=?&pagesize=10&order=addtime desc&template=null")}
行情:(level=1,2,3,4,5)
{php $tags = tag("moduleid=7&table=quote&length=30&condition=status=3 and catid=? and thumb<>'' and level=?&pagesize=10&order=addtime desc&template=null")}
公司:
{php $tags = tag("moduleid=4&table=company&condition=groupid>5&pagesize=10&order=fromtime desc&template=null")}
展会:(level=1)
{php $tags = tag("moduleid=8&table=exhibit&length=30&condition=status=3 and catid=? and thumb<>'' and level=?&pagesize=10&order=addtime desc&template=null")}
资讯:(level=1,2,3,4,5)
{php $tags = tag("moduleid=21&table=article_21&length=30&condition=status=3 and catid=? and thumb<>'' and level=?&pagesize=10&order=addtime desc&template=null")}
招商:(level=1)
{php $tags = tag("moduleid=22&table=info_22&length=30&condition=status=3 and catid=? and thumb<>'' and level=?&pagesize=10&order=addtime desc&template=null")}
品牌:(level=1)
{php $tags = tag("moduleid=13&table=brand&length=30&condition=status=3 and catid=? and thumb<>'' and level=?&pagesize=10&order=addtime desc&template=null")}
人才:
{php $tags = tag("moduleid=9&table=job&length=30&condition=status=3 and catid=?&pagesize=10&order=addtime desc&template=null")}
{php $tags = tag("moduleid=9&table=resume&length=30&condition=status=3 and catid=?&pagesize=10&order=addtime desc&template=null")}
知道:(level=1)
{php $tags = tag("moduleid=10&table=know&length=30&condition=status=3 and catid=? and thumb<>'' and level=?&pagesize=10&order=addtime desc&template=null")}
专题:(level=1,2,3,4,5)
{php $tags = tag("moduleid=11&table=special&length=30&condition=status=3 and catid=? and thumb<>'' and level=?&pagesize=10&order=addtime desc&template=null")}
图库:(level=1,2,3,4,5)
{php $tags = tag("moduleid=12&table=photo&length=30&condition=status=3 and catid=? and thumb<>'' and level=?&pagesize=10&order=addtime desc&template=null")}
视频:(level=1)
{php $tags = tag("moduleid=14&table=video&length=30&condition=status=3 and catid=? and thumb<>'' and level=?&pagesize=10&order=addtime desc&template=null")}
下载:(level=1)
{php $tags = tag("moduleid=15&table=down&length=30&condition=status=3 and catid=? and thumb<>'' and level=?&pagesize=10&order=addtime desc&template=null")}
论坛:
{php $tags=tag("table=discuz.cdb_threads&prefix=&condition=status=0 and fid=?&order=dateline desc&pagesize=10&target=_blank&template=null")}
调用模块内容,资讯模块举例:
{php $tagss = tag("moduleid=21&table=article_data_21&condition=itemid=".$t[itemid]."&template=null")}
调用分类,资讯模块举例:
{php $tagss = tag("moduleid=21&table=category&condition=moduleid=21 and parentid=?&pagesize=10&order=catid desc&template=null")}
网站标题:{$seo_title}
关键字:{$head_keywords}
网页描述:{$head_description}
会员升级:{$MODULE[2][linkurl]}grade.php
收藏本页:<script type="text/javascript">addFav('收藏本页');</script>
设为首页:
<a href='#' onClick="this.style.behavior='url(#default#homepage)';this.setHomePage('http://www.webjx.com');">设为首页</a>
WAP浏览:{extendurl('wap')}
RSS订阅:{extendurl('feed')}
商务中心:{$MODULE[2][linkurl]}
发布信息:{$MODULE[2][linkurl]}{$DT[file_my]}
排名推广:{extendurl('spread')}
网站地图:{DT_PATH}sitemap/
友情链接:{extendurl('link')}index.php?typeid=1
申请友情链接:{extendurl('link')}{rewrite('index.php?action=reg')}
调用友情链接:
{php $tags = tag("table=link&length=14&condition=status=3 and typeid=1&pagesize=40&order=addtime desc&template=null")}
网站留言:{extendurl('guestbook')}
广告服务:{extendurl('ad')}
版权隐私、使用协议、联系方式、关于我们
{tag("table=webpage&condition=item=1&order=listorder desc,itemid desc&template=list-webpage")}
Copyright.html、agreement.html、contact.html、about.html
地区:{$AREA[1][areaname]}
投票:{extendurl('vote')}
登录框模板:{if $DT[page_login]}{template 'user', 'chip'}{/if}
公告栏:{extendurl('announce')}
分类模板:{php $mid=5;}{template 'catalog' 'chip'}
相关评论模板:{template 'comment', 'chip'}
联系方式模板:{template 'contact', 'chip'}
留言加盟:
<iframe src="{$MOD[linkurl]}message.php?itemid={$itemid}" name="destoon_message" id="destoon_message" style="width:99%;height:0px;" scrolling="no" frameborder="0"></iframe>
读缓存:
{php $CATEGORY = cache_read('category-21.php');}
{$MODULE[21][linkurl]}{$CATEGORY[5][linkurl]}
<meta http-equiv="x-ua-compatible" content="ie=7"/>
调用栏目名
{php $tags = tag("moduleid=21&table=article_21&length=32 &condition=status=3 &pagesize=11&order=addtime desc&template=null")} {loop $tags $t} <li><span class="rq">{date('Y-m-d',$t[addtime])}</span><span class="catn"> {php $tagss = tag("moduleid=21&table=category&condition=moduleid=21 and catid=".$t[catid]."&template=null")} {loop $tagss $tt} 【<a href="{$tt[linkurl]}" target="_blank">{dsubstr($tt[catname],12)}</a>】 {/loop} </span><a href="{$t[linkurl]}" target="_blank">{$t[title]}</a></li> {/loop}
调用大分类中的所有
{php $tags = tag("moduleid=26&table=category&condition=moduleid=26 and catid=137&template=null")}
{loop $tags $t}
{php $tagss = tag("moduleid=26&length=26&condition=status=3 and level=4 and catid IN(".$t[arrchildid].")&pagesize=4&order=addtime desc&template=null")}
{loop $tagss $ts}
<li>·<a href="{$ts[linkurl]}" target="_blank">{$ts[title]}</a></li>
{/loop}
{/loop}
产品图片怎么调用middle.jpg中大的图?
<img src="{str_replace('thumb', 'middle', $t[thumb])}" width="{$width}" height="{$height}" alt="{$t[alt]}"/>
五.m02模板内容修改,分类调用说明
1.如果遇到需要修改分类id的地方,可根据下图中显示的代码形式,在相应的模板文件中查找修改,按照图片显示的形式填写你需要的分类id
2.此处红框内是模块id,可修改相应的id参数。
3.另一种分类id的填写修改方式,如果没有遇到上面的那种分类id 的修改形式,可以查看是否是如下图所示的形式,之后填写修改相应分类。
4.修改模板内容,如果在所属页面内找不到,可以根据下图所示在模板目录中找tag文件夹在其中查找对应名称的模板,或者在chip等文件夹中查找
此处xiaohei-catff和xiaohei-ffcom都是文件的名称
5.广告位管理,点击扩展功能 – 广告管理 – 添加广告位
根据页面提示,设置广告位的参数,之后点击确定
在下图位置向广告位内,添加广告图片等
进入页面,添加广告位内的广告物料
之后把广告位id复制走
粘贴到页面模板中,如图所示