Author |
Topic |
|
fatwillie
New Member
Canada
79 Posts |
Posted - 06 June 2001 : 23:06:37
|
I am wondering if anyone has modified Huwrs Attachment MOD in a way that will just post a link directly to the image (or file) instead of that nasty login screen. (or if there is another upload MOD that will allow this)
I know that Vbulletin can do it so I am hoping that snitz can aswell :)
Fatwillie's Forum |
|
HuwR
Forum Admin
United Kingdom
20584 Posts |
Posted - 06 June 2001 : 23:45:01
|
yes, I have done it, remind me on sunday and I will dig out the changes
|
|
|
fatwillie
New Member
Canada
79 Posts |
Posted - 07 June 2001 : 09:15:21
|
Excellent! I will be back on sunday!
Thanks Huwr
Fatwillie's Forum |
|
|
fatwillie
New Member
Canada
79 Posts |
Posted - 10 June 2001 : 15:00:55
|
Ok Huwr, it's sunday. Let's see what you got
Fatwillie's Forum |
|
|
z-man
Starting Member
Netherlands
41 Posts |
Posted - 11 June 2001 : 06:47:13
|
Huwr,
I updated your MOD with some small changes. The file I changed was the uploadengine.asp
Members are now able to upload documents and to show (if they are images) them in the message.
Maybe it is an idea to update the MOD.
Be hearing from you.....
quote:
<p> <%=strResult%></p><br><br>
<p><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>"><a href="JavaScript:onClick= addfile_url()">Show as attachment and close Window</A></font></p> <p><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>"><a href="JavaScript:onClick= addfile_image()">Show as image and close Window</A></font></p>
</font> </center></div> </td> </tr> </table>
<script language="JavaScript"> <!-- function addfile_url() { 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 addfile_image() { 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>
|
|
|
fatwillie
New Member
Canada
79 Posts |
Posted - 12 June 2001 : 17:38:58
|
Ok, HuwR, are you gonna dig up up that code or did you mean next Sunday?
Fatwillie's Forum |
|
|
HuwR
Forum Admin
United Kingdom
20584 Posts |
Posted - 12 June 2001 : 18:56:50
|
sorry, I hadn't bothered since z-man's script is pretty much the same.
|
|
|
fatwillie
New Member
Canada
79 Posts |
Posted - 13 June 2001 : 03:59:30
|
That code is useless to me unless I can see ALL of it, there seems to be a broken image link and a link that says "download" and I cannot see the code behind it
Fatwillie's Forum |
|
|
HuwR
Forum Admin
United Kingdom
20584 Posts |
Posted - 13 June 2001 : 05:36:40
|
fixed the post so you can now read it
|
|
|
fatwillie
New Member
Canada
79 Posts |
Posted - 13 June 2001 : 18:25:51
|
Thanks guys, the code (both modified and regular)works great.
Fatwillie's Forum |
|
|
|
Topic |
|