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)
 proeder's File Attachment Mod 1.0
 New Topic  Reply to Topic
 Printer Friendly
Previous Page | Next Page
Author Previous Topic Topic Next Topic
Page: of 13

stevem
Starting Member

3 Posts

Posted - 09 November 2005 :  13:40:28  Show Profile  Reply with Quote
quote:
Originally posted by rabufo

Is there any way to use as uploading directory one not in the forum root? Did anyone of you made that change?
My server gives to me only one directory with right permissions, and it's in the domain root: domain.com/public
The forum is in domain.com/forum ....

Thank you



It looks like you would have to modify the pathEnd statements in myFiles.asp and outFile.asp to subtract enough characters to go up a level. You can also modify the same in the attach_admin.asp to have the true path reflected there.

Haven't tried it myself, but I would be interested to know how others make out.<
Go to Top of Page

modifichicci
Average Member

Italy
787 Posts

Posted - 09 November 2005 :  14:30:39  Show Profile  Visit modifichicci's Homepage  Reply with Quote
Yes it's possible. I have implemented the change for Italian aruba server that has the dir with permission under public.
The mod (in italian sorry, but the code changes are universal) is available on my forum for registered users on download section
http://www.herniasurgery.it/forum/

You have to change the dir "public" to everyone you need.
There are some other changes in outputfile and and pop_upload_new....

Compare the files and you can have the solution.<

Ernia e Laparocele
Forum di Ernia e Laparocele
Acces - MySql Migration Tutorial
Adamantine forum
Go to Top of Page

rabufo
Junior Member

Italy
328 Posts

Posted - 10 November 2005 :  04:09:52  Show Profile  Reply with Quote
thank you, amico! <
Go to Top of Page

TonyB7
Junior Member

USA
267 Posts

Posted - 24 February 2006 :  22:15:50  Show Profile  Send TonyB7 an AOL message  Send TonyB7 a Yahoo! Message  Reply with Quote
So what's up with the error when someone tries to upload a too-large file, then clicks on the 'go back to retry' link? Search turns up a single instance, but no solution. http://forum.snitz.com/forum/topic.asp?ARCHIVE=true&TOPIC_ID=51224

quote:
Microsoft VBScript runtime error '800a0005'

Invalid procedure call or argument: 'MidB'

/testforum2/upload.asp, line 5


Edit: I just noticed this error doesn't occur in MSIE; only in Firefox.<

Edited by - TonyB7 on 24 February 2006 22:56:08
Go to Top of Page

TonyB7
Junior Member

USA
267 Posts

Posted - 25 February 2006 :  22:26:58  Show Profile  Send TonyB7 an AOL message  Send TonyB7 a Yahoo! Message  Reply with Quote
quote:
is available on my forum for registered users on download section
I swear I can't find a download section here. Not that I really think I could figure out how to move this folder out of /forum/ in italian anyway, but it sure would be nice!<
Go to Top of Page

modifichicci
Average Member

Italy
787 Posts

Posted - 26 February 2006 :  06:50:56  Show Profile  Visit modifichicci's Homepage  Reply with Quote
This are text links to files to modify.
Check where there is "yourdomain" or "yourupoloaddir" and change them to real name
Yourdomain is your domain with extension (com, net, org etc etc) without dot
Compare these files with original and look at changes.

http://k.domaindlx.com/snitzhelp/snitzhelp/admin_attach.txt

http://k.domaindlx.com/snitzhelp/snitzhelp/myfiles.txt

http://k.domaindlx.com/snitzhelp/snitzhelp/outputFile.txt<

Ernia e Laparocele
Forum di Ernia e Laparocele
Acces - MySql Migration Tutorial
Adamantine forum
Go to Top of Page

TonyB7
Junior Member

USA
267 Posts

Posted - 27 February 2006 :  23:39:18  Show Profile  Send TonyB7 an AOL message  Send TonyB7 a Yahoo! Message  Reply with Quote
Thanks! I used Beyond Compare and changed all the lines in these 3 files. But I'm getting an error:
quote:
Server.MapPath() error 'ASP 0174 : 80004005'

Invalid Path Character(s)

/testforum2/outputFile.asp, line 187

An invalid '/' or '\' was found in the Path parameter for the MapPath method.
Lines 60-62 earlier:
quote:
mysite1= Request.ServerVariables("Server_Name")
mysite = "http://" & mysite1
subfolder = "/uploads/" & strUploadUrl
The /uploads folder exists in wwwroot/ along with /forum.<
Go to Top of Page

modifichicci
Average Member

Italy
787 Posts

Posted - 28 February 2006 :  07:44:39  Show Profile  Visit modifichicci's Homepage  Reply with Quote
I think you have definied your uoload url as "uploadurl/"
The "/" caracter is just inserted in the variable definition, try with simply the name of upload url.
the subfolder for member is definied with:
subfolder = subfolder & "/" & membername adding the / before the member name.<

Ernia e Laparocele
Forum di Ernia e Laparocele
Acces - MySql Migration Tutorial
Adamantine forum
Go to Top of Page

