Author |
Topic  |
|
z-man
Starting Member
Netherlands
41 Posts |
Posted - 07 June 2001 : 05:46:56
|
I am wondering if it is possible to insert an uploaded image and to show in your message. I know HUWR's mod for uploading files (which I think is great, I wonder when it will be available on this forum), but when I use this mod I only see the paperclip that indicates an uploaded file instead of the image.
|
|
e3stone
Average Member
  
USA
885 Posts |
Posted - 07 June 2001 : 06:12:07
|
what does your code looks like that's displaying the image?
plus, you have to be sure that you have the "image is message" option turned on in the features configuration page.
<-- Eric --> 
InsideWaco.com
Edited by - e3stone on 07 June 2001 06:12:54 |
 |
|
z-man
Starting Member
Netherlands
41 Posts |
Posted - 07 June 2001 : 15:49:36
|
e3stone, what I meant is the following. I applied HUWR file attachment mod. I am now able to attach files to messages. But what I would like to have is a feature/mod that will allow a member to attach an image and will be directly displayed in the forum code ([img] instead of [url]). When I am writing this, I think this will nog be very difficult to write. In the form I will add a checkbox or a radio button that will allow a member when uploading an image (.jpg, .gif) to select it, for display it in the message.
I hope that I explained my thoughts clearly, they are sometimes a bit complex, and I have to translate them also. Never mind.
|
 |
|
thephantomnl
New Member

Netherlands
66 Posts |
Posted - 12 June 2001 : 07:23:34
|
i have done it in this way:
install huwr upload mod
edit the UploadEngine.asp replace line 174 to end:
<p> <%=strResult%></p><br><br>
<% bestandtype = Right(objUpload.Files.Item(0).FileName,4) if bestandtype = ".jpg" or bestandtype = ".JPG" or bestandtype = ".gif" or bestandtype = ".GIF" then %>
<p><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>"><a href="JavaScript:onClick= addfile2()">Close window</A></font></p> <%else%>
<p><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>"><a href="JavaScript:onClick= addfile()">Close window</A></font></p> <%end if %>
</font> </center></div> </td> </tr> </table> <script language="JavaScript"> <!-- function addfile() { var fname, resultString resultString ='<%= boolSuccess %>'; fname = '<%= faname %>'; if (resultString) window.opener.document.PostTopic.Message.value+= '[ url="pop_download.asp?mode=Edit&dir=' + '<%=strFolder%>' + '&file=' + fname + '" ]download[ /url ]'; window.close(); }
//-->
<!-- function addfile2() { var fname, resultString resultString ='<%= boolSuccess %>'; fname = '<%= faname %>'; if (resultString) window.opener.document.PostTopic.Message.value+= '[ img ]./uploaded/<%=strFolder%>' + '/' + fname + '[ /img ]'; window.close(); }
//--> </script>
</BODY> </HTML>
Edited by HuwR I added some spaces round your [ so it displays in the message
|
 |
|
z-man
Starting Member
Netherlands
41 Posts |
Posted - 12 June 2001 : 14:37:02
|
Thanks, my code looks something like that. Except your code forces every image to be displayed as an image.
Now some more changes..... Disable the possibility for uploading different files with the same filename for one member.
|
 |
|
Morpheus73
Average Member
  
Denmark
597 Posts |
Posted - 12 June 2001 : 15:02:24
|
hmmm....maybe a general update of Huwr´s file attachment set is due? - Would be nice if you would release a version containing the ability to insert pictures directly into posts like the above AND attach other files as links....also you could release the "secret" project MyFiles along with this update?
morpheus73
Morpheus73 - morpheus73@hotmail.com |
 |
|
HuwR
Forum Admin
    
United Kingdom
20593 Posts |
Posted - 12 June 2001 : 18:59:02
|
Over due I would say, just don't have the time to package it up and write instructions at the moment.
|
 |
|
fatwillie
New Member

Canada
79 Posts |
Posted - 13 June 2001 : 03:56:46
|
I got a page cannot be displayed error after trying to upload a test image.
Anyone know what is wrong? I removed the spaces and pasted the code exactly as show and went over line by line with no errors...
I also have images in posts turned on.
Fatwillie's Forum |
 |
|
thephantomnl
New Member

Netherlands
66 Posts |
Posted - 13 June 2001 : 09:40:24
|
have you correct installed the upload mod?? did it work with a download link??
|
 |
|
Intrepidone
Average Member
  
Canada
515 Posts |
Posted - 15 June 2001 : 23:38:22
|
I just tried your code thephantomnl and it worked fine (once I read HuwR's note about the spaces around the [brackets] and removed them)
Thanks for the tip
Intrepidone |
 |
|
|
Topic  |
|