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)
 Mike's File Attachment Mod for Snitz
 New Topic  Topic Locked
 Printer Friendly
Previous Page | Next Page
Author Previous Topic Topic Next Topic
Page: of 15

BritishAndy
Starting Member

United Kingdom
15 Posts

Posted - 07 December 2002 :  18:21:04  Show Profile  Visit BritishAndy's Homepage  Send BritishAndy an ICQ Message  Send BritishAndy a Yahoo! Message
Sorry should have said James's new upload.asp not Dave's - sorry James.
Go to Top of Page

DarlingBri
Junior Member

United Kingdom
378 Posts

Posted - 08 December 2002 :  04:44:47  Show Profile  Visit DarlingBri's Homepage
James--

I have your output file, but I've noticed a difference between your code and the original documentation:

Your code seems to call for a directory called "uploads"...

memberPath = (Server.MapPath("uploads") & "\" & membername)

...but the readme for the current complete zip says:

.. Installation

- Create a subdirectory for your attachments called "uploaded"
(ie c:\inetpub\wwwroot\forum\uploaded)


Which directory name should I be using, and where should I make changes so that they work together? (Can I just change instances of "uploads" to "uploaded" in your file?)

Sorry, since I have virtually zero understanding of what I'm looking at in all this code, the things that stick out enough for me to notice make me nuts!

*****
"You know, there's nothing sexier than a girl geek on a big coding run." -Doonesbury
Go to Top of Page

DarlingBri
Junior Member

United Kingdom
378 Posts

Posted - 08 December 2002 :  06:26:05  Show Profile  Visit DarlingBri's Homepage
OK, it errored as installed, but works perfectly when "uploads" is changed to "uploaded" in the output file :)

*****
"You know, there's nothing sexier than a girl geek on a big coding run." -Doonesbury
Go to Top of Page

James
Average Member

USA
539 Posts

Posted - 08 December 2002 :  15:40:26  Show Profile  Visit James's Homepage
quote:
Originally posted by DarlingBri

OK, it errored as installed, but works perfectly when "uploads" is changed to "uploaded" in the output file :)



Yes, change "uploads" in 2 instances to reflect your upload directory.

quote:
Sorry should have said James's new upload.asp not Dave's - sorry James.


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.

*Interested in Radio Control*
*The RC Web Board - http://www.rcwebboard.com/*
Go to Top of Page

leblanc9425
New Member

USA
92 Posts

Posted - 09 December 2002 :  20:52:15  Show Profile  Visit leblanc9425's Homepage
Can somebody help me decipher this javascript in the outputfile.asp file??? I assume this is the section of code that writes the image URL into the post but I don't understand it. What part of the code tells it to post the URL into the T_Message field of the FORUM_TOPICS table????

The code is on lines 76-83 and starts off like:
if (opener.document.PostTopic.Message.createTextRange && opener.document.PostTopic.Message.caretPos) {
var caretPos = opener.document.PostTopic.Message.caretPos;
caretPos.text = "\n\nImage Insert: and then the rest of the code....

This is really bugging me!!

www.Slug-Lines.com
Snitz Version 3.4.07
Go to Top of Page

TERM
New Member

82 Posts

Posted - 09 December 2002 :  23:26:26  Show Profile
Hi. My snitz forum is at http://www.thecgn.com/forum

I just installed Mike's file upload.
My questions are; (and please forgive me if it says somewhere in this post, but its 7 long pages and I dont have time to read it all)

1. Can the files people upload be deleted after a set amount of time (ie after 1 week in the upload folder it is automatically deleted?)

2. If the above question is possible, is there some message that will appear in place of the old attachment, or what happens to the old attachment, does it become a dead link?)

3. Can I set only certain users to upload files? If so, how?

Thanks for your time.

Go to Top of Page

leblanc9425
New Member

USA
92 Posts

Posted - 10 December 2002 :  09:14:33  Show Profile  Visit leblanc9425's Homepage
Term,
I don't see anything in the code that automatically delete's the file after a given time. Once it's uploaded it's there until you manually delete it. Not sure on question #3. I'll have to look at it again.

www.Slug-Lines.com
Snitz Version 3.4.07
Go to Top of Page

DJ5A
Junior Member

163 Posts

Posted - 10 December 2002 :  09:47:39  Show Profile
Hello Everybody:

This Mod is Really Looking Good!

It would be a Nice addition in this order if...

The Adminstrator could Put a Limit on the Number of Files a Member could UpLoad.

The Adminstrator could Delete Chosen Members Files & Possibly Folders with 1 or 2 Clicks.

The Administrator Could Shut Off Violaters Upload Priveliges.

Thanks a Million for the Continual Advancement of this Mod!

