Author |
Topic |
master of puppets
Junior Member
Canada
117 Posts |
Posted - 30 June 2001 : 02:34:58
|
any ideas yet??
"It's not how far you go, it's how go you far" - Guy in Ski School |
|
|
SalmanKhana
Average Member
USA
961 Posts |
Posted - 30 June 2001 : 04:29:51
|
guess what guyz... i found out what the problem is .!!
go down and search for this line :
strRoot = Server.MapPath(strCookieURL & "uploaded") & GetSlash & strFolder
replace it with this :-
strRoot = Server.MapPath(strCookieURL & "../uploaded") & GetSlash & strFolder
this thing works, it gets the picture uploaded in the directory...... but there is one thing that is fishy... lemme find a fix for that ..........
am so happy to find a small fix to something with snitz
|
|
|
SalmanKhana
Average Member
USA
961 Posts |
Posted - 30 June 2001 : 04:45:36
|
ok guyz come to MOD implementation help forum and my thread "File Attachment Upload Error :- HuwR''s MOD ". i'm also discussing the same thing there.. u can follow that thread if u want to
|
|
|
HuwR
Forum Admin
United Kingdom
20584 Posts |
Posted - 30 June 2001 : 11:23:19
|
If you are getting problems with the path, you must have created your directory in the wrong place.
the uploaded directory should be in your main forum folder not the MODS folder you should not change the line to this
strRoot = Server.MapPath(strCookieURL & "../uploaded") & GetSlash & strFolder
strCookieURL should point to your main forum directory, if it doesn't then there is something wrong ie "/" or "/forum/" but should not point to "/forum/mods"
|
|
|
Matthew
New Member
USA
91 Posts |
Posted - 30 June 2001 : 11:40:14
|
Where can I get a copy of HuwR's version? I must have missed it somewhere..
Matt If everything seems to be going your way, you have obviously overlooked something. |
|
|
SalmanKhana
Average Member
USA
961 Posts |
Posted - 30 June 2001 : 15:47:15
|
quote:
If you are getting problems with the path, you must have created your directory in the wrong place.
the uploaded directory should be in your main forum folder not the MODS folder you should not change the line to this
strRoot = Server.MapPath(strCookieURL & "../uploaded") & GetSlash & strFolder
strCookieURL should point to your main forum directory, if it doesn't then there is something wrong ie "/" or "/forum/" but should not point to "/forum/mods"
If everyone has the same problem, that means the problem is with the code, not with how everybody implemented the MOD. Am I right ?
So the orignal Code of the MOD needs a fix. Thats what I think.
|
|
|
SalmanKhana
Average Member
USA
961 Posts |
Posted - 30 June 2001 : 15:49:20
|
quote:
Where can I get a copy of HuwR's version? I must have missed it somewhere..
Matt If everything seems to be going your way, you have obviously overlooked something.
You can find it inside MOD : Completed Add Ons.
|
|
|
sr_erick
Senior Member
USA
1318 Posts |
Posted - 30 June 2001 : 19:21:33
|
quote:
If you are getting problems with the path, you must have created your directory in the wrong place.
the uploaded directory should be in your main forum folder not the MODS folder you should not change the line to this
strRoot = Server.MapPath(strCookieURL & "../uploaded") & GetSlash & strFolder
strCookieURL should point to your main forum directory, if it doesn't then there is something wrong ie "/" or "/forum/" but should not point to "/forum/mods"
Huw, I have for sure put the folder in the correct place. In fact, I have put folders just about everywhere and it still doesn't seem to work. Go to my forum and try upload something: http://www.snowmobilefanatics.com/snofans :)
Thanks for the help.
__________________________________
Snowmobile Fanatics
|
|
|
SalmanKhana
Average Member
USA
961 Posts |
Posted - 30 June 2001 : 20:43:42
|
quote:
Huw, I have for sure put the folder in the correct place. In fact, I have put folders just about everywhere and it still doesn't seem to work. Go to my forum and try upload something: http://www.snowmobilefanatics.com/snofans :)
Thanks for the help.
__________________________________
Snowmobile Fanatics
Dude, if you just follow my post in MOD Implementation, you will make your image upload work in no time !
there are just 2 things you have to change.
1. Replace this with :-
strRoot = Server.MapPath(strCookieURL & "uploaded") & GetSlash & strFolder
this :-
strRoot = Server.MapPath(strCookieURL & "../uploaded") & GetSlash & strFolder
2. At the bottom of UploadEngine.asp , you will find this line window.opener.document.PostTopic.Message.value+= '[im .................
replace that whole line with this :-
window.opener.document.PostTopic.Message.value+= '[im.g]' + '<%= "/" & "forum" & "/" & "uploaded" & "/" & strFolder %>' + "/" + fname + '[/i.mg]';
This will make it work but it would be better if you go and check my post in that forum and u'll know what HuwR thinks about my way to make that work .
|
|
|
SalmanKhana
Average Member
USA
961 Posts |
|
sr_erick
Senior Member
USA
1318 Posts |
Posted - 30 June 2001 : 20:56:21
|
Ok, thanks!
__________________________________
Snowmobile Fanatics
|
|
|
SalmanKhana
Average Member
USA
961 Posts |
Posted - 01 July 2001 : 00:00:22
|
HuwR, this guy has this problem :=
Microsoft VBScript runtime error '800a0046'
Permission denied
/snofans/Mods/UploadEngine.asp, line 164
I believe the error is because his host server does not upload feature.
|
|
|
HuwR
Forum Admin
United Kingdom
20584 Posts |
Posted - 01 July 2001 : 11:56:45
|
if you are going to try and have the same conversation in two different topics, then you are not going to get the correct responses you would expect.
I told you in tthe other post why the two peices of code are different and what to do to fix it, so why just ignore me ?
as for this error
Microsoft VBScript runtime error '800a0046'
Permission denied
/snofans/Mods/UploadEngine.asp, line 164
I believe the error is because his host server does not upload feature
I would imagine is a directory permissions issue, or it can't find the uploaded directory, but since my version of uploadengine does not have this many lines, I can't say for sure
|
|
|
SalmanKhana
Average Member
USA
961 Posts |
Posted - 01 July 2001 : 13:07:27
|
I am not ignoring you HuwR. That would be the last thing i'ld do.
The thing is that I got my stuff working and I was trying to help Eric. Alright Eric, You should check out the post In MOd Implementation too where HuWr told me the solution to the problem.
Also give me the link for your forum. let me see what is the directory structure.
|
|
|
SalmanKhana
Average Member
USA
961 Posts |
Posted - 01 July 2001 : 13:18:46
|
oooooo Guess What !!
HuwR you were right !! .. This is a problem with the directory structure. !!
eric dude, dont worry just check your email.. I've sent the updated file there. ignore the first email, just use the 2nd one. let me know if you have any more problems .
|
|
|
Topic |
|