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/Code)
 Mike's File Attachment Mod for Snitz
 New Topic  Topic Locked
 Printer Friendly
Previous Page | Next Page
Author Previous Topic Topic Next Topic
Page: of 15

simonettaj
Starting Member

Australia
5 Posts

Posted - 29 August 2002 :  20:45:43  Show Profile
Cool thanks for that just a typo

quote:
Originally posted by GTEUK

looks like a simple error, try inserting

Response.Write("<font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """>")

instead

Go to Top of Page

xhc0106
Starting Member

2 Posts

Posted - 30 August 2002 :  02:45:29  Show Profile
Works in FAT32 OS but can not upload binary file in NTFS OS. Can some one help?

Thanks.

Edited by - xhc0106 on 30 August 2002 02:46:32
Go to Top of Page

hackemaier
Starting Member

4 Posts

Posted - 02 September 2002 :  18:38:52  Show Profile
quote:
Originally posted by xhc0106

Works in FAT32 OS but can not upload binary file in NTFS OS. Can some one help?

Thanks.



sorry my english is not so good.

for win2k sever/pro
so you have to set the rights on the folder ..\data\.. to every user on the ntfs system. after this change it will work.
good luck.

for winxp pro
after installation of iis you get a new option under folder properties. its called webdeallocation (i dont know which word is used on an english os). here you can give the folder an aliase and rigths for the folder you will see what is to change.



philip

Edited by - hackemaier on 03 September 2002 12:19:31
Go to Top of Page

hackemaier
Starting Member

4 Posts

Posted - 03 September 2002 :  13:12:18  Show Profile
while translating the mod to german. i remark that the same file in four different uploads has three different sizes.

why?
Go to Top of Page

xhc0106
Starting Member

2 Posts

Posted - 03 September 2002 :  13:43:39  Show Profile
quote:
Originally posted by hackemaier

while translating the mod to german. i remark that the same file in four different uploads has three different sizes.

why?


Thanks for replying my post.
I believe I have right to access to the upload folder. So i can upload the text Files correctly. But for the binary files, after upload the content was changed. It can not be reopened. This problem only occur in Win2K with NTFS. It works find in Win2K with FAT32.
Can you help?
Go to Top of Page

hackemaier
Starting Member

4 Posts

Posted - 04 September 2002 :  04:54:16  Show Profile
when i try it over localhost it works. i will check it from another machine, beeing at home this evening. but on my system here it works fine. ive tested *doc files *.jpg and *.bmp
Go to Top of Page

JohnSherwood
Starting Member

United Kingdom
8 Posts

Posted - 12 September 2002 :  08:01:05  Show Profile
quote:
Originally posted by Michael Schmidt

here is the code that needs to be inserted into post.asp converted to Response.Write's:


Response.Write("<tr>")
Response.Write("<td bgColor=""" & strPopUpTableColor & """> </td>")
Response.Write("<td bgColor=""" & strPopUpTableColor & """ valign=""center"">")
Response.Write("<font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize """>")
Response.Write("<a href=""#"" onClick=""window.open('upload.html','Uploading','toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=no,resizable=yes,width=400,height=300');""><img src=""icon_paperclip.gif"" border=0>Insert File Attachment</a><br>")
Response.Write("</font>")
Response.Write("</td>")
Response.Write("</tr>")


search for the text 'Check here to include your profile signature.' and insert that code immediately before the <tr> tag that encompasses the signature checkbox tag.

that should do it for 3.4.x



Hi.

Apologies for any stupid questions I'm about to ask - I'm a total newbie to this and am in the process of implementing Snitz on our company Intranet.

I'm trying to set the attachment mod up on a 3.4.02 server but cannot for the life of me see the <tr> tag Mike mentions.

Could anyone shed any light on this?

Cheers

John
Go to Top of Page

Gooey
New Member

55 Posts

Posted - 12 September 2002 :  10:03:13  Show Profile
yeah.. it's all changed in the latest version... open post.asp and go to line number 810 which should be

" </tr>" & vbNewLine & _

after that past the following in...

" <tr>" & vbNewLine & _
" <td bgColor=""" & strPopUpTableColor & """ valign=""center"">" & vbNewLine & _
" <font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """>" & vbNewLine & _
"  <a href=""#"" onClick=""window.open('upload.html','Uploading','toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=no,resizable=yes,width=400,height=300');""><img src=""icon_paperclip.gif"" border=0>Insert File Attachment</a><br>" & vbNewLine & _
" </font>" & vbNewLine & _
" </td>" & vbNewLine & _
" </tr>" & vbNewLine & _

and that should do the trick... hopefully...
Go to Top of Page

JohnSherwood
Starting Member

United Kingdom
8 Posts

Posted - 12 September 2002 :  10:27:23  Show Profile
Nice one Gooey - works a treat
Go to Top of Page

Gooey
New Member

55 Posts

Posted - 12 September 2002 :  11:54:54  Show Profile
No probs
Go to Top of Page

Classicmotorcycling
Development Team Leader

Australia
2084 Posts

Posted - 12 September 2002 :  17:45:58  Show Profile
I have managed to get this running under 3.4.01/02 with a few modifications, but using the original upload file, so no need for COM objects/external software. and to get it running in post.asp, all did was this:

Post.asp:

Line 1051
Response.Write " <a href=""#"" onClick=""window.open('pop_upload.asp','Uploading','toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=no,resizable=yes,width=440,height=310');""><acronym title=""Upload an Image File..."">" & getCurrentIcon(strIconPaperClip,"","") & "</a> <font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """>Insert an Image File</acronym><br /></font>" & vbNewLine

In inc_iconfiles.asp at the end of the other icons listed:

Const strIconPaperClip = "icon_paperclip.gif|15|15"

I also renamed upload.html to pop_upload.asp (which I still need to change to Response.Write) and changed outputfile.asp to Response.Write. But in any case it works currently on 3.4.01/02. I have only allowed admins to use this function, but can change it to members easy enough.

Mike, if you want a copy of the files let me know and you can send then out.

Cheers,

David Greening
Go to Top of Page

DJ5A
Junior Member

163 Posts

Posted - 13 September 2002 :  11:40:18  Show Profile
Hello Everybody:

If Most of the changes Mentioned on These Replies are Added to Mike's File Attachment Mod for Snitz, I would Really like A Copy.

It Would Also be Very Nice if You had the Feature if you Could Choose Just a Link or Have Picture in the Post.

If it Has Plenty of Admin Features? The Reason I'm Sying this is I have a Bunch of Lunatices at My Forum & With Out Limits on File Types, File Size, Seperate Picture Places for Each Member & a few Other Options. LOL, It Would be To Dangerous for My Forum.

It Sounds like a Really Nice Mod & Coming Along Great!

Thank You for Your time!!!!!
DJ5A

Thank You for Your Time!!!!!
DJ5A
Go to Top of Page

samyot
Junior Member

Canada
242 Posts

Posted - 13 September 2002 :  12:56:19  Show Profile  Visit samyot's Homepage  Send samyot a Yahoo! Message
quote:
Originally posted by Classicmotorcycling

I have managed to get this running under 3.4.01/02 with a few modifications, but using the original upload file, so no need for COM objects/external software. and to get it running in post.asp, all did was this:

Post.asp:

Line 1051
Response.Write " <a href=""#"" onClick=""window.open('pop_upload.asp','Uploading','toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=no,resizable=yes,width=440,height=310');""><acronym title=""Upload an Image File..."">" & getCurrentIcon(strIconPaperClip,"","") & "</a> <font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """>Insert an Image File</acronym><br /></font>" & vbNewLine

In inc_iconfiles.asp at the end of the other icons listed:

Const strIconPaperClip = "icon_paperclip.gif|15|15"

I also renamed upload.html to pop_upload.asp (which I still need to change to Response.Write) and changed outputfile.asp to Response.Write. But in any case it works currently on 3.4.01/02. I have only allowed admins to use this function, but can change it to members easy enough.

Mike, if you want a copy of the files let me know and you can send then out.




If I understand correctly, you converted the "File Attachments v2" mod to 3.4.01/02. If possible, I would like to get a copy.

I liked the fact that you could limit file size and type and that the files where uploaded in different folders created from the username, this way you knew who's files belong to who.

Thank you in advance,

Sylvain Amyot
Forum | Home

MY OTHER SITES:
http://www.mypcsecurity.ca
http://www.mynature.ca
http://www.myworkshop.ca
http://www.toptechsites.com
http://www.topsportsites.com
http://www.mysportsforums.net
Go to Top of Page

Classicmotorcycling
Development Team Leader

Australia
2084 Posts

Posted - 13 September 2002 :  22:23:33  Show Profile
Samyot,

I have converted the mod to work on 3.4.01/02 and it has the limit file size/type and goes in each users own directory, but as it was Mike who created the MOD originally, I would like to either pass it on to him to distribute of for Mike to send me an e-mail saying I can put it up on one of the MOD boards.
quote:
Originally posted by samyot

If I understand correctly, you converted the "File Attachments v2" mod to 3.4.01/02. If possible, I would like to get a copy.

I liked the fact that you could limit file size and type and that the files where uploaded in different folders created from the username, this way you knew who's files belong to who.

Thank you in advance,


I am a great believer in not distributing other peoples MOD's with out their permission, so I always ask first, other wise I would give it to you. I don't like to put people's noses out of place.

Mike, I have fully converted the mod to 3.4.xx compatable, do you want a copy and do you want to distribute, or can you send me an e-mail giving you permission to distribute?

Sorry folks, but credit goes to the original author.

Cheers,

David Greening
Go to Top of Page

ustcatgccaa
Starting Member

22 Posts

Posted - 13 September 2002 :  22:59:06  Show Profile  Visit ustcatgccaa's Homepage
Please send the full 3.4.02-compatible to my email addy as well.
I tried making the initial program to work on my forum but i've had little success.
My post.asp has already been modified by the POLLS mod.
Should the following lines still work with v3.4.02?
Where should i place it (Polls mod changed where "..."TopicQuote" then %>" is located).
=====================================================
<tr>
<td bgColor="<% =strPopUpTableColor %>"> </td>
<td bgColor="<% =strPopUpTableColor %>" valign="center">
<font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>">
 <a href="#" onClick="window.open('upload.html','Uploading','toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=no,resizable=yes,width=400,height=300');"><img src="icon_paperclip.gif" border=0>Insert File Attachment</a><br>
</font>
</td>
</tr>
================================================

Edited by - ustcatgccaa on 13 September 2002 23:02:29
Go to Top of Page
Page: of 15 Previous Topic Topic Next Topic  
Previous Page | Next Page
 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