In active.asp find:
Response.Write getCurrentIcon(strIconFolderUnmoderated,"Topic Not Moderated","hspace=""0""") & "</a>" & vbNewline
elseif Topic_Status = 3 then
HeldFound = "Y"
Response.Write getCurrentIcon(strIconFolderHold,"Topic on Hold","hspace=""0""") & "</a>" & vbNewline
Look for the following lines (appx 490-497):
' DEM --> Added code for topic moderation
if Topic_Status = 2 then
UnApprovedFound = "Y"
Response.Write getCurrentIcon(strIconFolderUnmoderated,"Topic Not Moderated","hspace=""0""")
elseif Topic_Status = 3 then
HeldFound = "Y"
Response.Write getCurrentIcon(strIconFolderHold,"Topic on Hold","hspace=""0""")
' DEM --> end of code Added for topic moderation
Below those, insert these:
' ## Contributed Below
elseif intPart = 1 then
Response.Write getCurrentIcon(strIconFolderContributed,"Contributed","hspace=""0""")
' ## Contributed Above
Find:
if canView then
if ModerateAllowed = "Y" and Topic_UReplies > 0 then
Topic_Replies = Topic_Replies + Topic_UReplies
end if
Below those, insert these:
' ## Contributed Below
intPart=0
strSqlP="SELECT R_AUTHOR, TOPIC_ID FROM " & strTablePrefix & "REPLY WHERE TOPIC_ID=" & TOPIC_ID & " AND R_AUTHOR=" & MemberID
Set rsPart=my_Conn.Execute(strSqlP)
If not rsPart.EOF Then
intPart=1
rsPart.Close
End If
Set rsPart=Nothing
strSqlP="SELECT T_AUTHOR, TOPIC_ID FROM " & strTablePrefix & "TOPICS WHERE TOPIC_ID=" & TOPIC_ID & " AND T_AUTHOR=" & MemberID
Set rsPart=my_Conn.Execute(strSqlP)
If not rsPart.EOF Then
intPart=1
rsPart.Close
End If
Set rsPart=Nothing
' ## Contributed Above
Find:
Response.Write " " & getCurrentIcon(strIconFolderLocked,"Locked Topic","align=""absmiddle""") & " Locked topic.<br />" & vbNewLine
Below those, insert these:
' ## Contributed Below
Response.Write" " & getCurrentIcon(strIconFolderContributed,"Contributed","align=""absmiddle""") & " Topics you have contributed to.<br />" & vbNewLine
' ## Contributed Above
I haven't included line numbers as a lot of my code has been modified so the line numbers would be irrelevant to many