Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: General / Current Version (Old)
 Replying to a topic
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

BlueBrained
Starting Member

5 Posts

Posted - 09 December 2001 :  19:55:56  Show Profile
I was wondering if there is a way to not have every page to a thread load when replying to a topic? For users like myself on dial-up it takes forever!!!!

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 10 December 2001 :  00:45:52  Show Profile
Try this mod:
http://forum.snitz.com/forum/topic.asp?TOPIC_ID=4906

It limits how much of the replies are shown to the number of posts shown on the forum.asp page, before it changes to a next page. This can be set in the Admin Options. The default is 15 I believe.

- David
Go to Top of Page

Nathan
Help Moderator

USA
7664 Posts

Posted - 10 December 2001 :  01:00:10  Show Profile  Visit Nathan's Homepage
Having only recently switched from 56K to Cable, I know what ya mean!

I will make this mod for you if you want.

*Too late tonight, I'll leave myself a sticky note on the monitor for tomarrow afternoon!


-Davio. He is talking about when you hit reply, all the posts in the thread are shown beneath the edit box. This is bad for 56Kers. It also limits thread scalablity.

Nathan Bales - Romans 15:13
-------------------------------

    Test Site | Mod Resource
Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 10 December 2001 :  01:06:54  Show Profile
Ummm, that's what that mod does Nathan. I have it on my forums working ok. And I am also on a 56k modem. Though I'm still not getting 56k speed.

- David
Go to Top of Page

Nathan
Help Moderator

USA
7664 Posts

Posted - 10 December 2001 :  01:13:21  Show Profile  Visit Nathan's Homepage
<edit> your too fast for me Davio
The mod Davio pointed you too looks like the more proper way to do it. (Sorry to misunderstand you before Davio!)
This way should get rid of it all though, if you just want to do that.
</edit>

This is the culpret code right here:

My recomendation is to replace the first 3 lines with

'if strRqMethod = "Reply" or _
'strRqMethod = "TopicQuote" or _
'strRqMethod = "ReplyQuote" then
if false then


This should prevent this section of code from executing, yet not permanently damage your post.asp should it not work.

if strRqMethod = "Reply" or _
strRqMethod = "TopicQuote" or _
strRqMethod = "ReplyQuote" then
%>
</table>
<table border="0" width="100%" align=center>
<table border="0" width="100%" cellspacing="0" cellpadding="0" align="center">
<tr>
<td bgcolor="<% =strTableBorderColor %>">
<table border="0" width="100%" cellspacing="1" cellpadding="4">
<tr>
<td bgcolor="<% =strHeadCellColor %>" colspan="2" align="center"><b><font <% =strDefaultFontFace %> size="<% =strDefaultFontSize %>" color="<% =strHeadFontColor %>">T O P I C     R E V I E W</font></b></td>
</tr>
<%
' DEM --> Added Select of Moderation Fields
strSQL = "SELECT " & strTablePrefix & "CATEGORY.CAT_MODERATION, "
strSQL = strSQL & strTablePrefix & "FORUM.F_MODERATION "
strSQL = strSQL & "FROM " & strTablePrefix & "CATEGORY, " & strTablePrefix & "FORUM "
strSQL = strSQL & " WHERE " & strTablePrefix & "CATEGORY.CAT_ID = " & strRqCatID
strSQL = strSQL & " AND " & strTablePrefix & "FORUM.FORUM_ID = " & strRqForumID
set rsa = my_Conn.Execute (strSql)
' ## Moderators and Admins can see unmoderated posts.
if (mLev = 4) or (chkForumModerator(strRqForumId, strDBNTUserName) = "1") then
Moderation = "N"
else
if strModeration = 1 and rsa("CAT_MODERATION") = 1 and (rsa("F_MODERATION") = 1 or rsa("F_MODERATION") = 3) then
Moderation = "Y"
else
Moderation = "N"
end if
end if
' DEM --> End of Moderation Code

