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
 Update old users with PM
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

canis
Starting Member

38 Posts

Posted - 25 September 2008 :  09:02:27  Show Profile
We have discovered that users that existed before we installed "Private Messages MOD for Snitz Forums" have the M_PMRECEIVE = "" (NULL). Member that have come later have M_PMRECEIVE=0 og M_PMRECEIVE=1. Is it any easy way to update all blank M_RECEIVE to 1? It is not possible to change this in the userprofile.

Is there some fix to this or is it an other way to update the profile without update the MDB manually?

By trying to run PM_options.asp I get this error:
Microsoft VBScript runtime error '800a01c2'

Wrong number of arguments or invalid property assignment: 'fLang'

pm_options.asp, line 155

Her is the lines around line 155

if rs("M_PMRECEIVE") = "1" then
Response.Write fLang(strLangPm_Options00100)
else
Response.Write fLang()
end if

I suppose fLang need a value.

I suppose the main is that I need a value for the M_PMRECEIVE ?


<

Edited by - canis on 25 September 2008 10:19:05

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 25 September 2008 :  10:18:08  Show Profile  Send ruirib a Yahoo! Message
What's the name of the table where private messages are stored? I'm not at my desktop and can't remember the exact name...<


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

canis
Starting Member

38 Posts

Posted - 25 September 2008 :  11:36:37  Show Profile
There is a table called FORUM_PM with a field M_MESSAGE that contains the message itself.<

Edited by - canis on 25 September 2008 11:36:58
Go to Top of Page

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 25 September 2008 :  12:06:43  Show Profile
The M_PMRECEIVE field is added to the members table, though.

<

Search is your friend
“I was having a mildly paranoid day, mostly due to the
fact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 25 September 2008 :  12:08:22  Show Profile  Send ruirib a Yahoo! Message
Paste this into the Alternate Mod Setup window, in Admin Options and then click Execute. Should do what you need.

[UPDATE]
MEMBERS
M_PMRECEIVE#1#(M_PMRECEIVE <>0 AND M_PMRECEIVE<>1)
[END]
<


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

canis
Starting Member

38 Posts

Posted - 25 September 2008 :  15:42:44  Show Profile
Before I was able to do this update I got this error:

We suddenly got this error in our forum:

Microsoft JET Database Engine error '80004005'
Could not delete from specified tables.
/inc_func_common.asp, line 304


I can't access the forum in any way!
I suppose it is some clean up that fails, or neccesary access!

Updated: It seem to have been an internal hang, lock in database. It fixed it self!

Atle

<

Edited by - canis on 25 September 2008 16:38:49
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 25 September 2008 :  18:01:14  Show Profile  Send ruirib a Yahoo! Message
And is the PM issue fixed?<


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

canis
Starting Member

38 Posts

Posted - 25 September 2008 :  18:36:21  Show Profile
I got following response:

Database Update

Updating Forum Values..
UPDATE FORUM_MEMBERS SET M_PMRECEIVE = 1 WHERE (M_PMRECEIVE <>0 AND M_PMRECEIVE<>1)

Value(s) updated successfully

Database setup finished

However, in the MEMBERs list only the new'es members had the PM icon.
<
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 25 September 2008 :  18:56:36  Show Profile  Send ruirib a Yahoo! Message
I'm not sure the cause for that is the value of M_PMRECEIVE. Can you have a look in the database and see what happens with the value of M_PMRECEIVE for all the members?<


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

canis
Starting Member

38 Posts

Posted - 25 September 2008 :  19:26:21  Show Profile
ruirib : The M_PMRECEIV is still blank for all the users that do not snow the PM ICON. For those users that have the ICON the M_PMRECEIVE=1. So the datebase is not updated.<
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 25 September 2008 :  20:13:22  Show Profile  Send ruirib a Yahoo! Message
Try this, then:

[UPDATE]
MEMBERS
M_PMRECEIVE#1#(M_PMRECEIVE IS NULL)
[END]

<


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

canis
Starting Member

38 Posts

Posted - 26 September 2008 :  14:58:35  Show Profile
Yes ruirib, now it worked just perfect. All the users with 1 got the PM ICON in members.

Thank you so very much again.

I'm just curious. In the ADD MOD window, were can I find the SQL rules.

Your:
[UPDATE]
MEMBERS
M_PMRECEIVE#1#(M_PMRECEIVE IS NULL)
[END]

is converted to "UPDATE FORUM_MEMBERS SET M_PMRECEIVE = 1 WHERE (M_PMRECEIVE IS NULL)"<
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 27 September 2008 :  05:37:10  Show Profile  Send ruirib a Yahoo! Message
What do you mean with "SQL rules"?<


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

AnonJr
Moderator

United States
5768 Posts

Posted - 27 September 2008 :  06:49:41  Show Profile  Visit AnonJr's Homepage
I think he means the DBS syntax.

Its been posted before, I just don't have the link handy at the moment. A search for "DBS", "DBS Script", or something along those lines should turn it up.<
Go to Top of Page

canis
Starting Member

38 Posts

Posted - 27 September 2008 :  07:08:32  Show Profile
Yes AnonJr, you are right.

Thaks for the info, I'll find them then!<
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 27 September 2008 :  11:08:15  Show Profile  Send ruirib a Yahoo! Message
http://forum.snitz.com/forum/topic.asp?ARCHIVE=true&TOPIC_ID=5120<


Snitz 3.4 Readme | Like the support? Support Snitz too
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.58 seconds. Powered By: Snitz Forums 2000 Version 3.4.07