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 Messages....
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

redbrad0
Advanced Member

USA
3725 Posts

Posted - 05 April 2001 :  17:59:09  Show Profile  Visit redbrad0's Homepage  Send redbrad0 an AOL message
This has to do with the private messages mod, but not really a problem, just me trying to make this program work better for me.

When a message is deleted from the inbox it uses this code....


strSqL = "UPDATE " & strMemberTablePrefix & "Private_Messages "
strSql = strSql & "SET " & strMemberTablePrefix & "Private_Messages.M_OUTBOX = 0 " & _
"WHERE M_ID IN (" & strRemoveList & ")"
my_Conn.Execute (strSql)


strRemoveList has the values set as "1, 45, 23, 43" or which ever message is deleted.

I changed the code so that when the message is deleted, it actually doesnt delete it but puts the date it was deleted. here is that code


strSqL = "UPDATE " & strMemberTablePrefix & "Private_Messages "
strSql = strSql & "SET " & strMemberTablePrefix & "Private_Messages.M_OUTBOX = 0 " & _
strSql = strSql & " , " & strMemberTablePrefix & "Private_Messages.M_SENDER_DELETE = '" & DateToStr(strForumTimeAdjust) & "' "
strSql = strSql & "WHERE M_ID IN (" & strRemoveList & ")"
my_Conn.Execute (strSql)


now what i am trying to do is run a loop thru every file that was added the date it was deleted to see if the other person has deleted it. if they have deleted it then it will completely delete it. can anyone help out with this code? if there was a way to get each message id individualy i could do it, but not sure when its in this string.

THANKS

Brad

redbrad0
Advanced Member

USA
3725 Posts

Posted - 05 April 2001 :  18:14:46  Show Profile  Visit redbrad0's Homepage  Send redbrad0 an AOL message
nevermind i got it....

just in case you wanted to know..


strSql = "DELETE FROM " & strMemberTablePrefix & "Private_Messages "
strSql = strSql & "WHERE M_ID IN (" & strDeleteList & ") "
strSql = strSql & "AND " & strMemberTablePrefix & "Private_Messages.M_SENDER_DELETE <> ''"
my_Conn.Execute (strSql)


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