Author |
Topic |
SalmanKhana
Average Member
USA
961 Posts |
Posted - 28 June 2001 : 00:17:02
|
I tried implementing the File Attachment MOD, but i got the following error :-
Microsoft VBScript runtime error '800a000d'
Type mismatch: 'ReadModConfig'
/forum/config.asp, line 534
Kindly help me out please !!
I would appreciate it
|
|
SalmanKhana
Average Member
USA
961 Posts |
Posted - 28 June 2001 : 00:23:21
|
When I remove the ReadModConfig() from the end of config.asp , the error goes off but then there is one problem. I dont see any button while posting a topic that is related to file upload.
I have 2 questions please :-
1. How can I fix the above error when putting ReadModConfig() at the end of config.asp.
2. When writing a post, What is the procedure of uploading files. ?
I would appreciate your help guyz.
Thanks
Sal.
|
|
|
SalmanKhana
Average Member
USA
961 Posts |
Posted - 28 June 2001 : 00:30:19
|
ok now the latest update is ... When I delete the ReadModConfig() from the end of config.asp , everything works.
But what is the effect of not adding ReadModConfig() ?? is it important to add that ?
Edited by - SalmanKhana on 28 June 2001 01:16:41 |
|
|
SalmanKhana
Average Member
USA
961 Posts |
Posted - 28 June 2001 : 01:18:56
|
once again please,
how do we make this MOD work ? I dont see no links to click that may upload the files ?
|
|
|
HuwR
Forum Admin
United Kingdom
20584 Posts |
Posted - 28 June 2001 : 01:31:51
|
the call to readmodconfig is very important, without it you will be unable to configure the MOD
Did you add the Include statement to the top of config.asp ?
|
|
|
SalmanKhana
Average Member
USA
961 Posts |
Posted - 28 June 2001 : 01:39:00
|
Thanx for replying
this is how the top of my config.asp looks :-
<!--#include file="mod_config.asp"--> <% '################################################################################# '## Copyright (C) 2000 Michael Anderson and Pierre Gorissen '## '## This program is free software; you can redistribute it and
---------
When i include the statment after the copyright things.. it gives that error !!
now it works fine when i call on the very top but i am not sure if it is the right position to put that line before <% .. along with that i have no clue how to upload files !! there is no sign on the forum that would tell me to click here to upload files. !!
Kindly let me know how to make it work please.
Edited by - SalmanKhana on 28 June 2001 01:54:42 |
|
|
HuwR
Forum Admin
United Kingdom
20584 Posts |
Posted - 28 June 2001 : 02:41:58
|
That is the correct place to put it.
What you need to do now is load admin_fileattachment.asp you can turm on attachments from there. You should then get a paperclip icon on post.asp when you reply to a topic
|
|
|
SalmanKhana
Average Member
USA
961 Posts |
Posted - 28 June 2001 : 19:53:10
|
Thanks alot HuwR. Everything is working now. But I would appreciate it if you would please help me in this :-
I want to implement that MOD to upload only pictures ( .gif & .jpg ) . Therefore I would like it to show the picture itself in the post instead of 'download'. Kindly help me in this please.
Thanks
Sal.
|
|
|
HuwR
Forum Admin
United Kingdom
20584 Posts |
Posted - 29 June 2001 : 08:42:50
|
quote:
Thanks alot HuwR. Everything is working now. But I would appreciate it if you would please help me in this :-
I want to implement that MOD to upload only pictures ( .gif & .jpg ) . Therefore I would like it to show the picture itself in the post instead of 'download'. Kindly help me in this please.
Thanks
Sal.
ok, make a copy of your uploadengine.asp file, and then replace the original with this one
Uploadengine.asp
when someone uploads an image file, it will display the image rather than putting a link to the file.
|
|
|
SalmanKhana
Average Member
USA
961 Posts |
Posted - 29 June 2001 : 21:06:53
|
hi,
Thanks for fixing the code. But I get this error while uploading :-
Uploading.... Please wait Microsoft VBScript runtime error '800a004c'
Path not found
/forum/Mods/UploadEngine.asp, line 164
can you kindly fix it for me please ?
Also I would suggest that in the UploadEngine.asp file, you include the file in the following way <!--#include file="../config.asp"--> rather than <!--#include file="config.asp"--> .. the above one worked for me........
Edited by - SalmanKhana on 29 June 2001 21:08:15 |
|
|
HuwR
Forum Admin
United Kingdom
20584 Posts |
Posted - 29 June 2001 : 23:34:06
|
you need to create a subdir in your forum directory called uploaded
|
|
|
SalmanKhana
Average Member
USA
961 Posts |
Posted - 30 June 2001 : 03:22:35
|
quote:
you need to create a subdir in your forum directory called uploaded
Yeah that was even required for the original MOD attachment and I did it. But still its giving me these errors . Do u mind checking it out for me please?
http://www.desihome.org/
I'll email u the ftp and admin login if u have free time to kindly check it out plz ?
Edited by - SalmanKhana on 30 June 2001 03:23:42 |
|
|
SalmanKhana
Average Member
USA
961 Posts |
Posted - 30 June 2001 : 04:17:19
|
I figured out that the problem is with the strRoot. So this small piece of code with the title "'- Function : saveDoc" has the problem. Previously it was working when we had the 'download' link but now it is not. So would u please check it out.
fso.createFolder(strRoot) <----- this line has the problem !
|
|
|
SalmanKhana
Average Member
USA
961 Posts |
Posted - 30 June 2001 : 04:38:09
|
i caught the problem ... here it is.. just the ../ with the folder name .. on this line
strRoot = Server.MapPath(strCookieURL & "../uploaded") & GetSlash & strFolder
now there is something wrong . and that is as follows :-
when we upload an image, it goes to the following directory :- /forum/Mod/uploaded/username/image.gif
where as it should go to this direcotry for proper functioning :-
/forum/uploaded/username/image.gif
Let me see if i can find out what file does that.... and tell other guyz who are having problem too....
brb
|
|
|
SalmanKhana
Average Member
USA
961 Posts |
Posted - 30 June 2001 : 04:43:47
|
so apparently we have a problem with this piece of code
strCookieURL
This points to /forum/Mods where as it should point to just /forum . let me see if i can fix it, otherwise HuwR please let me know the solution
|
|
|
SalmanKhana
Average Member
USA
961 Posts |
Posted - 30 June 2001 : 04:55:48
|
ok now everything is working... I had to change this now .. :-
window.opener.document.PostTopic.Message.value+= '[i m g]' + '<%= "/" & "forum" & "/" & "uploaded" & "/" & strFolder %>' + "/" + fname + '[/i m g]';
The [i m g] has no spaces in between. its written with spaces because this post wasn't showing properly without it.
it is at the end of that UploadEngine.asp file.
Thanks guys. Have a good weekend.
Edited by - SalmanKhana on 30 June 2001 04:57:34 |
|
|
Topic |
|