Author |
Topic |
RTM
Starting Member
1 Posts |
Posted - 13 November 2002 : 15:40:09
|
Greetings,
We are running the beta version of Snitz 4.0, and it appears to be quiter stable. We really needed version 4 for the multilingual features.
I am looking for a file upload mod that works with 4.0 - has anyone gotten this one to work in 4.0? If so, I would greatly appreciate any suggestions.
Thanks!
Rob
|
|
|
leblanc9425
New Member
USA
92 Posts |
Posted - 13 November 2002 : 17:37:00
|
Nice mod! I've got it working but one question, is the image suppose to be in the post (like a thumbnail) or just the icon to download?
|
www.Slug-Lines.com Snitz Version 3.4.07 |
Edited by - leblanc9425 on 14 November 2002 09:38:06 |
|
|
leblanc9425
New Member
USA
92 Posts |
Posted - 20 November 2002 : 08:17:09
|
Is there a mod to show the thumbnail of the picture for this?? |
www.Slug-Lines.com Snitz Version 3.4.07 |
|
|
DJ5A
Junior Member
163 Posts |
Posted - 20 November 2002 : 08:57:44
|
Hello Everybody:
In the OutputFile.asp page there is a Setting You can Toggle by Comenting it out with // I Think I have Reworded mine a Litlle bit too but here is the code you are looking for:
<script> //window.opener.PostTopic.Message.value=window.opener.PostTopic.Message.value + "\n\nImage Insert:
<% =strFileSize %>";
window.opener.PostTopic.Message.value=window.opener.PostTopic.Message.value + "\n\nDownload Attachment: [url=\"<% =strForumURL %><% =SUBFOLDER %>/<% =filename %>\"] <% =oldfilename %>[/url] <% =strFileSize %>"; </script>
You can set it where it shows an Image or a Paper Clip with an URL in it, by commenting one of them out?
For some reason, I get get the Code to line up right, but as you see. I'm using the Link with Paper Clip.
I just Wish I could fix it where:
Limit the Number of Pics in each members folder
Have it where they can see all pics or file names in the folder so they can go back & get the URL that paticular Pic.
I'm Hoping Someone will do this coding for the Mod?
I also think dayve was working on something similar to this but Never saw no more info on it, I could be wrong, Because I'm just Wishing Somebody can come up with some of these Changes!
I do appreciate this Mod & I'm Looking forward to someone adding these changes! :) |
Thank You for Your Time!!!!! DJ5A |
Edited by - DJ5A on 20 November 2002 09:09:48 |
|
|
jbloom459
Starting Member
USA
5 Posts |
Posted - 22 November 2002 : 16:45:10
|
I've got Mike's mod in for uploading files. I can get the file uploaded, but when I go to the message, and attempt to download it. This is what I see.
Download Attachment: img]images/icon_paperclip.gif[/img] cqrpt.doc 356.78 KB
I left the "[" out of the above example so it would show what I see instead of a broken link here.
And when I click on the link, obviously, I don't get the file because everything after the ":" is highlighted red and registering as part of the link.
Any suggestions?
John |
Edited by - jbloom459 on 22 November 2002 16:46:25 |
|
|
James
Average Member
USA
539 Posts |
Posted - 26 November 2002 : 21:22:18
|
I made a couple little changes to outputFile.asp to make images appear in the post and other files appear as a link.
Around line 32, change:
select case extension
case ".jpg", ".jpeg", ".gif", ".zip", ".doc"
allowFile=true
case else
allowFile=false
end select
to read:
ImageFileType=false
select case extension
case ".jpg", ".jpeg", ".gif", ".png" '##Image File extensions
allowFile=true
ImageFileType=true
case ".txt", ".zip", ".doc" '##Downloadable file extensions
allowFile=true
case else
allowFile=false
end select
Around line 70 I changed:
%>
<script>
//window.opener.PostTopic.Message.value=window.opener.PostTopic.Message.value + "\n\nImage Insert:
<% =strFileSize %>";
window.opener.PostTopic.Message.value=window.opener.PostTopic.Message.value + "\n\nDownload Attachment: [url=\"<% =strForumURL %><% =SUBFOLDER %>/<% =filename %>\"] <% =oldfilename %>[/url]
<% =strFileSize %>";
</script>
<%
to read:
If ImageFileType=true then
%>
<script>
window.opener.PostTopic.Message.value=window.opener.PostTopic.Message.value + "\n\nImage Insert:
<% =strFileSize %>";
</script>
<%
response.write "Image file true"
Else
%>
<script>
window.opener.PostTopic.Message.value=window.opener.PostTopic.Message.value + "\n\nDownload Attachment: [url=\"<% =strForumURL %><% =SUBFOLDER %>/<% =filename %>\"] <% =oldfilename %>[/url]
<% =strFileSize %>";
</script>
<%
response.write "Image file false"
End If
note: You may have to click reply to this post and copy the code from there as the forum corrupts the image line.
The only problem I've run into right now is that netscape will not insert the links or images into the message (IE works fine). Has anyone come up with a solution for this? I'll even settle for a javascript solution similar to the prompt format mode used to insert links, etc. I remember an older version of the forums use to insert smiles from a seperate window with netscape so there must be a way. |
*Interested in Radio Control* *The RC Web Board - http://www.rcwebboard.com/* |
|
|
SagaService
Junior Member
108 Posts |
Posted - 27 November 2002 : 08:16:59
|
Hi.
I used the script (Mikes_file_attachment-34-34xx.zip) in my demoforum at http://www.vti-fotball.no/forum2 . It works just nice (translated files to norwegian language). Do anybody know if I can use this MOD in Snitz Forums 2000 v4.beta03 ? I tried to add this line in the file post.asp but it didn't work...
Response.Write " <a href=""#"" onClick=""window.open('pop_upload_new.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
Any ideas?
Per Lund |
|
|
James
Average Member
USA
539 Posts |
Posted - 29 November 2002 : 05:53:25
|
quote: Do anybody know if I can use this MOD in Snitz Forums 2000 v4.beta03 ?
SagaService, sorry but it won't work with 4.b03 that is equivalent to a 3.3.5 forum, not a 3.4 forum. To be able to use it with version 4 you will have to wait for 4.b04 which there is no estimate of when it'll be ready.
quote: The only problem I've run into right now is that netscape will not insert the links or images into the message (IE works fine). Has anyone come up with a solution for this? I'll even settle for a javascript solution similar to the prompt format mode used to insert links, etc.
Has anyone solved this??? Still driving me nuts that i can't figure that out.
BTW, I made a mod that will let your users view what files they have uploaded. It creates a dynamic listing of their upload directory and displays their files color-coded by file type. It adds a button on their profile to let them view their uploaded files. You can read about it here. |
*Interested in Radio Control* *The RC Web Board - http://www.rcwebboard.com/* |
|
|
ZeroAvengerX
Starting Member
USA
48 Posts |
Posted - 29 November 2002 : 11:24:04
|
i made a mod of james's mod for this mod (tounge twister) that basically allows users to use their older files that were uploaded previously, i will make a thumbnail view on it in like 5 minutes so look out for that one |
|
|
ZeroAvengerX
Starting Member
USA
48 Posts |
Posted - 29 November 2002 : 11:39:39
|
my add-on to jame's mod also allows users to reuse pictures thet have already uploaded |
|
|
homeacademy
Junior Member
USA
163 Posts |
Posted - 01 December 2002 : 18:42:14
|
quote: The only problem I've run into right now is that netscape will not insert the links or images into the message (IE works fine). Has anyone come up with a solution for this? I'll even settle for a javascript solution similar to the prompt format mode used to insert links, etc.
I believe I have found a solution to this problem. I have tested it on IE 6, IE 5.5, and Netscape 7. To implement:
Find the code like the following in outputFile.asp:
<script>
//window.opener.PostTopic.Message.value=window.opener.PostTopic.Message (etc)
</script>
Replace with:
<script>
if (opener.document.PostTopic.Message.createTextRange && opener.document.PostTopic.Message.caretPos) {
var caretPos = opener.document.PostTopic.Message.caretPos;
caretPos.text = "*** put code for attachment/image insertation HERE ***";
} else {
opener.document.PostTopic.Message.value+="*** put code for attachment/image insertation HERE ***";
}
</script>
Just replace the *** put code for attachment/image insertation here *** with the code you want inserted into the post. Hope this solution works out for everyone. |
|
|
James
Average Member
USA
539 Posts |
Posted - 02 December 2002 : 23:02:13
|
homeacademy, I owe you a great deal of thanks. I even used the code from the smiles but was still missing something and your code works like a charm.
OK, you can grab outputFile.asp with the changes here.
The only real changes from the original other than the fix for netscape is it "inserts images" and "makes links" for other file types instead of having one or the other.
Also, the standard warning about if your upload folder is named something other than "uploads" then make changes to lines 5 and 49. |
*Interested in Radio Control* *The RC Web Board - http://www.rcwebboard.com/* |
Edited by - James on 03 December 2002 21:26:40 |
|
|
leblanc9425
New Member
USA
92 Posts |
Posted - 03 December 2002 : 14:01:05
|
Have any of you tried to modify this upload utility (with images now!!) to work with the Classified Ads Mod??? This would be a great addition to the classified mod because the way it is now, the person must have a website to link a picture to the ad. I've got a working copy of the Classified Ads Mod if you'd like to take a look and see how difficult it might be.
You can see it on my site at: http://www.slug-lines.com/forum/classifieds.asp
I've been trying to figure this out but I'm not very good at this ASP stuff (yet). |
www.Slug-Lines.com Snitz Version 3.4.07 |
Edited by - leblanc9425 on 03 December 2002 14:02:17 |
|
|
aluminumcan
New Member
63 Posts |
Posted - 03 December 2002 : 15:49:24
|
Can someone summarize?
I'm an ASP and Snitz newbie, so I apologize in advance for asking anything stupid ;o)
I've been looking for a way to have a person in our company post a file to the intranet and allow others to comment on said file.
I got Snitz 3.4.03 installed (I was impressed with how easy it was to install!) and then ended up in this forum to find out a bit more about Mike's File Upload.
Of course, reading through this, I see that there seems to be a lot more options out there. Can anyone give a brieve synopsis on the different between Mike's, Dayve's, and HuwR's Mods?
I've also seen a lot of code snippets that appear to offer file uploading capabilities as well, but where, exactly, should this code be inserted?
|
|
|
leblanc9425
New Member
USA
92 Posts |
Posted - 04 December 2002 : 08:32:09
|
Just a follow-up that the modified outputfile.asp worked perfectly!! As stated above, I made to make changes in lines 5 and 49 to reflect my directly.
Great work guys!! |
www.Slug-Lines.com Snitz Version 3.4.07 |
|
|
Topic |
|