只允许客人看到部分帖子主体内容FOR8.2
<P>1、打开dispbbs.asp文件,找到:</P><P>If InStr(Ubblists,\",39,\") > 0 Then <BR>TPL_EchoDvbbs.ChkBadWords( Dv_ubb.Dv_UbbCode(G_ItemList(4, G_Floor),i,1,0) ) <BR>Else <BR>TPL_EchoDvbbs.ChkBadWords( Dv_ubb.Dv_UbbCode(G_ItemList(4, G_Floor),i,1,1) )</P>
<P>End If<BR> <BR>改成:</P>
<P><FONT color=#ff0000><FONT face=Verdana>If InStr(Ubblists,\",39,\") > 0 Then<BR>dim body<BR>If Dvbbs.userid=0 then<BR>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>\"<BR>response.write\"<hr>\"<BR>response.write\"文章简介:\"<BR>body=cstr(len(Dvbbs.ChkBadWords( Dv_ubb.Dv_UbbCode(G_ItemList(4, G_Floor),i,1,0) )))<BR>j=body/3 \'取文章的几分之几<BR>TPL_Echoleft(Dvbbs.ChkBadWords( Dv_ubb.Dv_UbbCode(G_ItemList(4, G_Floor),i,1,0) ),j)<BR>Else<BR>TPL_EchoDvbbs.ChkBadWords( Dv_ubb.Dv_UbbCode(G_ItemList(4, G_Floor),i,1,0) )<BR>End If<BR>Else<BR>If Dvbbs.userid=0 then<BR>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>\"<BR>response.write\"<hr>\"<BR>response.write\"文章简介:\"<BR>body=cstr(len(Dvbbs.ChkBadWords( Dv_ubb.Dv_UbbCode(G_ItemList(4, G_Floor),i,1,1) )))<BR>j=body/3 \'取文章的几分之几<BR>TPL_Echoleft(Dvbbs.ChkBadWords( Dv_ubb.Dv_UbbCode(G_ItemList(4, G_Floor),i,1,1) ),j)<BR>Else<BR>TPL_EchoDvbbs.ChkBadWords( Dv_ubb.Dv_UbbCode(G_ItemList(4, G_Floor),i,1,1) )<BR>End If<BR>End If</FONT><BR></FONT> <BR>2、打开TopicOther.asp文件,找到: </P>
<P>Templist=Replace(Templist,\"{$body}\",SimJsReplace(dv_ubb.Dv_UbbCode(SQL(3,i),SQL(4,i),1,1)))<BR> <BR>改为:</P>
<P><FONT color=#ff0000>If Dvbbs.userid=0 then <BR>Dvbbs.AddErrCode(6)Dvbbs.Showerr() <BR>Else <BR>Templist=Replace(Templist,\"{$body}\",SimJsReplace(dv_ubb.Dv_UbbCode(SQL(3,i),SQL(4,i),1,1))) <BR>End if</FONT> </P>
<P></P>
<P>3、修改Xhtml无图版 和 Xslt无图版 打开dv_rss.asp文件,找到:</P>
<P><FONT face=Verdana>If InStr(Ubblists,\",39,\") > 0 Then<BR>ChildNode.appendChild(XmlDom.createNode(1,\"description\",\"\")).text = Dv_ubb.Dv_UbbCode(postbody,Cint(ChildNode.getAttribute(\"usergroupid\")),1,0)<BR>Else<BR>ChildNode.appendChild(XmlDom.createNode(1,\"description\",\"\")).text = Dv_ubb.Dv_UbbCode(postbody,Cint(ChildNode.getAttribute(\"usergroupid\")),1,1) <BR>End If</FONT></P>
<P></P>
<P>改为:</P>
<P><FONT face=Verdana color=#ff0000>If InStr(Ubblists,\",39,\") > 0 Then<BR>dim body,j<BR>If Dvbbs.userid=0 then<BR>body=cstr(len(Server.HtmlEnCode(postbody)))<BR>j=body/3<BR>ChildNode.appendChild(XmlDom.createNode(1,\"description\",\"\")).text = \"<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><hr>< br>文章简介:\"&left(Dv_ubb.Dv_UbbCode(postbody,Cint (ChildNode.getAttribute(\"usergroupid\")),1,0),j)<BR>Else<BR>ChildNode.appendChild(XmlDom.createNode(1,\"description\",\"\")).text = Dv_ubb.Dv_UbbCode(postbody,Cint(ChildNode.getAttribute(\"usergroupid\")),1,0)<BR>End If<BR>Else<BR>If Dvbbs.userid=0 then<BR>body=cstr(len(Server.HtmlEnCode(postbody)))<BR>j=body/3<BR>ChildNode.appendChild(XmlDom.createNode(1,\"description\",\"\")).text = \"<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><hr>< br>文章简介:\"&left(Dv_ubb.Dv_UbbCode(postbody,Cint (ChildNode.getAttribute(\"usergroupid\")),1,1),j)<BR>Else<BR>ChildNode.appendChild(XmlDom.createNode(1,\"description\",\"\")).text = Dv_ubb.Dv_UbbCode(postbody,Cint(ChildNode.getAttribute(\"usergroupid\")),1,1) <BR>End If<BR>End If</FONT> </P>
页:
[1]