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/Code)
 MOD: Private Messages (another re-release w/fixes)
 New Topic  Topic Locked
 Printer Friendly
Previous Page | Next Page
Author Previous Topic Topic Next Topic
Page: of 18

JK_Bowman
New Member

USA
60 Posts

Posted - 03 February 2001 :  19:47:28  Show Profile  Visit JK_Bowman's Homepage  Send JK_Bowman an ICQ Message
Hey Richard,

Thanks for the speedy reply...

I am using Snitz Forums 2000 Version 3.1 final

J.K. Bowman
http://spider-food.net/forum
Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 03 February 2001 :  20:13:37  Show Profile
The current version of the forum uses strDBNTUserName for getting the member's username from their cookie.

The current version of the forum uses: Request.Cookies(strUniqueID & "User")("Name")

while v3.1 Final used: Request.Cookies(strCookieURL & "User")("Name")

In all of the files associated with the Private Messages mod, I changed it to use strDBNTUserName when looking for the username.

so, the easiest way to fix this for the version you are using is to add the following code to your inc_top.asp file around line #49 of a stock v3.1 Final inc_top.asp file:


strDBNTUserName = Request.Cookies(strCookieURL & "User")("Name")
strDBNTFUserName = Request.Form("Name")
if strAuthType = "nt" then
strDBNTUserName = Session(strCookieURL & "userID")
strDBNTFUserName = Session(strCookieURL & "userID")
end if


Also, on line #57 of privatesend.asp

change this:


strCkPassWord = Request.Cookies(strUniqueID & "User")("Pword")


to this:


strCkPassWord = Request.Cookies(strCookieURL & "User")("Pword")



Also on line #46 of privatedelete.asp

change this:


strSql = strSql & " AND " & strMemberTablePrefix & "MEMBERS.M_PASSWORD = '" & Request.Cookies(strUniqueID & "User")("PWord") & "'"


to this:


strSql = strSql & " AND " & strMemberTablePrefix & "MEMBERS.M_PASSWORD = '" & Request.Cookies(strCookieURL & "User")("PWord") & "'"



Also on line #54 and line #82 of pm_options.asp

change this:


strSql = strSql & " AND " & strMemberTablePrefix & "MEMBERS.M_PASSWORD = '" & Request.Cookies(strUniqueID & "User")("PWord") & "'"


to this:


strSql = strSql & " AND " & strMemberTablePrefix & "MEMBERS.M_PASSWORD = '" & Request.Cookies(strCookieURL & "User")("PWord") & "'"


Edited by - Richard Kinser on 03 February 2001 20:14:57
Go to Top of Page

JK_Bowman
New Member

USA
60 Posts

Posted - 03 February 2001 :  20:18:43  Show Profile  Visit JK_Bowman's Homepage  Send JK_Bowman an ICQ Message
Thank you for such a wonderful and detailed answer... :)

However, I really did not realize that I was not using the current version of the forums.

duuuuhhhhhhh...

Should I just upgrade instead?

J.K. Bowman
http://spider-food.net/forum
Go to Top of Page

avyworld
Starting Member

USA
48 Posts

Posted - 03 February 2001 :  20:34:38  Show Profile  Send avyworld an AOL message
Hey JK, what version are you running?

Perl tutorials for the total non-programmer
http://www16.brinkster.com/perlpreacher
Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 03 February 2001 :  20:35:55  Show Profile
If everything on your forum is working like you want, then there really isn't a reason to upgrade. But, all of the mods that are being developed are usually for the latest version. Mike is currently working to squash as many of the current bugs as possible and then will release a stable v3.1 Service Release 5 before he starts on the internationalization and CSS conversion. It would probably be better to wait at least until Service Release 5 is out.
Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 03 February 2001 :  20:42:51  Show Profile
if y'all are using v3.1 sr2 then you've already got this in your inc_top.asp


STRdbntUserName = Request.Cookies(strCookieURL & "User")("Name")
if strAuthType = "nt" then
STRdbntUserName = Session(strCookieURL & "userID")
end if


So, y'all can probably get away with just editing the other files I mentioned above. But it wouldn't hurt to replace your current code in inc_top.asp with the code I showed above.
Go to Top of Page

fredzepplin
Starting Member

18 Posts

Posted - 03 February 2001 :  23:04:07  Show Profile
quote:

The current version of the forum uses strDBNTUserName for getting the member's username from their cookie.

The current version of the forum uses: Request.Cookies(strUniqueID & "User")("Name")

while v3.1 Final used: Request.Cookies(strCookieURL & "User")("Name")

