Are you using NT authentification on your website? If you aren't, replace the content of
your inc_privatemessage.asp with the following (don't forget to keep a backup of
your original inc_privatemessage.asp):
<%
' Uncomment the following for the Deluxe Version
Response.Write " <table width=""150"" border=""0"" cellspacing=""0"" cellpadding=""0"">" & vbNewLine & _
" <tr>" & vbNewLine & _
" <td bgcolor=""" & strTableBorderColor & """ valign=""top"">" & vbNewLine & _
" <table width=""100%"" border=""0"" cellspacing=""1"" cellpadding=""4"" align=""center"">" & vbNewLine & _
" <tr>" & vbNewLine & _
" <td align=""center"" bgcolor=""" & strCategoryCellColor & """><b><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """ color=""" & strCategoryFontColor & """>Private Messages</font></b></td>" & vbNewLine & _
" </tr>" & vbNewLine & _
" <tr>" & vbNewLine & _
" <td bgcolor=""" & strForumCellColor & """ valign=""top"">" & vbNewLine & _
" <table border=""0"" cellpadding=""6"" cellspacing=""0"" width=""90%"" align=""center"">" & vbNewLine & _
" <tr valign=""top"">" & vbNewLine & _
" <td valign=""top""><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """ color=""" & strForumFontColor & """>" & vbNewLine
Response.Write "<table width=""150"" cellpadding=""0"" cellspacing=""0"" border=""0"">" & VbCrlf & _
"<tr>" & VbCrlf & _
"<td valign=""top"" align=""center"" bgcolor=" & strForumCellColor & " width=""100%"">"
if trim(strDBNTUserName) <> "" and trim(Request.Cookies(strUniqueID & "User")("Pword")) <> "" then
Dim strSql
' Get Private Message count for display on Default.asp
if strDBType = "access" then
strSqL = "SELECT count(M_TO) as [pmcount] "
else
strSqL = "SELECT count(M_TO) as pmcount "
end if
strSql = strSql & " FROM " & strMemberTablePrefix & "MEMBERS , " & strTablePrefix & "PM "
strSql = strSql & " WHERE " & strMemberTablePrefix & "MEMBERS.M_NAME = '" & strDBNTUserName & "'"
strSql = strSql & " AND " & strMemberTablePrefix & "MEMBERS.MEMBER_ID = " & strTablePrefix & "PM.M_TO "
strSql = strSql & " AND " & strTablePrefix & "PM.M_READ = 0 "
Dim rsPM
Set rsPM = my_Conn.Execute(strSql)
pmcount = rsPM("pmcount")
rsPM.Close
set rsPM = Nothing
if pmcount >=1 then
Response.Write "<a HREF=""" & strForumURL & "pm_view.asp""><img SRC=""" & strImageURL & "icon_pm_new2.gif"" border=""0"" hspace=""1"" vspace=""0"" WIDTH=""140"" HEIGHT=""36"" ALT=""New Private Message!"" align=""center""></a>"
else
Response.Write "<a HREF=""" & strForumURL & "pm_view.asp""><img SRC=""" & strImageURL & "icon_pm2.gif"" border=""0"" hspace=""1"" vspace=""0"" WIDTH=""140"" HEIGHT=""36"" align=""center"" ALT=""PM Inbox""></A>"
end if
end if
Response.Write "</td>" & VbCrlf & _
"</tr>" & VbCrlf & _
"</table>" & vbCrlf
'Uncomment the rest for Deluxe Version.
Response.Write "</td>" & VbCrlf & _
"</tr>" & VbCrlf & _
"</table>" & vbCrlf & _
"</td>" & VbCrlf & _
"</tr>" & VbCrlf & _
"</table>" & vbCrlf & _
"</td>" & VbCrlf & _
"</tr>" & VbCrlf & _
"</table>" & vbCrlf
%>