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: MOD Implementation
 Private Message Problem.
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Laocoon
Starting Member

USA
37 Posts

Posted - 18 July 2001 :  20:52:12  Show Profile  Visit Laocoon's Homepage
I have been having one problem with the Private Messages Mod. I have everything working but the part on the Default forum page. Even if you are logged on it will say:

Log in to check your private messages.

Here is the code that I am using in the file privatemess.asp:

<% ' Get Private Message count for display on Default.asp
dim pmcount
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 "

Set rsPM = my_Conn.Execute(strSql)
if not rsPM.eof then
pmcount = rsPM("pmcount")
else pmcount = 0
end if
rsPM.close
Set rsPM = nothing
%>

<tr>
<td bgcolor="<% =strCategoryCellColor %>" colspan="<% if (strShowModerators = "1") or (mlev = 4 or mlev = 3) then Response.Write("7") else Response.Write("5")%>">
<font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>" color="<% =strCategoryFontColor %>" size="+1"><b>Private Messages</b></font></td>
</tr>
<tr>
<td align="center" bgcolor="<% =strForumCellColor %>" valign="middle">
<% if strDBNTUserName = "" Then %>
<IMG SRC="icon_pmdead.gif">
<% else
if pmcount = 0 then %>
<IMG SRC="icon_pm.gif">
<% end if
if pmcount >= 1 then %>
<IMG SRC="icon_pm_new.gif">
<% end if %>
<% end if %>
</td>
<td valign=top bgcolor="<% =strForumCellColor %>" colspan="<% if (strShowModerators = "1") or (mlev = 4 or mlev = 3) then Response.Write("7") else Response.Write("5")%>"><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>" color="<% =strCategoryFontColor %>"><A HREF="pm_view.asp">Inbox</A></FONT><BR>
<% if strDBNTUserName = "" Then %>
<font face="<% =strDefaultFontFace %>" size="<% =strFooterFontSize %>" color="<% =strForumFontColor %>">
- Log in to check your private messages.
</font>
<% else %>
<font face="<% =strDefaultFontFace %>" size="<% =strFooterFontSize %>" color="<% =strForumFontColor %>"><b>
<% if strAuthType="nt" then %>
<% =strDBNTUserName %> (<% =strDBNTUserName %>)</b>
<% else %>
<% if strAuthType = "db" then %>
<% =strDBNTUserName %></b><% end if %><% end if %> - You have <% if pmcount >=1 then %><font color="<% =strActiveLinkColor %>"><b><% =pmcount %></b></font><% else %><% =pmcount %><% end if %> new private messages.</font>
</td>
</tr>
<% end if %>

I appreciate any help given.


Laocoon
Starting Member

USA
37 Posts

Posted - 20 July 2001 :  09:38:52  Show Profile  Visit Laocoon's Homepage
Anyone with any help on this subject?

Go to Top of Page

Laocoon
Starting Member

USA
37 Posts

Posted - 23 July 2001 :  15:04:25  Show Profile  Visit Laocoon's Homepage
Still looking for a solution to this.

Go to Top of Page

Insane
Starting Member

10 Posts

Posted - 02 August 2001 :  08:50:28  Show Profile
I am having this very same problem !!!

Any one able to help us both ???

Thanks,

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.37 seconds. Powered By: Snitz Forums 2000 Version 3.4.07