In all of the files associated with the Private Messages mod, I changed it to use strDBNTUserName when looking for the username.

so, the easiest way to fix this for the version you are using is to add the following code to your inc_top.asp file around line #49 of a stock v3.1 Final inc_top.asp file:


strDBNTUserName = Request.Cookies(strCookieURL & "User")("Name")
strDBNTFUserName = Request.Form("Name")
if strAuthType = "nt" then
strDBNTUserName = Session(strCookieURL & "userID")
strDBNTFUserName = Session(strCookieURL & "userID")
end if


Also, on line #57 of privatesend.asp

change this:


strCkPassWord = Request.Cookies(strUniqueID & "User")("Pword")


to this:


strCkPassWord = Request.Cookies(strCookieURL & "User")("Pword")



Also on line #46 of privatedelete.asp

change this:


strSql = strSql & " AND " & strMemberTablePrefix & "MEMBERS.M_PASSWORD = '" & Request.Cookies(strUniqueID & "User")("PWord") & "'"


to this:


strSql = strSql & " AND " & strMemberTablePrefix & "MEMBERS.M_PASSWORD = '" & Request.Cookies(strCookieURL & "User")("PWord") & "'"



Also on line #54 and line #82 of pm_options.asp

change this:


strSql = strSql & " AND " & strMemberTablePrefix & "MEMBERS.M_PASSWORD = '" & Request.Cookies(strUniqueID & "User")("PWord") & "'"


to this:


strSql = strSql & " AND " & strMemberTablePrefix & "MEMBERS.M_PASSWORD = '" & Request.Cookies(strCookieURL & "User")("PWord") & "'"


Edited by - Richard Kinser on 03 February 2001 20:14:57



Richard;

The code you put out here, corrected my forums PM completely. (SR2 Final)

Thanks for the code and the fix. works real well.

Sincerely;

JT

Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 03 February 2001 :  23:43:26  Show Profile
glad to here it.
Go to Top of Page

Huntress
New Member

USA
96 Posts

Posted - 05 February 2001 :  20:09:38  Show Profile  Visit Huntress's Homepage
Hi guys... First time here.

I'm trying to install this mod and while running mod_dbsetup.asp I get the following error message:

Microsoft VBScript runtime error '800a01ad'

ActiveX component can't create object: 'Scripting.FileSystemObject'

/forum/mod_dbsetup.asp, line 16

This is for the following line of code:

set my_Conn= Server.CreateObject("ADODB.Connection")

I imagine this is server related, but am unsure of how to address it.

Ideas?

Diana


Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 05 February 2001 :  20:20:31  Show Profile
That means that your server doesn't support the Scripting.FileSystemObject.

Is this your own server or is it hosted somewhere?

You can either add the database fields manually, or I can create a setup script that doesn't require the Scripting.FileSystemObject.
Go to Top of Page

Bagman007
Starting Member

3 Posts

Posted - 05 February 2001 :  20:41:43  Show Profile
I put this mod on my forums yesterday and it worked perfectly. today the PM thing says "- Log in to check your private messages." even when im already logged in. this message also appears with my other users when they are logged in as well. the PMs function properly except for that small error. could you tell me how to fix it? the forums are at http://user.webrc.ca/bagman007/snitz_forum/default.asp if that helps.

Go to Top of Page

Huntress
New Member

USA
96 Posts

Posted - 05 February 2001 :  21:25:07  Show Profile  Visit Huntress's Homepage
This is not "my" server, it through a hosting company. Now I could make the modifications myself to the database, but at the moment my FTP is not working (some hosting companies ) and I've been publishing with FP. I would need to download the database, which I can't do. And then I'd need to know what needs to be modified... But since I can't FTP....

I could also modify the DAO connect, IF I knew what to change it to. Of course assuming it's that easy.

And then of course I could impose on you.

Your choice

Diana

Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 05 February 2001 :  22:14:18  Show Profile
Diana,

Here you go: http://www16.brinkster.com/richardk/files/pmdbsetup.zip

just download the file, unzip it and then upload pmdbsetup.asp to your /forum directory. Then just run it from the address bar of your browser like you did with the mod_dbsetup.asp file.
Go to Top of Page

Huntress
New Member

USA
96 Posts

Posted - 05 February 2001 :  22:22:45  Show Profile  Visit Huntress's Homepage
Thank you so much Richard!

Worked like a champ!

Diana

Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 05 February 2001 :  22:30:24  Show Profile
You're welcome Diana
Go to Top of Page
Page: of 18 Previous Topic Topic Next Topic  
Previous Page | 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.2 seconds. Powered By: Snitz Forums 2000 Version 3.4.07