Thank You for Your Time!!!!!
DJ5A
Go to Top of Page

Astralis
Senior Member

USA
1218 Posts

Posted - 13 December 2002 :  01:02:49  Show Profile  Send Astralis a Yahoo! Message
I read through the list of files for this mod and I'm not sure if Mike is updating his version to reflect all the changes. Is there one file that can be downloaded to reflect all the changes submitted by other Snitz users?

Is someone actually updating one master version or do I need to go through all these pages and make the changes?

Edited by - Astralis on 13 December 2002 01:06:56
Go to Top of Page

leblanc9425
New Member

USA
92 Posts

Posted - 13 December 2002 :  10:29:30  Show Profile  Visit leblanc9425's Homepage
quote:
Originally posted by leblanc9425

Can somebody help me decipher this javascript in the outputfile.asp file??? I assume this is the section of code that writes the image URL into the post but I don't understand it. What part of the code tells it to post the URL into the T_Message field of the FORUM_TOPICS table????

The code is on lines 76-83 and starts off like:
if (opener.document.PostTopic.Message.createTextRange && opener.document.PostTopic.Message.caretPos) {
var caretPos = opener.document.PostTopic.Message.caretPos;
caretPos.text = "\n\nImage Insert: and then the rest of the code....

This is really bugging me!!




Can anybody help me out here? I've tried to change this to make it past the URL into a different text box but I have had no luck

www.Slug-Lines.com
Snitz Version 3.4.07
Go to Top of Page

James
Average Member

USA
539 Posts

Posted - 13 December 2002 :  19:22:24  Show Profile  Visit James's Homepage
quote:
Originally posted by Astralis

I read through the list of files for this mod and I'm not sure if Mike is updating his version to reflect all the changes. Is there one file that can be downloaded to reflect all the changes submitted by other Snitz users?

Is someone actually updating one master version or do I need to go through all these pages and make the changes?



Go to http://www.snitzbitz.com/mods/details.asp?Version=All&mid=67 and get Mikes File Attachment and the File Lister Add-on below it. Mikes hasn't been updated for some time, but the File Lister Add-on includes updated files for Mike's along with the ability for users to view and reuse their uploaded files.

*Interested in Radio Control*
*The RC Web Board - http://www.rcwebboard.com/*
Go to Top of Page

BritishAndy
Starting Member

United Kingdom
15 Posts

Posted - 30 December 2002 :  19:52:34  Show Profile  Visit BritishAndy's Homepage  Send BritishAndy an ICQ Message  Send BritishAndy a Yahoo! Message
Some time ago I said (to James) that I was having trouble uploading using this mod, that text files uploaded fine but binaries didn't. I now think I have the answer.

I think the problem is that my ISP is using Chillisoft on a Cobalt server and the behavior of VBScript functions such as MidB, ChrB, LeftB, and AscB (used in outputFile.asp) depends on the byte ordering of the hardware platform, and the number of bytes used to represent Unicode characters in the system software.
The functions will produce different results on different operating systems.

I am interested to know if anyone has got this to work on a similar h/w platform to me.

I have tried many modifications but I can't get this to work. My only hope seems to be to use a php 'copy' command which does work well, but unfortunately (because of my lack of php knowledge) this is not going to integrate well with the rest of the forum code.

Any thoughts?

Andy.

update: I have now managed to write a php uploader for the Chillisoft platform. Works well but significantly different to Mike's original. http://www.itpositive.com/forum if you're interested.

Edited by - BritishAndy on 03 January 2003 16:28:36
Go to Top of Page

jkmcgrath
Junior Member

USA
145 Posts

Posted - 03 January 2003 :  12:07:45  Show Profile  Visit jkmcgrath's Homepage
This is without a doubt one of the Best mods (from a useful/practical viewpoint) of 2002!

Thanks to all of you for this!

I have had just 2 things I wanted to change but one of them has been addressed with James's output.asp file with the img only if it is a img file, The other though I think is a coding problem that I have caused since I have way to many mods lol.

When I go to up load a file I have multiple header catagory images as the back ground. (tmpj cell imag mod)


Delta Force Seals
Go to Top of Page

jkmcgrath
Junior Member

USA
145 Posts

Posted - 03 January 2003 :  17:57:03  Show Profile  Visit jkmcgrath's Homepage
Update

I went in and changed the table background to the strCellColor variable and it is perfection!

Delta Force Seals
Go to Top of Page

ewyglend
New Member

83 Posts

Posted - 10 January 2003 :  09:02:33  Show Profile
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.
Go to Top of Page
Page: of 15 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.26 seconds. Powered By: Snitz Forums 2000 Version 3.4.07