动易SF整合Discuz!NT3.0详细说明

来源:互联网 发布:everyone piano mac版 编辑:程序博客网 时间:2024/04/23 18:44

其实整合方法其本上是一样,只是还是有很多人问同样的问题,这里还是重新再写一遍吧!需要注意的问题,请下载相应版本的整合API。这里只说说 20091015。

下载DNT1015-API.rar,然后下载dnt_3_sqlserver.zip(20091015最后更新)

1、首先将SF安装在网站根目录

2、把dnt_3_sqlserver 的 upload_files 下文件放在 bbs 文件夹下

3、把bbs下的DNT.config 、bin目录 、aspnet_client目录 放到根目录,这里注意一下, bin下有同名的DLL,请不要覆盖。

4、修改DNT.config 为:
<?xml version="1.0"?>
<BaseConfigInfo xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<Dbconnectstring>Data Source=(local);User ID=sa;Password=sa;Initial Catalog=dnt2;Pooling=true</Dbconnectstring>
<Tableprefix>dnt_</Tableprefix>
<Forumpath>/bbs/</Forumpath>
<Dbtype>SqlServer</Dbtype>
<Founderuid>1</Founderuid>
</BaseConfigInfo>

5、修改根目录web.config(SF配置文件)
<!--配置 ASP.NET Web 应用程序和控制应用程序行为的配置元素。-->
<location path="." inheritInChildApplications="false">
   <system.web>
   <!--配置 ASP.NET 使用的安全身份验证模式,以标识传入的用户。-->
..................
   <httpModules>
     <remove name="WindowsAuthentication" />
     <remove name="PassportAuthentication" />
     <remove name="RoleManager" />
     <remove name="FileAuthorization" />
     <remove name="AnonymousIdentification" />
     <remove name="Profile" />
     <add type="Discuz.Forum.HttpModule, Discuz.Forum" name="HttpModule" />
     <add name="UrlRewriteModule" type="PowerEasy.Framework.UrlRewriter.UrlRewriteModule, PowerEasy.Framework.UrlRewriter" />
     <add name="MonitorModule" type="PowerEasy.SiteFactory.Web.HttpModule.MonitorModule, PowerEasy.SiteFactory.Web" />
     <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
   </httpModules>
.........................
</system.web>
</location>

6、修改bbs目录下的web.config
   <pages
          styleSheetTheme=""
           validateRequest="false"
           enableEventValidation="false"
           enableViewStateMac="false"
           viewStateEncryptionMode ="Never"
>
      <tagMapping>
        <remove tagType="System.Web.UI.WebControls.Label" />
        <remove tagType="System.Web.UI.WebControls.Literal" />
         <remove tagType="System.Web.UI.WebControls.HyperLink" />
      </tagMapping>
   </pages>

7.此时安装论坛即可
http://网址/bbs/install/index.aspx

8.安装完成后。
把 DNT1015-API.rar 解压,把 api 目录下的文件放到bbs目录下
把bin 下在文件放到根目录的BIN下,覆盖原BIN下的dll文件。

9.整合设置。
同整合其他一样。
根目录的config目录下。api.config 配置为:
<?xml version="1.0" encoding="utf-8"?>
<Config>
<APISettings>
   <Item>
     <Name>API_Enable</Name>
     <Value>true</Value>
   </Item>
   <Item>
     <Name>API_Key</Name>
     <Value>123456</Value>
   </Item>
   <Item>
     <Name>API_Timeout</Name>
     <Value>10000</Value>
   </Item>
   <Item>
     <Name>API_Urls</Name>
     <Value>http://localhost/bbs/api/API_Response.aspx</Value>
   </Item>
</APISettings>
</Config>

bbs目录下的api目录中api.config 配置为:
<?xml version="1.0" encoding="gb2312"?>
<Config>
<APISettings>
<Item>
   <Name>API_Enable</Name>
   <Value>true</Value>
</Item>  
<Item>
   <Name>API_Key</Name>
   <Value>123456</Value>
</Item>
<Item>
   <Name>API_Timeout</Name>
   <Value>10000</Value>
</Item>
<Item>
   <Name>API_Urls</Name>
   <Value>http://localhost/API/API_Response.aspx</Value>
</Item>
</APISettings>
</Config>

请自行修改,API_Key 。

到此,整个整合过程完成了。  

原创粉丝点击