Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/O Code)
 Insert Uploaded Picture
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

z-man
Starting Member

Netherlands
41 Posts

Posted - 07 June 2001 :  05:46:56  Show Profile
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  Show Profile  Send e3stone an AOL message
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
Go to Top of Page

z-man
Starting Member

Netherlands
41 Posts

Posted - 07 June 2001 :  15:49:36  Show Profile
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.

Go to Top of Page

thephantomnl
New Member

Netherlands
66 Posts

Posted - 12 June 2001 :  07:23:34  Show Profile  Visit thephantomnl's Homepage  Send thephantomnl an ICQ Message
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

Go to Top of Page

z-man
Starting Member

Netherlands
41 Posts

Posted - 12 June 2001 :  14:37:02  Show Profile
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.

Go to Top of Page

Morpheus73
Average Member

Denmark
597 Posts

Posted - 12 June 2001 :  15:02:24  Show Profile
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
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20593 Posts

Posted - 12 June 2001 :  18:59:02  Show Profile  Visit HuwR's Homepage
Over due I would say, just don't have the time to package it up and write instructions at the moment.

Go to Top of Page

fatwillie
New Member

Canada
79 Posts

Posted - 13 June 2001 :  03:56:46  Show Profile  Visit fatwillie's Homepage  Send fatwillie an ICQ Message
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
Go to Top of Page

thephantomnl
New Member

Netherlands
66 Posts

Posted - 13 June 2001 :  09:40:24  Show Profile  Visit thephantomnl's Homepage  Send thephantomnl an ICQ Message
have you correct installed the upload mod?? did it work with a download link??

Go to Top of Page

Intrepidone
Average Member

Canada
515 Posts

Posted - 15 June 2001 :  23:38:22  Show Profile
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
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.33 seconds. Powered By: Snitz Forums 2000 Version 3.4.07