Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/O Code)
 Drop Shadow For Images in Post (Proeders)

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!
Before posting, make sure you have read this topic!

Screensize:
UserName:
Password:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
   

T O P I C    R E V I E W
Panhandler Posted - 03 October 2007 : 20:55:58
Just an idea for those who know better;
The Proeder's mod allows users to upload images.
With a little tweaking to Proeder's orginal mod, the images show in the post. (not just as a link to the image like in the original Proeder's mod).

Would it be greatly difficult to add a drop shadow to each image when it's shown in the post?
<
15   L A T E S T    R E P L I E S    (Newest First)
phy1729 Posted - 13 October 2007 : 00:19:34
Thanks guys.<
weeweeslap Posted - 12 October 2007 : 23:57:52
ie 7 works good too<
Warlocks Posted - 12 October 2007 : 22:19:34
IE 6 works fine.<
phy1729 Posted - 12 October 2007 : 19:25:47
Can someone in IE 6 and 7 check the bottom image on http://phy1729.googlepages.com/test.html to make sure that this works?<
phy1729 Posted - 06 October 2007 : 21:11:24
alright changed the code to work with weeweeslap's suggestion I'm just posting the changed code not original
inc_common.asp

ImgTags(1,1,1) = "[img]"
ImgTags(1,2,1) = "[/img]"
ImgTags(1,1,2) = "<div class=""dropshadow""><img src="""
ImgTags(1,2,2) = """ border=""0""></div>"

ImgTags(2,1,1) = "[image]"
ImgTags(2,2,1) = "[/image]"
ImgTags(2,1,2) = ImgTags(1,1,2)
ImgTags(2,2,2) = ImgTags(1,2,2)

ImgTags(3,1,1) = "[img=right]"
ImgTags(3,2,1) = "[/img=right]"
ImgTags(3,1,2) = "<div class=""dropshadow""><img align=""right"" src="""
ImgTags(3,2,2) = """ id=""right"" border=""0""></div>"

ImgTags(4,1,1) = "[image=right]"
ImgTags(4,2,1) = "[/image=right]"
ImgTags(4,1,2) = ImgTags(3,1,2)
ImgTags(4,2,2) = ImgTags(3,2,2)

ImgTags(5,1,1) = "[img=left]"
ImgTags(5,2,1) = "[/img=left]"
ImgTags(5,1,2) = "<div class=""dropshadow""><img align=""left"" src="""
ImgTags(5,2,2) = """ id=""left"" border=""0""></div>"

ImgTags(6,1,1) = "[image=left]"
ImgTags(6,2,1) = "[/image=left]"
ImgTags(6,1,2) = ImgTags(5,1,2)
ImgTags(6,2,2) = ImgTags(5,2,2)


inc_func_posting.asp

fString = replace(fString, """ class=""img"" border=""0""></div>","[/img]", 1, -1, 1)
fString = replace(fString, """ id=""right"" border=""0""></div>","[/img=right]", 1, -1, 1)
fString = replace(fString, """ id=""left"" border=""0""></div>","[/img=left]", 1, -1, 1)

but this time line 382 needs to be changed also from

fString = replace(fString, "<img src=""","[img]", 1, -1, 1)

to

fString = replace(fString, "<div class=""dropshadow""><img src=""","[img]", 1, -1, 1)

and 392 and 3 same file

fString = replace(fString, "<img align=""right"" src=""","[img=right]", 1, -1, 1)
fString = replace(fString, "<img align=""left"" src=""","[img=left]", 1, -1, 1)
to

fString = replace(fString, "<div class=""dropshadow""><img align=""right"" src=""","[img=right]", 1, -1, 1)
fString = replace(fString, "<div class=""dropshadow""><img align=""left"" src=""","[img=left]", 1, -1, 1)

now for the new css code

Response.Write "<style>" & vbNewLine & _
".dropshadow{" & vbNewLine & _
" float:left;" & vbNewLine & _
" clear:left;" & vbNewLine & _
" background: url(shadowAlpha.png) no-repeat bottom right !important;" & vbNewLine & _
" background: url(shadow.gif) no-repeat bottom right;" & vbNewLine & _
" margin: 10px 0 10px 10px !important;" & vbNewLine & _
" margin: 10px 0 10px 5px;" & vbNewLine & _
"}" & vbNewLine & _
".dropshadow img{" & vbNewLine & _
" position:relative;" & vbNewLine & _
" bottom:6px;" & vbNewLine & _
" right: 6px;" & vbNewLine & _
" border: 1px solid #999999;" & vbNewLine & _
" padding:4px;" & vbNewLine & _
" margin: 0px;" & vbNewLine & _
"}" & vbNewLine & _
"</style>" & vbNewLine

then you need to upload http://phy1729.googlepages.com/shadow.gif and http://phy1729.googlepages.com/shadowAlpha.png to your forum directory
and that finishes it<
AnonJr Posted - 06 October 2007 : 14:31:59
Maybe this could help? [link]<
weeweeslap Posted - 06 October 2007 : 13:51:31
I think yo need to add margin
I am using same ie as above listed and I see them on this page:
http://wubbleyew.com/tests/dropshadows.htm
I haven't tried with the code posted above though<
phy1729 Posted - 06 October 2007 : 11:46:04
then IE doesn't like that I made an image have a padding I don't know how to code for IE CSS so if anyone knows any CSS tricks please post<
Panhandler Posted - 06 October 2007 : 09:34:10
Using IE 7.0.5730 - the shadow will not offset. I can see it render under the logo.

However the shadow will offset properly and show in both FireFox and Safari.

And there is no shadow whatsoever in my code implementation.
I will go back and recheck it.

<
phy1729 Posted - 05 October 2007 : 23:57:35
which browser?<
Panhandler Posted - 05 October 2007 : 11:14:05
Okay. . . I installed the code changes and nothing happened.
No drop shadow.
???<
Panhandler Posted - 05 October 2007 : 09:49:09
Thank you, you're very kind to provide that code modification.
The link that you posted doesn't have any decoration that I can see.
None the less, I will take a look at implementing that which you've provided and see come back here to let you know.

<
phy1729 Posted - 04 October 2007 : 17:56:45
no but before you go through the trouble of doing this mod see if this page illustrates what you want to do if so then continue
look in inc_func_common.asp line 1173 to 1201 ish for

ImgTags(1,1,1) = "[img]"
ImgTags(1,2,1) = "[/img]"
ImgTags(1,1,2) = "<img src="""
ImgTags(1,2,2) = """ border=""0"">"

ImgTags(2,1,1) = "[image]"
ImgTags(2,2,1) = "[/image]"
ImgTags(2,1,2) = ImgTags(1,1,2)
ImgTags(2,2,2) = ImgTags(1,2,2)

ImgTags(3,1,1) = "[img=right]"
ImgTags(3,2,1) = "[/img=right]"
ImgTags(3,1,2) = "<img align=""right"" src="""
ImgTags(3,2,2) = """ id=""right"" border=""0"">"

ImgTags(4,1,1) = "[image=right]"
ImgTags(4,2,1) = "[/image=right]"
ImgTags(4,1,2) = ImgTags(3,1,2)
ImgTags(4,2,2) = ImgTags(3,2,2)

ImgTags(5,1,1) = "[img=left]"
ImgTags(5,2,1) = "[/img=left]"
ImgTags(5,1,2) = "<img align=""left"" src="""
ImgTags(5,2,2) = """ id=""left"" border=""0"">"

ImgTags(6,1,1) = "[image=left]"
ImgTags(6,2,1) = "[/image=left]"
ImgTags(6,1,2) = ImgTags(5,1,2)
ImgTags(6,2,2) = ImgTags(5,2,2)

then replace with

ImgTags(1,1,1) = "[img]"
ImgTags(1,2,1) = "[/img]"
ImgTags(1,1,2) = "<img src="""
ImgTags(1,2,2) = """ class=""img"" border=""0"">"

ImgTags(2,1,1) = "[image]"
ImgTags(2,2,1) = "[/image]"
ImgTags(2,1,2) = ImgTags(1,1,2)
ImgTags(2,2,2) = ImgTags(1,2,2)

ImgTags(3,1,1) = "[img=right]"
ImgTags(3,2,1) = "[/img=right]"
ImgTags(3,1,2) = "<img align=""right"" src="""
ImgTags(3,2,2) = """ id=""right"" class=""img"" border=""0"">"

ImgTags(4,1,1) = "[image=right]"
ImgTags(4,2,1) = "[/image=right]"
ImgTags(4,1,2) = ImgTags(3,1,2)
ImgTags(4,2,2) = ImgTags(3,2,2)

ImgTags(5,1,1) = "[img=left]"
ImgTags(5,2,1) = "[/img=left]"
ImgTags(5,1,2) = "<img align=""left"" src="""
ImgTags(5,2,2) = """ id=""left"" class=""img"" border=""0"">"

ImgTags(6,1,1) = "[image=left]"
ImgTags(6,2,1) = "[/image=left]"
ImgTags(6,1,2) = ImgTags(5,1,2)
ImgTags(6,2,2) = ImgTags(5,2,2)


and then in inc_func_posting.asp line 394 to 396ish find

fString = replace(fString, """ border=""0"">","[/img]", 1, -1, 1)
fString = replace(fString, """ id=""right"" border=""0"">","[/img=right]", 1, -1, 1)
fString = replace(fString, """ id=""left"" border=""0"">","[/img=left]", 1, -1, 1)

then replace with

fString = replace(fString, """ class=""img"" border=""0"">","[/img]", 1, -1, 1)
fString = replace(fString, """ id=""right"" class=""img"" border=""0"">","[/img=right]", 1, -1, 1)
fString = replace(fString, """ id=""left"" class=""img"" border=""0"">","[/img=left]", 1, -1, 1)

now for the css code
look in inc_header.asp around line 232 and find

'## END - REMOVAL, MODIFICATION OR CIRCUMVENTING THIS CODE WILL VIOLATE THE SNITZ FORUMS 2000 LICENSE AGREEMENT

and under it add

Response.Write "<style>" & vbNewLine & _
"img.img {" & vbNewLine & _
" padding: 0px 5px 5px 0px;" & vbNewLine & _
" background-color:#999;" & vbNewLine & _
"}" & vbNewLine & _
"</style>" & vbNewLine

and your done<
wii Posted - 04 October 2007 : 10:14:03
Call me a nerd, but I actually laughed at loud when I read this ! LOL

quote:
Originally posted by Shaggy

CSS3 introduces a new property called box-shadow which'll do what you want. Although no browsers support it yet!



<
Panhandler Posted - 04 October 2007 : 09:55:50
quote:
Originally posted by phy1729

for a quick and easy css mod find where the img tag is and add class="img" to it then add
img.img {
padding: 0px 5px 5px 0px;
background-color:#999;
}
to a css file or in the header in <style> tags

Okay. . .but I don't know how to do that without a LOT of experimention. Can you help?

Here's Proeders outputFile.asp where the mod-to-the-mod should go:
-----------------------
<script>
if (opener.document.PostTopic.Message.createTextRange && opener.document.PostTopic.Message.caretPos) {
var caretPos = opener.document.PostTopic.Message.caretPos;
caretPos.text = "\n\n
{img] <class="img"> <% =SUBFOLDER %>/<% =filename %>[/img]
{size=1] <% =strFileSize %>[/size=1]";
} else {
opener.document.PostTopic.Message.value+="\n\n [img]<% =SUBFOLDER %>/<% =filename %>[/img]";
}
</script>
------------------------
Is the <class="img"> correct?
And:


Where would this go in the outputFile.asp?

.img {
padding: 1px 1px 5px 5px;
background-color:#999;
}


??<

Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.15 seconds. Powered By: Snitz Forums 2000 Version 3.4.07