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)
 File Attachments
 New Topic  Topic Locked
 Printer Friendly
Previous Page
Author Previous Topic Topic Next Topic
Page: of 9

HuwR
Forum Admin

United Kingdom
20595 Posts

Posted - 09 February 2001 :  17:13:42  Show Profile  Visit HuwR's Homepage
quote:

!

Go Sverige!

Actually just replying to my own reply in order for this to get higher ratings in the active topics list :) ... this done in the hope that some of the cooler coders (HuwR, Frankie, stimulator?) will notice it!

MPH73





Had noticed it, I am just about to rerelease the fileattachment mod, so maybe I'll look at what you suggest for the next version.

My forum currently has an admin version of the upload which allows the admin to upload files to any directory in the website, so should be simple to accomplish what you requested.


'Resistance is futile'
Go to Top of Page

Intrepidone
Average Member

Canada
515 Posts

Posted - 10 February 2001 :  22:24:26  Show Profile
Hi HuwR
I installed your file attachement MOD and it works uploading and downloading, but I ran into 2 minor problems.

1) Even if you uncheck a members rights to upload and download files, they are still able to do both.

2) If I reply to a topic and once I am in post.asp (where you type in your post), if I just decide to logout right from here without sending the post, when I click logout, it shows the logout page then is refreshed back to the post.asp page then I get this error...

ADODB.Field error '800a0bcd'

Either BOF or EOF is True, or the current record has been deleted. Requested operation requires a current record.

/techcare/forum/inc_functions.asp, line 657


It shows the first portion of the post.asp page up until it say's Attach File: then the error comes up.

Now, if I replace this line in post.asp

if AllowDownloads = 1 then

with this one that I found in Richards post.asp file

if AllowDownloads = 1 and STRdbntUserName <> "" then

I do not get that error happening when logging out from post.asp

Any quick fixes for these? Well, I can use the one line from Richards file to fix the error message I get, but what about the file uploads and downloads?

Any help is appreciated

Thanks
Intrepidone

Edited by - Intrepidone on 10 February 2001 22:26:35
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20595 Posts

Posted - 11 February 2001 :  08:09:40  Show Profile  Visit HuwR's Homepage
I have already fixed the second problem you mentioned, I will look into the other.

Applogies for the delay in response, but been a bit busy with other things

'Resistance is futile'
Go to Top of Page

Intrepidone
Average Member

Canada
515 Posts

Posted - 11 February 2001 :  10:30:28  Show Profile
No need for the apologies HuwR

I have tried 6 times now redoing and going over the Fileattachment.txt file and still come up with that 2nd error, unless like I said I use this
if AllowDownloads = 1 and STRdbntUserName <> "" then

instead of this
if AllowDownloads = 1

I downloaded the .zip file again incase I had an old one and replaced all the files to.

Did I miss something in the fix for this?

The first problem, I did manage to get it so people could NOT download the files if the box was not checked in the members profile. But when I replaced all the files I forget what I did.

No big hurry, I can always create a Private Forum and only allow uploads and downloads in there and give members who are allowed to, the rights to that Forum

Thanks HuwR

Intrepidone

Edited by - Intrepidone on 11 February 2001 10:31:14
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20595 Posts

Posted - 11 February 2001 :  11:32:36  Show Profile  Visit HuwR's Homepage
the fix you made is correct, I was about to update the files, but I will check the other problem first

'Resistance is futile'
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20595 Posts

Posted - 11 February 2001 :  11:39:06  Show Profile  Visit HuwR's Homepage
intrepidone,

what version of the forum_code are you using ?

'Resistance is futile'
Go to Top of Page

Intrepidone
Average Member

Canada
515 Posts

Posted - 11 February 2001 :  11:47:28  Show Profile
HuwR
I am using Ver3.1SR4

Thanks HuwR ....
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20595 Posts

Posted - 11 February 2001 :  11:53:59  Show Profile  Visit HuwR's Homepage
ok to fix the allow uploads, open post.asp

imediately above

select case strRqMethod
case "Reply"

Insert the following

if AllowUploads = 1 then
strSql = "SELECT M_ALLOWUPLOADS"
strSql = strSql & " FROM " & strMemberTablePrefix & "MEMBERS "
strSql = strSql & " WHERE " & Strdbntsqlname & " = '" & strDBNTUsername & "' "
set rs = my_conn.execute(strSQL)
if not rs.EOF then
if rs("M_ALLOWUPLOADS") <> 1 then
AllowUploads = 0
end if
end if
end if


as for the downloads, not sure have checked the code, it looks ok, have you checked that it setting the value in the DB to 0

'Resistance is futile'
oops, minor error, changed in red.

Edited by - Huwr on 11 February 2001 12:13:33
Go to Top of Page

Intrepidone
Average Member

Canada
515 Posts

Posted - 11 February 2001 :  17:28:09  Show Profile
Sorry I didn't respond sooner HuwR, I had to run out.

Did the changes you mentioned and users are still allowed to upload. I checked the DB and the users I took rights away from for uploads and downloads are set to 0 in the DB, while other users are set to 1

I did a complete line to line search through all my edited files and they match everything you mention in the readme.

This one has me stumped. I know nothing about writing code, but I can sometimes skim through a file and catch a wrong value, not this time...lol

I just poured a fresh coffee, so I'll dig through these files again.

Thanks for the help HuwR

Intrepidone
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20595 Posts

Posted - 11 February 2001 :  17:30:32  Show Profile  Visit HuwR's Homepage
can you send me your post.asp file I'll have a look.

'Resistance is futile'
Go to Top of Page

gor
Retired Admin

Netherlands
5511 Posts

Posted - 11 February 2001 :  17:44:45  Show Profile  Visit gor's Homepage
Huw, you can lock topics in this forum yourself...but wouldn't 130+ replies be a nice moment to close a thread...and start a new one if needed ?

Pierre
Parttime member of the Snitz Threadlength Patrol (special taskforce)
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20595 Posts

Posted - 11 February 2001 :  17:50:09  Show Profile  Visit HuwR's Homepage
I was about to on friday when the forum went AWOL, just get intrepidone one sorted then I will, I have everything ready to rerelease it anyway.

'Resistance is futile'
Go to Top of Page

Intrepidone
Average Member

Canada
515 Posts

Posted - 11 February 2001 :  17:50:48  Show Profile
post.asp is on it's way to you HuwR
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20595 Posts

Posted - 11 February 2001 :  17:54:51  Show Profile  Visit HuwR's Homepage
Ok, thanks. I am locking this one now.

If anyone needs help with this mod, please post in the MOD: Implementation Forum.

I will be releasing the code in the Completed MODS forum as soon as I have sorted Intrepidones problem, incase the code needs afix.

'Resistance is futile'
Go to Top of Page
Page: of 9 Previous Topic Topic Next Topic  
Previous 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.18 seconds. Powered By: Snitz Forums 2000 Version 3.4.07