I have updated the ZIP file for new MOD installations.
If you already have this installed, then make these few changes:
Around line 131 you will see:
set rsForumLoop = Server.CreateObject("ADODB.Recordset")
set rsTopicLoop = Server.CreateObject("ADODB.Recordset")
Change it to:
set rsForumLoop = Server.CreateObject("ADODB.Recordset")
set rsForumLoop2 = Server.CreateObject("ADODB.Recordset")
set rsTopicLoop = Server.CreateObject("ADODB.Recordset")
Around line 188 you will see:
StrSql = "SELECT DISTINCT S.CAT_ID, CAT_NAME, CAT_SUBSCRIPTION, CAT_ORDER, SUB_EMAIL, S.TOPIC_ID, S.FORUM_ID " &_
Change it to:
StrSql = "SELECT DISTINCT S.CAT_ID, CAT_NAME, CAT_SUBSCRIPTION, CAT_ORDER " &_
Around line 224 you will see:
StrSql = "SELECT DISTINCT S.FORUM_ID, F_SUBJECT, F_SUBSCRIPTION, F_ORDER, F_LAST_POST, F_LAST_POST_AUTHOR, SUB_EMAIL, S.TOPIC_ID, S.CAT_ID " &_
Change it to:
StrSql = "SELECT DISTINCT S.FORUM_ID, F_SUBJECT, F_SUBSCRIPTION, F_ORDER " &_
Around line 399 you will see:
elseif Level = "FORUM" then
if IsNull(rsForumLoop("F_LAST_POST_AUTHOR")) then
strLastAuthor = ""
else
strLastAuthor = "<br>by: "
if strUseExtendedProfile then
strLastAuthor = strLastAuthor & "<a href=""pop_profile.asp?mode=display&id="& ChkString(rsForumLoop("F_LAST_POST_AUTHOR"), "JSurlpath") & """>"
else
strLastAuthor = strLastAuthor & "<a href=""JavaScript:openWindow2('pop_profile.asp?mode=display&id=" & ChkString(rsForumLoop("F_LAST_POST_AUTHOR"), "JSurlpath") & "')"">"
end if
strLastAuthor = strLastAuthor & ChkString(getMemberName(rsForumLoop("F_LAST_POST_AUTHOR")), "display") & "</a>"
end if
%>
<td bgcolor="<% =strForumCellColor %>" valign="center" align="center" nowrap width=40%><font face="<% =strDefaultFontFace %>" color="<% =strForumFontColor %>" size="<% =strFooterFontSize %>"><b><% =ChkDate(rsForumLoop("F_LAST_POST")) %></b> <% =ChkTime(rsForumLoop("F_LAST_POST")) %><%=strLastAuthor%></font></td>
<%
else
Change it to:
elseif Level = "FORUM" then
StrSql = "SELECT F_LAST_POST, F_LAST_POST_AUTHOR, SUB_EMAIL, S.TOPIC_ID, S.CAT_ID, S.FORUM_ID "
StrSql = StrSql & " FROM " & strTablePrefix & "FORUM F, " & strTablePrefix & "SUBSCRIPTIONS S" & _
" WHERE S.FORUM_ID = F.FORUM_ID " & _
" AND S.CAT_ID = " & CatID
if Mode = "" then
StrSql = StrSql & " AND S.MEMBER_ID = " & MemberID
end if
StrSql = StrSql & " ORDER BY F_ORDER, F_SUBJECT "
rsForumLoop2.Open StrSql, my_Conn, 3
if rsForumLoop2.EOF or rsForumLoop2.BOF then
' should not happen
else
if IsNull(rsForumLoop2("F_LAST_POST_AUTHOR")) then
strLastAuthor = ""
else
strLastAuthor = "<br>by: "
if strUseExtendedProfile then
strLastAuthor = strLastAuthor & "<a href=""pop_profile.asp?mode=display&id="& ChkString(rsForumLoop2("F_LAST_POST_AUTHOR"), "JSurlpath") & """>"
else
strLastAuthor = strLastAuthor & "<a href=""JavaScript:openWindow2('pop_profile.asp?mode=display&id=" & ChkString(rsForumLoop2("F_LAST_POST_AUTHOR"), "JSurlpath") & "')"">"
end if
strLastAuthor = strLastAuthor & ChkString(getMemberName(rsForumLoop2("F_LAST_POST_AUTHOR")), "display") & "</a>"
end if
end if
%>
<td bgcolor="<% =strForumCellColor %>" valign="center" align="center" nowrap width=40%><font face="<% =strDefaultFontFace %>" color="<% =strForumFontColor %>" size="<% =strFooterFontSize %>"><b><% =ChkDate(rsForumLoop2("F_LAST_POST")) %></b> <% =ChkTime(rsForumLoop2("F_LAST_POST")) %><%=strLastAuthor%></font></td>
<%
else
Around line 445 you will see:
elseif level="FORUM" then
if cint(rsForumLoop("SUB_EMAIL")) = 1 then
response.write "<a href=""javascript:subemail(0," & rsForumLoop("CAT_ID") & "," & rsForumLoop("FORUM_ID") & "," & rsForumLoop("TOPIC_ID") & ");""><img src=""icon_email_no.gif"" alt=""Get no email on forum"" border=0></a>"
else
response.write "<a href=""javascript:subemail(1," & rsForumLoop("CAT_ID") & "," & rsForumLoop("FORUM_ID") & "," & rsForumLoop("TOPIC_ID") & ");""><img src=""icon_email.gif"" alt=""Get email on forum"" border=0></a>"
end if
rsForumLoop2.close
elseif level="CAT" then
if cint(rsCatLoop("SUB_EMAIL")) = 1 then
response.write "<a href=""javascript:subemail(0," & rsCatLoop("CAT_ID") & "," & rsCatLoop("FORUM_ID") & "," & rsCatLoop("TOPIC_ID") & ");""><img src=""icon_email_no.gif"" alt=""Get no email on category"" border=0></a>"
else
response.write "<a href=""javascript:subemail(1," & rsCatLoop("CAT_ID") & "," & rsCatLoop("FORUM_ID") & "," & rsCatLoop("TOPIC_ID") & ");""><img src=""icon_email.gif"" alt=""Get email on category"" border=0></a>"
end if
end if
Change it to:
elseif level="FORUM" then
if cint(rsForumLoop2("SUB_EMAIL")) = 1 then
response.write "<a href=""javascript:subemail(0," & rsForumLoop2("CAT_ID") & "," & rsForumLoop2("FORUM_ID") & "," & rsForumLoop2("TOPIC_ID") & ");""><img src=""icon_email_no.gif"" alt=""Get no email on forum"" border=0></a>"
else
response.write "<a href=""javascript:subemail(1," & rsForumLoop2("CAT_ID") & "," & rsForumLoop2("FORUM_ID") & "," & rsForumLoop2("TOPIC_ID") & ");""><img src=""icon_email.gif"" alt=""Get email on forum"" border=0></a>"
end if
rsForumLoop2.close
elseif level="CAT" then
StrSql = "SELECT F_LAST_POST, F_LAST_POST_AUTHOR, SUB_EMAIL, S.TOPIC_ID, S.CAT_ID, S.FORUM_ID "
StrSql = StrSql & " FROM " & strTablePrefix & "FORUM F, " & strTablePrefix & "SUBSCRIPTIONS S" & _
" WHERE S.FORUM_ID = F.FORUM_ID " & _
" AND S.CAT_ID = " & CatID
if Mode = "" then
StrSql = StrSql & " AND S.MEMBER_ID = " & MemberID
end if
StrSql = StrSql & " ORDER BY F_ORDER, F_SUBJECT "
rsForumLoop2.Open StrSql, my_Conn, 3
if rsForumLoop2.EOF or rsForumLoop2.BOF then
' should not happen
else
if cint(rsCatLoop("SUB_EMAIL")) = 1 then
response.write "<a href=""javascript:subemail(0," & rsCatLoop2("CAT_ID") & "," & rsCatLoop2("FORUM_ID") & "," & rsCatLoop2("TOPIC_ID") & ");""><img src=""icon_email_no.gif"" alt=""Get no email on category"" border=0></a>"
else
response.write "<a href=""javascript:subemail(1," & rsCatLoop2("CAT_ID") & "," & rsCatLoop2("FORUM_ID") & "," & rsCatLoop2("TOPIC_ID") & ");""><img src=""icon_email.gif"" alt=""Get email on category"" border=0></a>"
end if
end if
rsForumLoop2.close
end if
Around 478 you will see:
set rsForumLoop = nothing
Change it to:
set rsForumLoop = nothing
set rsForumLoop2 = nothing
Please let me know if there are any other problems!
Thanks keston!
-Aaron
DOWNLOAD GREAT NEW MODS HERE
Edited by - aaron s. on 14 May 2002 17:04:36