Author |
Topic |
stevem
Starting Member
3 Posts |
Posted - 09 November 2005 : 13:40:28
|
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.< |
|
|
modifichicci
Average Member
Italy
787 Posts |
|
rabufo
Junior Member
Italy
328 Posts |
Posted - 10 November 2005 : 04:09:52
|
thank you, amico! < |
|
|
TonyB7
Junior Member
USA
267 Posts |
Posted - 24 February 2006 : 22:15:50
|
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 |
|
|
TonyB7
Junior Member
USA
267 Posts |
Posted - 25 February 2006 : 22:26:58
|
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!< |
|
|
modifichicci
Average Member
Italy
787 Posts |
|
TonyB7
Junior Member
USA
267 Posts |
Posted - 27 February 2006 : 23:39:18
|
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.< |
|
|
modifichicci
Average Member
Italy
787 Posts |
|
TonyB7
Junior Member
USA
267 Posts |
Posted - 28 February 2006 : 23:53:08
|
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?< |
|
|
modifichicci
Average Member
Italy
787 Posts |
Posted - 01 March 2006 : 09:10:39
|
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 |
|
|
TonyB7
Junior Member
USA
267 Posts |
Posted - 01 March 2006 : 20:15:06
|
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.< |
|
|
modifichicci
Average Member
Italy
787 Posts |
Posted - 03 March 2006 : 12:42:39
|
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 |
|
|
TonyB7
Junior Member
USA
267 Posts |
Posted - 03 March 2006 : 20:24:05
|
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. < |
|
|
modifichicci
Average Member
Italy
787 Posts |
|
Ric
Starting Member
United Kingdom
47 Posts |
Posted - 21 March 2006 : 12:07:05
|
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 |
|
|
Topic |
|