TonyB7
Junior Member

USA
267 Posts

Posted - 28 February 2006 :  23:53:08  Show Profile  Send TonyB7 an AOL message  Send TonyB7 a Yahoo! Message  Reply with Quote
I'm not sure I understand that at all. But I went through the 3 files and found all the occurrences of '/uploads/' and changed them to '/uploads'. That seems to get it to work. Except...

When I go to re-use a file, the paths are presented incorrectly as:
quote:
/tonyb//tonyb/2006228203520_0037.jpg
It also shows
quote:
(Used Path: C:\Domains\shannondale.org\wwwroot\uploads)
- is it really necessary to list the path to the uploads folder?<
Go to Top of Page

modifichicci
Average Member

Italy
787 Posts

Posted - 01 March 2006 :  09:10:39  Show Profile  Visit modifichicci's Homepage  Reply with Quote
Probably there is another "/" along the files...
but when in configuration of the mod it ask the name of yor upload dir, what have you put? "upload" or "upload/"?
Because if youi have put "upload" you need the "/" you have removed, if you put "upload/" you don't need them.

quote:
is it really necessary to list the path to the uploads folder?


No but it was in the original mod, I think to have a control on it.
You can remove it (I think it is shown only to admin, but I could be wrong..)<

Ernia e Laparocele
Forum di Ernia e Laparocele
Acces - MySql Migration Tutorial
Adamantine forum
Go to Top of Page

TonyB7
Junior Member

USA
267 Posts

Posted - 01 March 2006 :  20:15:06  Show Profile  Send TonyB7 an AOL message  Send TonyB7 a Yahoo! Message  Reply with Quote
quote:
but when in configuration of the mod it ask the name of yor upload dir, what have you put? "upload" or "upload/"?
Nothing. I never even looked at it until now, and I see there's nothing in the box. But that's just fine - the files are uploading okay - it's just that I'm getting that odd double path when I go to reuse files.<
Go to Top of Page

modifichicci
Average Member

Italy
787 Posts

Posted - 03 March 2006 :  12:42:39  Show Profile  Visit modifichicci's Homepage  Reply with Quote
At line 174 try deleting "/"
FileNamePath = "http://" & MyDomainName & UploadFolder & "/" & strDBNTUserName & "/" & Name
it could be
FileNamePath = "http://" & MyDomainName & UploadFolder & strDBNTUserName & "/" & Name

but check why you haven't the dir name in the box, that is the issue.
Have you modifyed the config? The mod requires two config variables and STRUPLOADURL is one the store your upload dir.
Check your config if you have done the modifications required.
<

Ernia e Laparocele
Forum di Ernia e Laparocele
Acces - MySql Migration Tutorial
Adamantine forum
Go to Top of Page

TonyB7
Junior Member

USA
267 Posts

Posted - 03 March 2006 :  20:24:05  Show Profile  Send TonyB7 an AOL message  Send TonyB7 a Yahoo! Message  Reply with Quote
I tried deleting the /, but that doesn't solve the duplicate path problem.

Yes, my config.asp has been modified correctly. There's nothing in the box because in your code you hardwire the location ("UploadFolder = "/uploads"), so I don't _need_ to put anything there.?

I think at this point we're getting way too far off the original mod. Really, what it needs is an update that would allow one to place the uploads folder anywhere they want. I think I'll just give up for now and go ahead and leave it in the /forum/ folder.
<
Go to Top of Page

modifichicci
Average Member

Italy
787 Posts

Posted - 04 March 2006 :  03:27:16  Show Profile  Visit modifichicci's Homepage  Reply with Quote
quote:
Yes, my config.asp has been modified correctly. There's nothing in the box because in your code you hardwire the location ("UploadFolder = "/uploads"), so I don't _need_ to put anything there.?


No you need to insert your upload dir here also, because in some point this is required.<

Ernia e Laparocele
Forum di Ernia e Laparocele
Acces - MySql Migration Tutorial
Adamantine forum
Go to Top of Page

Ric
Starting Member

United Kingdom
47 Posts

Posted - 21 March 2006 :  12:07:05  Show Profile  Reply with Quote
quote:
Originally posted by phatmike11

EUREKA! I have got it. I started thinking, this has to be something simple because the code is there. And boom it hit me, check your settings. So I went into admin and the images were disallowed in posts and now I got them working haha. Anyhow thanks for all the help, I got everything running properly now other than the attachment links working, but that will fix itself when I deploy this live.

I've just been installing tihs mod and found the same problem, solved the same way as it was a completely fresh Forum install I was testing on. The code ought really to be modified to check the Allow Images variable. The paperclip icon should then only be drawn if the variable is set to allow images. It would make things much tidier IMHO.
<

New Photo Album Mod demo
Go to Top of Page
Page: of 13 Previous Topic Topic Next Topic  
Previous Page | Next Page
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.13 seconds. Powered By: Snitz Forums 2000 Version 3.4.07