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)
 Huwrs File Attachment Script.....?
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

fatwillie
New Member

Canada
79 Posts

Posted - 06 June 2001 :  23:06:37  Show Profile  Visit fatwillie's Homepage  Send fatwillie an ICQ Message
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  Show Profile  Visit HuwR's Homepage
yes, I have done it, remind me on sunday and I will dig out the changes

Go to Top of Page

fatwillie
New Member

Canada
79 Posts

Posted - 07 June 2001 :  09:15:21  Show Profile  Visit fatwillie's Homepage  Send fatwillie an ICQ Message
Excellent! I will be back on sunday!

Thanks Huwr

Fatwillie's Forum
Go to Top of Page

fatwillie
New Member

Canada
79 Posts

Posted - 10 June 2001 :  15:00:55  Show Profile  Visit fatwillie's Homepage  Send fatwillie an ICQ Message
Ok Huwr, it's sunday. Let's see what you got

Fatwillie's Forum
Go to Top of Page

z-man
Starting Member

Netherlands
41 Posts

Posted - 11 June 2001 :  06:47:13  Show Profile
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>




Go to Top of Page

fatwillie
New Member

Canada
79 Posts

Posted - 12 June 2001 :  17:38:58  Show Profile  Visit fatwillie's Homepage  Send fatwillie an ICQ Message
Ok, HuwR, are you gonna dig up up that code or did you mean next Sunday?

Fatwillie's Forum
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 12 June 2001 :  18:56:50  Show Profile  Visit HuwR's Homepage
sorry, I hadn't bothered since z-man's script is pretty much the same.

Go to Top of Page

fatwillie
New Member

Canada
79 Posts

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

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 13 June 2001 :  05:36:40  Show Profile  Visit HuwR's Homepage
fixed the post so you can now read it

Go to Top of Page

fatwillie
New Member

Canada
79 Posts

Posted - 13 June 2001 :  18:25:51  Show Profile  Visit fatwillie's Homepage  Send fatwillie an ICQ Message
Thanks guys, the code (both modified and regular)works great.

Fatwillie's Forum
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.21 seconds. Powered By: Snitz Forums 2000 Version 3.4.07