Author |
Topic |
Fumiya
Starting Member
1 Posts |
Posted - 16 January 2003 : 12:38:42
|
quote:
BritishAndy, mine was just the outputFile.asp
Anyway, if it's only uploading in asc format, your problem sounds more like a server issue than a mod one.
My problem is as same as BritishAndy, ASCII OK but can't upload Binaries Is it related to the version of Chinese Traditional windows 2000 Server or should I set anything on IIS? Thanks a loooooot ! :> |
|
|
KD
Starting Member
6 Posts |
Posted - 16 January 2003 : 19:59:20
|
I just downloaded this mod today.
I need a little help with this mod. I use 3.3.05 forums.
1. Readme says. "- Open your existing "inc_iconfiles.asp" file - ..at the end of the other icons, add this: Const strIconPaperClip = "icon_paperclip.gif|15|15"
- Save the changes you have made, and YOU'RE DONE!"
inc_iconfiles.asp does not exist in my forums. Where do I put this line?
2. Readme says. "- Open your existing "post.asp" file - ..at approximately the line number 1051, locate the code: if strRqMethod = "Edit" or _ strRqMethod = "URL" or strRqMethod = "EditURL" or _ strRqMethod = "Reply" or strRqMethod = "ReplyQuote" or _ strRqMethod = "EditTopic" or strRqMethod = "Topic" or strRqMethod = "TopicQuote" then my forums stop here, I don't have any of the "response write" lines after this Response.Write " <tr>" & vbNewLine & _ " <td bgColor=""" & strPopUpTableColor & """> </td>" & vbNewLine & _ " <td bgColor=""" & strPopUpTableColor & """>" & vbNewLine - immediately after this insert the following code: Response.Write " <a href=""#"" onClick=""window.open('pop_upload_new.asp','Uploading','toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=no,resizable=yes,width=440,height=310');""><acronym title=""Upload an Image File..."">" & getCurrentIcon(strIconPaperClip,"","") & "</a> <font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """>Insert an Image File</acronym><br /></font>" & vbNewLine
where should I put the new line?
Should I just use a version for 3.3.05? Is there such a version?
|
|
|
ewyglend
New Member
83 Posts |
Posted - 17 January 2003 : 06:09:27
|
Is this not a common problem I take it??
quote: I implimented the file attachment mod onto the forums on my pws and it works great. However, I uploaded the forums to an outside server and now when I attempt to upload a file it takes me to "this page cannot be displayed." Are there settings I need to change on the "uploaded" file to ensure that users can upload to it? By the way, I am running it on a frontpage server, I am not sure if that makes a difference or not.
Any suggestions would be greatly appreciated! |
|
|
KD
Starting Member
6 Posts |
Posted - 17 January 2003 : 17:57:17
|
Forget about my help request. I had a blast of motivation last night. I'm starting to upgrade to 3.4.03 foums..... |
|
|
James
Average Member
USA
539 Posts |
Posted - 19 January 2003 : 00:55:52
|
quote: Originally posted by ewyglend
Is this not a common problem I take it??
Do you have write permissions on the folders you want to upload too?
You might need to contact your host to request them on your upload folder and make sure they are inheritable (new subfolders use that folders write settings).
Also, check that the upload folder is named correctly and matches what you have the mod set to. |
*Interested in Radio Control* *The RC Web Board - http://www.rcwebboard.com/* |
|
|
TAlosi
Starting Member
2 Posts |
Posted - 19 January 2003 : 21:16:08
|
Hi,
I have seen a few request for some control over allowing who can upload a file.
I have a quick suggestion (not really a mod since I didn't change any of Mike's code).
For my site, I wanted to restrict uploading to Admin's and Moderators, so In the POST.ASP script, I added a quick check prior to outputing the link to the upload file.
In POST.ASP, follow the readme file, but add the following check too.
Recent Update: The check wasn't working for URL's since there is no Forum ID ... so I added a second nested check
'-- Beginning of Mike's File Attachment Mod
'--TAlosi-- Moderator or Admin Check
if strRqMethod <> "URL" and strRqMethod <> "EditURL" then
if ((mLev = 4) or (chkForumModerator(strRqForumId, strDBNTUserName) = "1")) then
Response.Write " <a href=""#"" (...Rest of Line Removed for Brevity of the post ...)
end if
end if
'-- End of Mike's File Attachment Mod
Thanks
I am also thinking of modifying the Upload script to save the file within the database (utilizing Antonin Foller's free Pure-ASP File Upload script (www.pstruh.cz)) to further improve security. (SQL Server only). Comments are welcomed ... |
Edited by - TAlosi on 25 January 2003 22:27:05 |
|
|
KerryG
Starting Member
USA
41 Posts |
Posted - 21 January 2003 : 17:01:52
|
Any clue as to where I change the code to allow file uploads in a reply?
|
Kerry http://www.WildHobbies.com |
|
|
TAlosi
Starting Member
2 Posts |
Posted - 21 January 2003 : 20:15:12
|
As far as I can tell, regular replys or reply's with Quotes still use Post.asp ... and this MOD does work. QUICK Reply's don't use Post.asp and they Don't show the link.
quote: Originally posted by KerryG
Any clue as to where I change the code to allow file uploads in a reply?
|
|
|
KerryG
Starting Member
USA
41 Posts |
|
BritishAndy
Starting Member
United Kingdom
15 Posts |
Posted - 26 January 2003 : 17:35:18
|
Fumiya
My problems with ASCII working but not binaries was actually due to the fact that my host server is not an IIS server but a Unix system.
Everyone else seems ok with this on IIS, however it is possible that if your server has Chinese W2K on it then the binaries may be failing because of the ASCB function and the way this represents characters.
I'm only guessing.
My forum upload does work now http://www.itpositive.com/forum (look at the pictures or testing category), but I had to write the upload bit in php. I can let you have this code if you get to the point where you think you're not going to get Mike's code working. If I were you I would use Mikes code if possible as it is better than mine on a supported platform.
Andy. |
|
|
korayem
New Member
Egypt
72 Posts |
Posted - 06 February 2003 : 04:26:54
|
quote: Originally posted by webbee
I can see this mod has evolved quite a bit. Does anyone have the code available for 3.3? I would like to install it on my forum and is seems like a lot of you have tweaked it along the way. Could I get a final copy if that even exists?
i have a modified from 3.4 to 3.3 version that i edited alot and added some more nice stuff to it...instead of talking to much about it....u can try it here http://HASdot.COM/forum/
username:tester password:tester
then open the page http://HASdot.COM/myfiles.asp
u can download the edited version of this from here: http://HASdot.COM/MODS/modified_file_uploadMOD_korayem_1.zip
contains a readme file of what to edit (ver 3.3 only).... |
By the time you read this, you've already read it!! http://HASdot.COM/
|
Edited by - korayem on 15 February 2003 10:27:40 |
|
|
antracit
Starting Member
Sweden
33 Posts |
Posted - 06 February 2003 : 13:14:43
|
Thanks korayem
|
johan |
|
|
korayem
New Member
Egypt
72 Posts |
Posted - 07 February 2003 : 03:45:18
|
quote: Originally posted by antracit
Thanks korayem
Anytime man, glad i helped.... |
By the time you read this, you've already read it!! http://HASdot.COM/
|
|
|
korayem
New Member
Egypt
72 Posts |
Posted - 07 February 2003 : 14:40:57
|
quote:
i have a modified from 3.4 to 3.3 version that i edited alot and added some more nice stuff to it...instead of talking to much about it....u can try it here http://HASdot.COM/forum/
username:tester password:tester
then open the page http://HASdot.COM/myfiles.asp
u can download the edited version of this from here: http://HASdot.COM/MODS/modified_file_uploadMOD_korayem_1.zip
contains a readme file of what to edit (ver 3.3 only)....
hey guys i just wanted to tell u (since i didnt in the first place) about what exactly i've done to mike's MOD and file lister...
i made the following rules and made the modifications to the MOD accordingly:(note that most of them are already done in the MOD) -only memebers are able to upload files. -maximum size of upload can be set as user wants -file types are set in an array -display each file's size -display total file size in user's directory -members can't view any directory except their's -members can't change/delete other's files by creating a directory for each memeber. -member mmay delete ALL files by clicking on DeleteFolder -added a page to confirm any file/folder delete so that files wont be deleted by accident. -to share files, members must attach a link to -for admin, display all files and directories and ofcourse be able to delete them -the attach-to-post function only appear when called from a post page. -myfiles.asp viewed the files in a weird table that didnt take the same colors of the forum.changed that.
again this is a 3.3 compatable tested version NOT for 3.4 , however i might make a working version for the 3.4 that has all the above
in the process i commented myfiles.asp and outputFile.asp so that anyone after me would know what really is going on with the code.
also i want to add the feature that a user might delete several files at the same time...AND...the date the file was updated...i think it won't take much...
as soon as i have some empty time i will do it god willing...
|
By the time you read this, you've already read it!! http://HASdot.COM/
|
Edited by - korayem on 15 February 2003 10:27:46 |
|
|
TFO_Phoenix
Starting Member
7 Posts |
Posted - 15 February 2003 : 21:43:53
|
Hey guys, I'm using Snitz Forums 2000 Version 3.4.03
The upload seems to go through without a hitch. When I view the newly created post, it shows:
Download Attachment: weee.jpg 19.68 KB
When I click on the "wee.jpg" link, I get this error:
The requested URL was not found on this server.
I know this has been asked and answered several times, but I'm a complete noob when it comes to this. So here are my questions:
1. What the heck am I doing wrong? 2. How can I make the image appear, rather than a link to the image?
|
|
Edited by - TFO_Phoenix on 16 February 2003 10:32:24 |
|
|
Topic |
|