Author |
Topic |
Etymon
Advanced Member
United States
2385 Posts |
Posted - 24 July 2002 : 02:14:47
|
A note about graphics my wife and I have found for our needs:
.gif format is excellent for colors with definite edges. .jpg format is excellent for colors with "blended" edges.
Typically, .gif is smaller, and .jpg is larger when visual quality is a concern.
My wife is an artist, and I did her website for her. She was picky about the quality so I had to play with the formats to suite her preferences. It was a good learning experience.
Just thought I'd pass the experience along. Hope it helps.
Her site is www.CricketsCreations.com
Are you looking for answers at Snitz? | Searching the forums is easiest! Basic | Advanced (Internet Explorer only) |
|
|
dayve
Forum Moderator
USA
5820 Posts |
|
BitByter
New Member
Netherlands
53 Posts |
Posted - 29 July 2002 : 20:01:25
|
i have an great idea,
it's a SHAME i cannot code asp... but i can read it ;)
this code
<script> window.opener.PostTopic.Message.value=window.opener.PostTopic.Message.value + "\n\nAttachment: [url=\"<%= SUBFOLDER & "/" & filename %>\"]<%= oldfilename %>[/url] <%= strFileSize %>"; </script>
this code will make it happen, that there will be placed an "attachment" in your posting
make this kinda script
if file = *.jpg;*.gif then Attachment: {img}blaurl.gif{/img} else <script> window.opener.PostTopic.Message.value=window.opener.PostTopic.Message.value + "\n\nAttachment: [url=\"<%= SUBFOLDER & "/" & filename %>\"]<%= oldfilename %>[/url] <%= strFileSize %>"; </script>
you get it? if someone uploads a gif or an jpg, it will be shown directly in the posting, and you can see it's an attachment
else
you get an url for clicking the illegal warez link ;)
|
|
|
dayve
Forum Moderator
USA
5820 Posts |
Posted - 29 July 2002 : 21:23:28
|
this is already being done, this thread is just using another asp script but the concept used in HuwR's upload mod does this already. If you look at UploadEngine.asp in the upload mod you will see this:
function addimage() { var fname, resultString resultString ='<%= boolSuccess %>'; fname = '<%= faname %>'; if (resultString) window.opener.document.PostTopic.Message.value+= '[ img]' + '<%= strCookieURL & "uploaded" & "/" & strFolder %>' + "/" + fname + '[ /img]'; window.close(); }
this is what I have incorporated in this version as well. I am still working on this versin to include all the bells and whistles that HuwR's version did so check back soon.
http://www.nineinchnailz.com
Edited by - dayve on 29 July 2002 21:24:15 |
|
|
BitByter
New Member
Netherlands
53 Posts |
Posted - 29 July 2002 : 22:05:31
|
i have made it already myself
change in outputfile.asp the following
replace this:
If _ extension <> ".asp" And _ extension <> ".aspx" And _ extension <> ".cgi" And _ extension <> ".pl" And _ extension <> ".php" And _ extension <> ".vbs" And _ extension <> ".vbx" And _ extension <> ".scr" And _ extension <> ".js" And _ extension <> ".com" And _ extension <> ".bat" And _ byteCount <= 50000000 _ Then
with this:
select case extension case ".jpg", ".jpeg", ".gif", ".png" allowFile=true case else allowFile=false end select If allowFile and byteCount <= 500000 Then
replace this:
<script> window.opener.PostTopic.Message.value=window.opener.PostTopic.Message.value + "\n\n{b}Attachment:[/b] [url=\"<%= SUBFOLDER & "/" & filename %>\"]<%= oldfilename %>[/url] <%= strFileSize %>"; </script>
with this:
<script> window.opener.PostTopic.Message.value=window.opener.PostTopic.Message.value + "{b}Attachment:[/b]\n{img}\ lt % SUBFOLDER / filename % gt \[/img]\n<%= oldfilename %> {b}<%= strFileSize %>[/b]"; </script>
it does the following:
it only allow's *.jpg, *.jpeg, *.gif, *.png; sets the maximum file size to 500kb (you can adjust this yourself) pastes the image right into the posting/reply
note: change the {img} into [ img ] whithout spaces change the {b}'s into [ b ]'s whithout spaces
the {script} {/script} thingy doesn't work right :(
Edited by - BitByter on 29 July 2002 22:23:20 |
|
|
dayve
Forum Moderator
USA
5820 Posts |
Posted - 29 July 2002 : 22:59:05
|
quote:
i have made it already myself
I mean the whole package that this mod will be, not just this small tweak.
http://www.nineinchnailz.com |
|
|
spg
Starting Member
26 Posts |
Posted - 30 July 2002 : 10:45:52
|
Has anyone tried using this mod and the avatar mod to allow uploading of custom avatars? I'm going to see if I can do it myself, but I thought I would ask to see if anyone else has done it first.
|
|
|
dayve
Forum Moderator
USA
5820 Posts |
Posted - 30 July 2002 : 10:52:30
|
quote:
Has anyone tried using this mod and the avatar mod to allow uploading of custom avatars? I'm going to see if I can do it myself, but I thought I would ask to see if anyone else has done it first.
I have not tweaked this upload script for avatars, BUT there is a working upload avatar mod that works just fine:
http://www.ls3k.com/snitz/mods.asp?action=details&ID=30
http://www.nineinchnailz.com |
|
|
spg
Starting Member
26 Posts |
Posted - 30 July 2002 : 11:02:16
|
quote:
quote:
Has anyone tried using this mod and the avatar mod to allow uploading of custom avatars? I'm going to see if I can do it myself, but I thought I would ask to see if anyone else has done it first.
I have not tweaked this upload script for avatars, BUT there is a working upload avatar mod that works just fine:
http://www.ls3k.com/snitz/mods.asp?action=details&ID=30
Yeah, but you have to have HuwR's file upload mod, which you can't get anymore unless you download his whole source code. I'll probably work with this code and see what I can come up with.
|
|
|
dayve
Forum Moderator
USA
5820 Posts |
Posted - 30 July 2002 : 11:07:52
|
quote:
Yeah, but you have to have HuwR's file upload mod, which you can't get anymore unless you download his whole source code. I'll probably work with this code and see what I can come up with.
not true, yes it uses the same components, but it is very good code. I've been using it ever since I went to 3.3 and I keep seeing everyone say it doesn't work when in fact it does. the only thing I had to modify SLIGHTLY was my uploadengine.asp and I will gladly give you my copy of it. otherwise it works like a champ.
I will put a little more focus on this one but considering that the avatar mod writes to a database as well, it will take a little more time and include just as many lines of code as HuwR's.
http://www.nineinchnailz.com |
|
|
Michael Schmidt
Starting Member
23 Posts |
Posted - 30 July 2002 : 11:17:22
|
quote:
Yeah, but you have to have HuwR's file upload mod, which you can't get anymore unless you download his whole source code. I'll probably work with this code and see what I can come up with.
yeah this is what drove me to make this simple upload mod. not everyone can make the jump from snitz to huw's forum.
BitByter I like your image attachment idea. thanks for the code! One thing i thought of when reading your post was that you could choose to have it show as a link or image based on its file size too. so if someone uploads a 100+KB image, make it show as a link so forum readers wont have to wait for it to load when they view the thread.
|
|
|
dayve
Forum Moderator
USA
5820 Posts |
Posted - 30 July 2002 : 11:45:04
|
quote:
quote:
Yeah, but you have to have HuwR's file upload mod, which you can't get anymore unless you download his whole source code. I'll probably work with this code and see what I can come up with.
yeah this is what drove me to make this simple upload mod. not everyone can make the jump from snitz to huw's forum.
this statement was referring to the Avatar Upload Mod though. Not just a simple upload mod.
http://www.nineinchnailz.com |
|
|
Etymon
Advanced Member
United States
2385 Posts |
Posted - 30 July 2002 : 17:31:15
|
quote:
not true, yes it uses the same components, but it is very good code. I've been using it ever since I went to 3.3 and I keep seeing everyone say it doesn't work when in fact it does. the only thing I had to modify SLIGHTLY was my uploadengine.asp and I will gladly give you my copy of it. Otherwise it works like a champ.
Dayve,
Could you please post that uploadengine.asp file?
Thanks,
Etymon
Are you looking for answers at Snitz? | Searching the forums is easiest! Basic | Advanced (Internet Explorer only) |
|
|
BitByter
New Member
Netherlands
53 Posts |
Posted - 31 July 2002 : 14:21:45
|
quote:
quote:
Yeah, but you have to have HuwR's file upload mod, which you can't get anymore unless you download his whole source code. I'll probably work with this code and see what I can come up with.
yeah this is what drove me to make this simple upload mod. not everyone can make the jump from snitz to huw's forum.
BitByter I like your image attachment idea. thanks for the code! One thing i thought of when reading your post was that you could choose to have it show as a link or image based on its file size too. so if someone uploads a 100+KB image, make it show as a link so forum readers wont have to wait for it to load when they view the thread.
you better can look at the "size" of the image, like 600x400 or something,
the only thing i needed was a "image uploading automatic tool thingy" i'm not running a warez board you know ;) SO i'm happy with my solution right now, if i can do both, it would be better i guess... little mpgs etc ;)
|
|
|
Michael Schmidt
Starting Member
23 Posts |
Posted - 20 August 2002 : 09:48:29
|
Has anyone had any success installing this mod on snitz 3.4? I can't see any reason why there'd be any problems, but i received an email from someone asking for help. I dont even have 3.4 yet so i havent been able to try it.
Thanks.
Michael |
|
|
Topic |
|