Print Page | Close Window

Req: Private Messanging Monitor

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums Modifications
Forum Description: Mod's and Add-on's for Web Wiz Forums.
URL: https://forums.webwiz.net/forum_posts.asp?TID=22942
Printed Date: 29 March 2026 at 10:25am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Req: Private Messanging Monitor
Posted By: balearicjobs
Subject: Req: Private Messanging Monitor
Date Posted: 20 March 2007 at 1:06pm
Hi all
 
I just wondered if it was possible to have a secured screen which shows all PM messages on the SQL database.
 
I run a fairly large forum (around 12,000 members) and its about working overseas, there is occasionally discussion about illegal activity that I would prefer to not have on my website and server, for practical as well as personal ethics. Of course when it is posted on the message board I am able to do something about it and enforce the rules of the site, which the vast majority of my members seem to find reasonable and helpful. Unfortunetly, I cannot current see private messages, so material that I would prefer not to be there, may well be.
 
I advise all users that private messages may be monitored, and I don't regard it personally as an invasion of privacy as I don't report that it an exclusive way to communicate and advise the use of personal email for that purpose.
 
So, I know that it is possible to read private messages if you have an Access database set up, simply by viewing the database, however would it be possible to have a admin screen that would format the messages onto one readable online ASP page from an SQL database? Ideally, showing maybe just the first line of text, with the option to expand?
 
Thank you for your help!


-------------
Thanks for your help!!!
Kind Regards
Rob,
http://www.balearic-jobs.com" rel="nofollow - Balearic Jobs
Helping young people find seasonal work in the Balearic Islands, including vacancie



Replies:
Posted By: sarto
Date Posted: 10 April 2008 at 2:29pm
yes, it's very simply
 

<!--#include file="common.asp" -->
<%
'open my database
strProvider="DRIVER=Microsoft Access Driver (*.mdb); DBQ=" & ("*****\mdb-database\******.mdb")
set dbrecordset = Server.CreateObject("ADODB.Recordset")
 set dbrecordset2 = Server.CreateObject("ADODB.Recordset")
SQL_QUERY="SELECT * from tblPMMessage"
     dbrecordset.open SQL_Query, strProvider, 1, 2
dbrecordset.movefirst
do while not dbrecordset.eof
 sql_query2="select * from tblAuthor where Author_ID="& dbrecordset("From_ID")
      dbrecordset2.open SQL_Query2, strProvider, 1, 2 
  MessaggioDa=dbrecordset2("Username")
      dbrecordset2.close
 sql_query2="select * from tblAuthor where Author_ID="& dbrecordset("Author_ID")
      dbrecordset2.open SQL_Query2, strProvider, 1, 2 
  MessaggioA=dbrecordset2("Username")
      dbrecordset2.close
%>
From -> <%=MessaggioDa%>&nbsp;&nbsp;&nbsp;&nbsp;To -> <%=MessaggioA%><br>
Subject: <%=dbrecordset("PM_Tittle")%><br>
Message:<br>
<%=dbrecordset("PM_Message")%>
<hr></hr><p>
<%
dbrecordset.movenext
loop
dbrecordset.close
%>
 
That's ONLY show all PM without any grphics theme or similar, it's only text.
If you know ASP language, you don't have problems for update it.


Posted By: JonnoB
Date Posted: 30 September 2008 at 7:05pm

I did something similar..  I copied the pm_inbox.asp and renamed it pm_admin_inbox.asp.  I then added two items to the array for the GetRecord and changed the SQL statement to:


'Initlise the sql statement
strSQL = "SELECT t1.PM_ID " & _
",t1.From_ID AS SenderID " & _
",t1.PM_Tittle " & _
",t1.PM_Message_date " & _
",t1.Read_Post " & _
",t3.Username AS SenderName " & _
",t1.Author_ID AS RecipientID " & _
",t2.Username AS RecipientName " & _
"FROM tblPMMessage t1 " & _
"JOIN tblAuthor t2 " & _
"ON t2.Author_ID=t1.Author_ID " & _
"JOIN tblAuthor t3 " & _
"ON t3.Author_ID=t1.From_ID " & _
"ORDER BY t1.PM_Message_date DESC;"
 
Of course, I added another column to the table to show the recipient name (and link to the userid just like with the sender).  To prevent accidental use by others, just do a check in the script that the user is an admin otherwise redirect them.  By the way, I redirect the link the PM to another copy of the pm_message.asp and call it pm_admin_message.asp and remove the extra stuff, check to be sure the user is an admin and remove the items like send email notifications, mark message as read, etc.
 
Thus, I now have the ability as admin to review all PMs sent to anyone.  Be sure that if you do this, you warn your users of such as this would otherwise be an invasion of privacy (IMO).


Posted By: WebWiz-Bruce
Date Posted: 01 October 2008 at 8:04am
Reading Private Messages is not a built in option as many people regard this as an invasion of privacy.

Have have seen very large forums with over 200 active users at all times and 100's of posts each day loose an entire community to a new forum just because there have been rumours of Private Messages being read.


-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: cms1978
Date Posted: 17 March 2009 at 7:11am
how did you get to read members messages? is this in the dolphin software?

did you just paste this sql file in and it changed it?





Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net