Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Req: Private Messanging Monitor
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Req: Private Messanging Monitor

 Post Reply Post Reply
Author
balearicjobs View Drop Down
Groupie
Groupie
Avatar

Joined: 13 July 2002
Location: United Kingdom
Status: Offline
Points: 86
Post Options Post Options   Thanks (0) Thanks(0)   Quote balearicjobs Quote  Post ReplyReply Direct Link To This Post Topic: Req: Private Messanging Monitor
    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,
Balearic Jobs
Helping young people find seasonal work in the Balearic Islands, including vacancie
Back to Top
sarto View Drop Down
Newbie
Newbie


Joined: 23 March 2007
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote sarto Quote  Post ReplyReply Direct Link To This Post 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.


Edited by sarto - 10 April 2008 at 2:35pm
Back to Top
JonnoB View Drop Down
Newbie
Newbie
Avatar

Joined: 11 July 2005
Location: United States
Status: Offline
Points: 14
Post Options Post Options   Thanks (0) Thanks(0)   Quote JonnoB Quote  Post ReplyReply Direct Link To This Post 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).
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
cms1978 View Drop Down
Newbie
Newbie


Joined: 17 March 2009
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote cms1978 Quote  Post ReplyReply Direct Link To This Post 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?


Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.