Author |
Topic  |
HuwR
Forum Admin
    
United Kingdom
20595 Posts |
Posted - 09 February 2001 : 17:13:42
|
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' |
 |
|
Intrepidone
Average Member
  
Canada
515 Posts |
Posted - 10 February 2001 : 22:24:26
|
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 |
 |
|
HuwR
Forum Admin
    
United Kingdom
20595 Posts |
Posted - 11 February 2001 : 08:09:40
|
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' |
 |
|
Intrepidone
Average Member
  
Canada
515 Posts |
Posted - 11 February 2001 : 10:30:28
|
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 |
 |
|
HuwR
Forum Admin
    
United Kingdom
20595 Posts |
Posted - 11 February 2001 : 11:32:36
|
the fix you made is correct, I was about to update the files, but I will check the other problem first
'Resistance is futile' |
 |
|
HuwR
Forum Admin
    
United Kingdom
20595 Posts |
Posted - 11 February 2001 : 11:39:06
|
intrepidone,
what version of the forum_code are you using ?
'Resistance is futile' |
 |
|
Intrepidone
Average Member
  
Canada
515 Posts |
Posted - 11 February 2001 : 11:47:28
|
HuwR I am using Ver3.1SR4
Thanks HuwR .... |
 |
|
HuwR
Forum Admin
    
United Kingdom
20595 Posts |
Posted - 11 February 2001 : 11:53:59
|
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 |
 |
|
Intrepidone
Average Member
  
Canada
515 Posts |
Posted - 11 February 2001 : 17:28:09
|
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 |
 |
|
HuwR
Forum Admin
    
United Kingdom
20595 Posts |
Posted - 11 February 2001 : 17:30:32
|
can you send me your post.asp file I'll have a look.
'Resistance is futile' |
 |
|
gor
Retired Admin
    
Netherlands
5511 Posts |
Posted - 11 February 2001 : 17:44:45
|
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) |
 |
|
HuwR
Forum Admin
    
United Kingdom
20595 Posts |
Posted - 11 February 2001 : 17:50:09
|
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' |
 |
|
Intrepidone
Average Member
  
Canada
515 Posts |
Posted - 11 February 2001 : 17:50:48
|
post.asp is on it's way to you HuwR |
 |
|
HuwR
Forum Admin
    
United Kingdom
20595 Posts |
Posted - 11 February 2001 : 17:54:51
|
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' |
 |
|
Topic  |
|