'## Forum_SQL
strSql = "SELECT " & strMemberTablePrefix & "MEMBERS.M_NAME, " & strActivePrefix & "TOPICS.T_MESSAGE "
strSql = strSql & " FROM " & strMemberTablePrefix & "MEMBERS, " & strActivePrefix & "TOPICS "
strSql = strSql & " WHERE " & strMemberTablePrefix & "MEMBERS.MEMBER_ID = " & strActivePrefix & "TOPICS.T_AUTHOR AND "
strSql = strSql & " " & strActivePrefix & "TOPICS.TOPIC_ID = " & strRqTopicID

set rs = my_Conn.Execute (strSql)

Response.Write " <tr>" & vbNewline
Response.Write " <td bgcolor='" & strForumFirstCellColor & "' valign=top width='" & strTopicWidthLeft & "'"
if lcase(strTopicNoWrapLeft) = "1" then
Response.Write " nowrap"
end if
Response.Write "><font color='" & strForumFontColor & "' face='" & strDefaultFontFace & "' size='2'><b>" & ChkString(rs("M_NAME"),"display") & "</b></font></td>" & vbNewline
Response.Write " <td bgcolor='" & strForumCellColor & "' valign='top' width='" & strTopicWidthRight & "'"
if lcase(strTopicNoWrapRight) = "1" then
Response.Write " nowrap"
end if
Response.Write "><font color='" & strForumFontColor & "' face='" & strDefaultFontFace & "' size='2'>" & formatStr(rs("T_MESSAGE")) & "</font></td>" & vbNewline
Response.Write " </tr>" & vbNewline

'## Forum_SQL - Get all replies to Topic from the DB
strSql ="SELECT " & strMemberTablePrefix & "MEMBERS.M_NAME, " & strActivePrefix & "REPLY.R_MESSAGE "
strSql = strSql & " FROM " & strMemberTablePrefix & "MEMBERS, " & strActivePrefix & "REPLY "
strSql = strSql & " WHERE " & strMemberTablePrefix & "MEMBERS.MEMBER_ID = " & strActivePrefix & "REPLY.R_AUTHOR "
strSql = strSql & " AND TOPIC_ID = " & strRqTopicID & " "
' DEM --> Added check for moderation so that only admins and moderators can see the unapproved posts.
if Moderation = "Y" then
strSql = strSql & " AND R_STATUS < 2 " ' Ignore unapproved and rejected posts...
else
strSql = strSql & " AND R_STATUS < 3 " ' Ignore all rejected posts....
end if
strSql = strSql & " ORDER BY " & strActivePrefix & "REPLY.R_DATE"

set rs = Server.CreateObject("ADODB.Recordset")

' rs.cachesize=15
rs.open strSql, my_Conn, 3

strI = 0
if rs.EOF or rs.BOF then
Response.Write ""
else
rs.movefirst
do until rs.EOF
if strI = 0 then
CColor = strAltForumCellColor
else
CColor = strForumCellColor
end if
Response.Write " <TR>" & vbNewline & _
" <TD bgcolor='" & CColor & "' valign='top'" & vbNewline
if lcase(strTopicNoWrapLeft) = "1" then
Response.Write " nowrap"
end if
Response.Write "><b><font color='" & strForumFontColor & "' face='" & strDefaultFontFace & "' size='2'>" & ChkString(rs("M_NAME"),"display") & "</font></b></td>" & vbNewline & _
" <TD bgcolor='" & CColor & "' valign='top'"
if lcase(strTopicNoWrapRight) = "1" then
Response.Write " nowrap"
end if
Response.Write "><font color='" & strForumFontColor & "' face='" & strDefaultFontFace & "' size='2'>" & formatStr(rs("R_MESSAGE")) & "</font></td>" & vbNewline & _
" </tr>" & vbNewline
rs.MoveNext
strI = strI + 1
if strI = 2 then
strI = 0
end if
loop
end if

Response.Write " </table>" & vbNewline & _
" </td>" & vbNewline & _
" </tr>" & vbNewline & _
"</table>" & vbNewline & _
"</font>" & vbNewline
end if


Nathan Bales - Romans 15:13
-------------------------------

    Test Site | Mod Resource


Edited by - Nathan on 10 December 2001 01:20:44
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.3 seconds. Powered By: Snitz Forums 2000 Version 3.4.07