蓝雨 发表于 2011-5-8 09:44:10

动网论坛游客只能看到帖子的部分内容修改方法

1、打开dispbbs.asp文件,找到: If InStr(Ubblists,",39,") > 0Then   
TPL_Echo Dvbbs.ChkBadWords( Dv_ubb.Dv_UbbCode(G_ItemList(4, G_Floor),i,1,0) )
Else   
TPL_Echo Dvbbs.ChkBadWords( Dv_ubb.Dv_UbbCode(G_ItemList(4, G_Floor),i,1,1) )

End If
修改成 If InStr(Ubblists,",39,") > 0Then
   dim body
   If Dvbbs.userid=0 then
response.write"<font color=#AAAAAA size=4px>您还没有登陆,欲知全文内容,请选择<a href=reg.asp><font color=red size=4px>[注册]</font></a>或者<a href=login.asp><font color=blue size=4px>[登陆]</font></a>。</font>"
response.write"<hr>"
response.write"文章简介:"
body=cstr(len(Dvbbs.ChkBadWords( Dv_ubb.Dv_UbbCode(G_ItemList(4, G_Floor),i,1,0) )))
j=body/3'取文章的几分之几
TPL_Echo left(Dvbbs.ChkBadWords( Dv_ubb.Dv_UbbCode(G_ItemList(4, G_Floor),i,1,0) ),j)
Else
    TPL_Echo Dvbbs.ChkBadWords( Dv_ubb.Dv_UbbCode(G_ItemList(4, G_Floor),i,1,0) )
    End If
   Else
   If Dvbbs.userid=0 then
response.write"<font color=#AAAAAA size=4px>您还没有登陆,欲知全文内容,请选择<a href=reg.asp><font color=red size=4px>[注册]</font></a>或者<a href=login.asp><font color=blue size=4px>[登陆]</font></a>。</font>"
response.write"<hr>"
response.write"文章简介:"
body=cstr(len(Dvbbs.ChkBadWords( Dv_ubb.Dv_UbbCode(G_ItemList(4, G_Floor),i,1,1) )))
j=body/3'取文章的几分之几
TPL_Echo left(Dvbbs.ChkBadWords( Dv_ubb.Dv_UbbCode(G_ItemList(4, G_Floor),i,1,1) ),j)
Else
    TPL_Echo Dvbbs.ChkBadWords( Dv_ubb.Dv_UbbCode(G_ItemList(4, G_Floor),i,1,1) )
    End If
   End If2、打开TopicOther.asp文件,找到:
**** Hidden Message *****

hnabv 发表于 2011-5-11 19:12:11

页: [1]
查看完整版本: 动网论坛游客只能看到帖子的部分内容修改方法