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

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/Code)
 MOD: Topic Sorting & Alternate Paging Style
 New Topic  Topic Locked
 Printer Friendly
Previous Page
Author Previous Topic Topic Next Topic
Page: of 6

work mule
Senior Member

USA
1358 Posts

Posted - 17 August 2001 :  18:45:45  Show Profile
You'll see where I inserted the code.

This should work. If it doesn't, then you may have to make sure that both variables are converted to numbers for comparison purposes.


********** Mine looks like: ----------------------------------------------------------------

<%
' ### TOPIC REVERSE MOD ###
' Commented out so you could see where it was originally.
' if mypage = 1 then
' Call GetFirst()
' end if
' ### TOPIC REVERSE MOD ###

rsTopic.close
set rsTopic = Nothing

'## Forum_SQL
strSql = "UPDATE " & strActivePrefix & "TOPICS "
strSql = strSql & " SET " & strActivePrefix & "TOPICS.T_VIEW_COUNT = (" & strActivePrefix & "TOPICS.T_VIEW_COUNT + 1) "
strSql = strSql & " WHERE (" & strActivePrefix & "TOPICS.TOPIC_ID = " & Topic_ID & ");"

my_conn.Execute (strSql)

if rsReplies.EOF or rsReplies.BOF then '## No replies found in DB
Response.Write ""
else
intI = 0
howmanyrecs = 0
rec = 1

do until rsReplies.EOF or (mypage = 1 and rec > CInt(strPageSize)) or (mypage > 1 and rec > CInt(strPageSize)) '**

Reply_Content = rsReplies("R_MESSAGE")
if intI = 0 then
CColor = strAltForumCellColor
else
CColor = strForumCellColor
end if
%>

********** Mine looks like: ----------------------------------------------------------------

<%
rsReplies.MoveNext
intI = intI + 1
if intI = 2 then
intI = 0
end if
rec = rec + 1
loop
end if

' ### TOPIC REVERSE MOD ###
if (mypage = maxpages) OR (maxpages="") then
Call GetFirst()
end if
' ### TOPIC REVERSE MOD ###

%>
</table></td>
</tr>
<tr>
<td colspan="2">
<table border="0" width="100%">
<tr>
<td>
<% if maxpages > 1 then %>
<table border=0>
<tr>
<td valign="top"><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>"><b>Topic is <% =maxpages %> Pages Long: </font></td>
<td valign="top"><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>"><% Call Paging() %></font></td>
</tr>
</table>
<% else %>
<td valign="top"> </td>
<% end if %>
</td>
<td align="right" nowrap>
<% if (AdminAllowed = 1) then %>
<% call AdminOptions() %>
<% else %>

<% end if %>
</td>
</tr>
</table></td>
</tr>
</table>
</div>

<table width="100%">
<tr>
<td align="center" valign="top" width="70%"><% Call PostingOptions() %></td>
<td align="center" valign="top" width="30%"><!--#INCLUDE FILE="inc_jump_to.asp" --></td>
</tr>
</table>

<%


********** END: ----------------------------------------------------------------


Go to Top of Page

Adul
Starting Member

37 Posts

Posted - 02 September 2001 :  03:40:05  Show Profile  Visit Adul's Homepage  Send Adul an AOL message  Send Adul an ICQ Message
I can not download this file. Anyone still have it on them?



Go to Top of Page
Page: of 6 Previous Topic Topic Next Topic  
Previous Page
 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.11 seconds. Powered By: Snitz Forums 2000 Version 3.4.07