Author |
Topic  |
spreadpoems
New Member

52 Posts |
Posted - 31 July 2008 : 13:18:49
|
I'm having some issues with proeder's file attachment mod 1.2
When I upload a new image using browse, the tags and file name which are added to the topic look like this.(I replaced the brackets with curly braces) quote: [img]images/icon_paperclip.gif[img] Download Photo/File: {url"http://www.mywebsite.com/forum/files/username/200873113230_image.png"}image.png{/url} 3.53 KB
When I insert a image which I have already uploaded the words "Insert Image" are added to the topic.
My visitors end up with an image of an attachment icon (icon_paperclip.gif), instead of the image they uploaded. To edit the forum topic is easy for me, but it leaves my members confused.
Any help would be appreciated. Thanks!
< |
|
Carefree
Advanced Member
    
Philippines
4222 Posts |
|
PPSSWeb
Junior Member
 
312 Posts |
Posted - 31 July 2008 : 14:44:04
|
Do you have "Images in Posts" turned on in Admin Options --> Feature Configuration?< |
 |
|
spreadpoems
New Member

52 Posts |
Posted - 31 July 2008 : 18:13:30
|
"Images in Posts" is turned on.
Carefree, the second line did look as you suggest, my mistake when copying it here.< |
 |
|
Carefree
Advanced Member
    
Philippines
4222 Posts |
Posted - 31 July 2008 : 19:56:17
|
If nobody takes this on before I finish the other one I'm doing, I'll tackle it.< |
 |
|
texanman
Junior Member
 
United States
410 Posts |
Posted - 01 August 2008 : 01:30:03
|
The second problem is easy to fix. Just delete the two incidents of "insert image:" in lines 192 and 194 in OutputFile.asp and the one incident of "insert image:" in line 180 in myfiles.asp.
The first issue, I believe has to do with line 187 of outputFile.asp. That line is: If ImageFileType=true then
I searched for ImageFileType and it is not defined anywhere. So, that is why for images it picks the files (other than images) attachments case. I could be wrong.< |
 |
|
modifichicci
Average Member
  
Italy
787 Posts |
|
texanman
Junior Member
 
United States
410 Posts |
Posted - 01 August 2008 : 09:29:01
|
Thanks modifichicci That does the trick! < |
 |
|
texanman
Junior Member
 
United States
410 Posts |
Posted - 01 August 2008 : 13:30:14
|
Is it possible to make this mod independent of topic.asp. In other words, I want have a link for upload files and have the uploaded files go directly to the user's upload directory. In addition to keeping the current feature of attaching a file to a topic. I tried to open opo_upload_new.asp and do this but it doesn't look like it works that way. Thanks< |
 |
|
spreadpoems
New Member

52 Posts |
|
texanman
Junior Member
 
United States
410 Posts |
Posted - 01 August 2008 : 16:52:30
|
Do you have a txt file of your OutpufFile.asp?< |
Edited by - texanman on 01 August 2008 16:52:53 |
 |
|
texanman
Junior Member
 
United States
410 Posts |
Posted - 01 August 2008 : 16:59:58
|
Use this file and see if it works for you here< |
Edited by - texanman on 01 August 2008 17:47:47 |
 |
|
spreadpoems
New Member

52 Posts |
Posted - 01 August 2008 : 17:31:03
|
Ok, I fixed that problem...I think....If anyone has the same issue you can take a look at this discussion and get really confused http://forum.snitz.com/forum/topic.asp?TOPIC_ID=51110&whichpage=4
Basically you want to make sure outputFile.asp looks like this: (replace curly brackets with []) {br}{img}<% =SUBFOLDER %>/<% =filename %>{/img}{br}
and does not include this: "< % =strForumURL % >"< |
 |
|
PPSSWeb
Junior Member
 
312 Posts |
Posted - 04 August 2008 : 10:22:57
|
quote: Originally posted by texanman
Is it possible to make this mod independent of topic.asp. In other words, I want have a link for upload files and have the uploaded files go directly to the user's upload directory. In addition to keeping the current feature of attaching a file to a topic. I tried to open opo_upload_new.asp and do this but it doesn't look like it works that way. Thanks
If I understand what you are asking for, it is possible. I put a link in the user's myfiles page that will call pop_upload_new.asp. The file gets uploaded and added to the myfiles page but not associated with any post. The user can click on the attach and reuse from any post to use the file later.
The changes required can be found here.< |
 |
|
texanman
Junior Member
 
United States
410 Posts |
Posted - 04 August 2008 : 11:00:00
|
PPSSWeb: That is exactly what I was asking. Thanks a million. You have been always helpful with this Mod. I will take a look at what you have. Thanks again.< |
 |
|
texanman
Junior Member
 
United States
410 Posts |
Posted - 04 August 2008 : 11:58:29
|
PPSSWeb: Seems to work fine but the pop_upload_new is not a pop anymore i.e. it will open in the current page you are at. Also, the file attach from a post is screwed now. First I get the pop_upload_new "two" "browse" boxes. when I try to uplaod a file, I get the following error:
Microsoft VBScript runtime error '800a01c9' This key is already associated with an element of this collection /upload.asp, line 37
where line 37 of upload.asp is: UploadRequest.Add name, UploadControl
< |
Edited by - texanman on 04 August 2008 12:04:56 |
 |
|
Topic  |
|