Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/O Code)
 To: Richard Kinser & Slemieux......
 New Topic  Topic Locked
 Printer Friendly
Next Page
Author Previous Topic Topic Next Topic
Page: of 4

Ribkick
Junior Member

USA
296 Posts

Posted - 08 May 2001 :  18:53:26  Show Profile
Hi Richard and Slemieux, your work on the PM MOD is terrific! Just installed it with no hitches, well done.

I do have one concern however. Is there a way to set it to prune any messages over a certain amount of days? I can see this being a huge problem with members that don't do any housekeeping. In time our server would be filled with very old, defunct messages.

Perhaps there's a way to for an Admin to delete/edit a members in/out box if nothing else. Not having Access 2000 on my computer, I can't get to the database to edit it.

Thanks again, terrific feature and very well written and executed.



Edited by - ribkick on 08 May 2001 19:17:03

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 08 May 2001 :  19:09:21  Show Profile
I am not the one who did that MOD. slemieux is the author of that MOD. I have just been making a few changes to it here and there to keep it compatible with the forum as the forum changes.

It probably wouldn't be very hard to either write a new admin interface for deleting PMs that are say 30 days old or something like that. Or it could probably be added to admin_count.asp. Either way, it's something that would have to be manually run by the Admin.
Go to Top of Page

Ribkick
Junior Member

USA
296 Posts

Posted - 08 May 2001 :  19:14:58  Show Profile
I wouldn't mind running it once a week or month but it's way beyond my expertice to write the code. Should I direct my questions to Slemieux for this sort of thing?

This does seem like it would be a hidden monster filling the database though.

Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 08 May 2001 :  19:27:31  Show Profile
I will look into doing it.
Go to Top of Page

swatijain
Starting Member

48 Posts

Posted - 08 May 2001 :  19:35:45  Show Profile
Hi

Just a suggestion...if you want you can access your access database from the web.

Download this ASP Application: http://www.tableeditor.com/

I have used it for SQL Server and I am impressed with it. It supports Access 2000, so you should be fine.

-Swati

Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 08 May 2001 :  20:07:54  Show Profile
Excellent suggestion. I use the same thing for accessing my databases that are online also.
Go to Top of Page

Ribkick
Junior Member

USA
296 Posts

Posted - 08 May 2001 :  20:48:03  Show Profile
Swat, I tried that link 3 times and got the same "can't find website" error but will try again later during a less busy time.

Richard, if you could look into an addional mod/add-on for the PM mod to prune messages, that would be, in my opinion, a very valuable asset to this otherwise excellent addition to our forum. Thanks to both of you for your help.

Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 08 May 2001 :  21:00:57  Show Profile
here is the URL for TableEditor: http://www.2enetworx.com/dev/projects/tableeditor.asp
Go to Top of Page

Aznknight
Senior Member

USA
1373 Posts

Posted - 08 May 2001 :  21:32:20  Show Profile  Send Aznknight an AOL message  Send Aznknight an ICQ Message
the private message mod is one of my favorite mods too !

I wrote some simple codes that does the pruning you're talking about like awhile back and thought i've released it here already. It might be buried somewhere here or i might have forgot to post it up. What it does is it deletes messages that have been read and are older than 30 days. unread messages will be left alone.

here is the code again for ya:
add this to pm_view.asp around line 62:

'Delete messages past 30 days old
strMessageDays = datetostr(dateAdd("d",-30,strForumTimeAdjust))

SQL = "DELETE FROM " & strTablePrefix & "PM WHERE M_TO = " & strUserMemberID & " AND M_SENT < '" & strMessageDays & "' AND M_READ = 1"
my_Conn.Execute SQL

SQL = "DELETE FROM " & strTablePrefix & "PM WHERE M_FROM = " & strUserMemberID & " AND M_SENT < '" & strMessageDays & "' AND M_READ = 1"
my_Conn.Execute SQL


right after this part:

'#######################################################################
'####### Right now if a user doesn't have an OUTBOX preference #######
'####### set in their cookie it will default to double #######
'####### #######
'####### If you want to change it, just change "double" below #######
'####### to either "single" or "none" #######
'#######################################################################

Response.Cookies(strCookieURL & "paging")("outbox") = "double"
Response.Cookies(strCookieURL & "paging").Expires = dateAdd("d", 360, strForumTimeAdjust)
end if


- Alan
www.iamviet.com
www.calvsa.net
Snitz Resource
Go to Top of Page

dayve
Forum Moderator

USA
5820 Posts

Posted - 08 May 2001 :  22:36:51  Show Profile  Visit dayve's Homepage
Aznknight: I get an error with that code

Richard Kinser: Have you gotten the compact feature to work with table editor?

Dayve

Edited by - dayve on 08 May 2001 22:37:14
Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 08 May 2001 :  22:53:24  Show Profile
dayve,

I've never tried using it.
Go to Top of Page

Aznknight
Senior Member

USA
1373 Posts

Posted - 09 May 2001 :  01:39:04  Show Profile  Send Aznknight an AOL message  Send Aznknight an ICQ Message
quote:

Aznknight: I get an error with that code

Richard Kinser: Have you gotten the compact feature to work with table editor?

Dayve

Edited by - dayve on 08 May 2001 22:37:14



um, what was the error? it's more constructive if that is displayed as well as just saying you got an error.

- Alan
www.iamviet.com
www.calvsa.net
Snitz Resource
Go to Top of Page

work mule
Senior Member

USA
1358 Posts

Posted - 09 May 2001 :  01:57:25  Show Profile
A question to pose to you guys about "pruning".

Are your members aware of the fact that you are/will be deleting private messages over 30 days old? Have you stated this policy anywhere (like on the PM pages themselves)? I'd hate for anyone to have any angry members.

Go to Top of Page

Aznknight
Senior Member

USA
1373 Posts

Posted - 09 May 2001 :  02:14:38  Show Profile  Send Aznknight an AOL message  Send Aznknight an ICQ Message
yeah i stated this in bold red letters to the left of the pm icons on the pm_view.asp page.

- Alan
www.iamviet.com
www.calvsa.net
Snitz Resource

Edited by - aznknight on 09 May 2001 02:20:27
Go to Top of Page

wii
Free ASP Hosts Moderator

Denmark
2632 Posts

Posted - 09 May 2001 :  04:16:17  Show Profile
any chance of releasing the PM popup code when new PM´s are received?

Go to Top of Page

DarlingBri
Junior Member

United Kingdom
378 Posts

Posted - 09 May 2001 :  09:05:05  Show Profile  Visit DarlingBri's Homepage
Ooooh! What a good idea! Someone post the error code so Alan can fix it and the less adventurous among us can use it!

*****
"Bother," said Pooh, as Piglet was assimilated by the Borg.
Go to Top of Page
Page: of 4 Previous Topic Topic Next Topic  
Next Page
 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