15378720700 QQ:916656313 河南亿恩科技有限公司,专注IDC服务13年,华中地区最大IDC服务商。
新机房优惠活动正在进行中......期待您的加入。
找到文件./FUNCTION/c_system_lib.asp,搜索”定义TGuestBook类”,在这一整段里面,搜索”guestbook.asp”,并替换成”taotao/”,如果不想静态化就替换成”taotao.asp”
大体上替换后的代码是这样的:
[code=vb] j=objRS.PageCount
If j>0 Then
Dim a,b,s,t,intNowPage,strPageBar
s=ZC_BLOG_HOST & "taotao/"
t=""
intNowPage=intPage
strPageBar=GetTemplate("TEMPLATE_B_PAGEBAR")
strPageBar=Replace(strPageBar,"<#pagebar/page/url#>",s)
strPageBar=Replace(strPageBar,"<#pagebar/page/number#>",ZC_MSG285)
Template_PageBar=Template_PageBar & strPageBar
If j>ZC_PAGEBAR_COUNT Then
a=intNowPage
b=intNowPage+ZC_PAGEBAR_COUNT
If a>ZC_PAGEBAR_COUNT Then a=a-1:b=b-1
If b>j Then b=j:a=j-ZC_PAGEBAR_COUNT
Else
a=1:b=j
End If
For i=a to b
s=ZC_BLOG_HOST & "taotao/"& t &"page/"& i &".html"
If i=1 Then
s=ZC_BLOG_HOST & "taotao/"
End If
strPageBar=GetTemplate("TEMPLATE_B_PAGEBAR")
If i=intNowPage then
Template_PageBar=Template_PageBar & "" & i & ""
Else
strPageBar=Replace(strPageBar,"<#pagebar/page/url#>",s)
strPageBar=Replace(strPageBar,"<#pagebar/page/number#>",i)
Template_PageBar=Template_PageBar & strPageBar
End If
Next
s=ZC_BLOG_HOST & "taotao/"& t &"page/"& j &".html"
If j=1 Then
s=ZC_BLOG_HOST & "taotao/"
End If
strPageBar=GetTemplate("TEMPLATE_B_PAGEBAR")
strPageBar=Replace(strPageBar,"<#pagebar/page/url#>",s)
strPageBar=Replace(strPageBar,"<#pagebar/page/number#>",ZC_MSG286)
Template_PageBar=Template_PageBar & strPageBar
If intNowPage=1 Then
Template_PageBar_Previous=""
Else
Template_PageBar_Previous=""&ZC_MSG156&""
End If
If intNowPage=intPageCount Then
Template_PageBar_Next=""
Else
Template_PageBar_Next=""&ZC_MSG155&""
End If[/code]
如果你不想静态化,去你的根目录,将guestbook.asp改名为taotao.asp,任务完成。
如果你准备静态化,在httpd.ini中加入如下代码:
本文出自:亿恩科技【www.enkj.com】
服务器租用/服务器托管中国五强!虚拟主机域名注册顶级提供商!15年品质保障!--亿恩科技[ENKJ.COM]
|