asp学习网: 首页 >> 程序参考 >> 去掉dvbbs广告“国内使用量最大的动网论坛”的方法

去掉dvbbs广告“国内使用量最大的动网论坛”的方法

打开/inc/Dv_ClsOther.asp
找到:
If IsSqlDataBase = 0 Then
  If not IsObject(Application(Dvbbs.CacheName & "_TextAdservices")) Then
   Set XmlAds=Application(Dvbbs.CacheName & "_TextAdservices").cloneNode(True)
  Else
    Set XmlAds=Server.CreateObject("Msxml2.FreeThreadedDOMDocument" & MsxmlVersion )
    XmlAds.appendChild(XmlAds.createElement("xml"))
    XmlAds.documentElement.appendChild(XmlAds.createNode(1,"text","")).text="<iframe src="""&Dvbbs_Server_Url&"dvbbs/DvDefaultTextAd.asp"" height=""23"" width=""100%"" marginwidth=""0"" marginheight=""0"" hspace=""0"" vspace=""0"" frameborder=""0"" scrolling=""no""></iframe>"
  End If
 Else
   Set XmlAds=Server.CreateObject("Msxml2.FreeThreadedDOMDocument" & MsxmlVersion)
   XmlAds.appendChild(XmlAds.createElement("xml"))
 End If
这段,把变成红色的这一行注释掉.
在清除服务器缓存,就行了.

或者:

在inc/dv_clsother.asp里
找到
Set proc = Application(Dvbbs.CacheName & "_showtextads_"& Dvbbs.SkinID).createProcessor()
在其前面增加一行
XmlAds.documentElement.removeChild(XmlAds.documentElement.childNodes.item(0))  

 


 

09-30-2007更新

删除文字“国内使用量最大的动网论坛”最新方法!

说明:因为dvbbs7.1.0sp1114后的版本,在原程序上改动比较大,所以,以前提供的教程就不可用,现在本站提供最新、最全、最简单的删除方法:

步骤如下:

1、用记事本打开根目录下文件:Loadservoces.asp

用查找方式找到:

Application(Dvbbs.CacheName & "_TextAdservices").documentElement.appendChild( Application(Dvbbs.CacheName & "_TextAdservices").createNode(1,"text","")).text="<iframe src="""&Dvbbs_Server_Url&"dvbbs/DvDefaultTextAd.asp"" height=""23"" width=""100%"" marginwidth=""0"" marginheight=""0"" hspace=""0"" vspace=""0"" frameborder=""0"" scrolling=""no""></iframe>"


直接删除这行代码

2、接着查找:

xmlserverurl="http://server.dvbbs.net/dvbbs/Dv_xmlservices.asp"



直接删除这行代码

3、保存上传

4、进入后台,更新服务器缓存!

DVBBS 8.0去掉“国内使用量最大的动网论坛”文字的方法

1、用记事本打开论坛根目录下文件:Loadservoces.asp

用查找方式找到:
以下为引用的内容:
Application(Dvbbs.CacheName & "_TextAdservices").documentElement.appendChild( Application(Dvbbs.CacheName & "_TextAdservices").createNode(1,"text","")).text="<iframe src="""&Dvbbs_Server_Url&"dvbbs/DvDefaultTextAd.asp"" height=""23"" width=""100%"" marginwidth=""0"" marginheight=""0"" hspace=""0"" vspace=""0"" frameborder=""0"" scrolling=""no""></iframe>"


在前面加单引号“'”注释掉或直接删除这行代码,修改改后代码如下:
以下为引用的内容:
'Application(Dvbbs.CacheName & "_TextAdservices").documentElement.appendChild( Application(Dvbbs.CacheName & "_TextAdservices").createNode(1,"text","")).text="<iframe src="""&Dvbbs_Server_Url&"dvbbs/DvDefaultTextAd.asp"" height=""23"" width=""100%"" marginwidth=""0"" marginheight=""0"" hspace=""0"" vspace=""0"" frameborder=""0"" scrolling=""no""></iframe>"




2、接着查找:



xmlserverurl=http://server.dvbbs.net/dvbbs/Dv_xmlservices.asp



在前面加单引号“'”注释掉或直接删除这行代码,修改后代码如下:

'xmlserverurl=http://server.dvbbs.net/dvbbs/Dv_xmlservices.asp

3、保存后上传到服务器覆盖原来的Loadservoces.asp文件

4、进入管理后台,点“管理首页”,将右边的滚动条往下拉,找到“论坛管理快捷方式”下的“更新服务器缓存”,点击后更新服务器缓存即可!

from:asp学习网/title:去掉dvbbs广告“国内使用量最大的动网论坛”的方法/ time:2006-12-10 23:43:52

本文主题去掉dvbbs广告“国内使用量最大的动网论坛”的方法

asp教程 ©2006-2007 aspxuexi.com | 关于站点 | 版权隐私 | 站内搜索
复制或者翻版 请于夜间进行