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)
 Drop Shadow For Images in Post (Proeders)
 New Topic  Reply to Topic
 Printer Friendly
Next Page
Author Previous Topic Topic Next Topic
Page: of 2

Panhandler
Average Member

USA
783 Posts

Posted - 03 October 2007 :  20:55:58  Show Profile  Visit Panhandler's Homepage  Reply with Quote
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?
<


"5-in-1 Snitz Common Expansion Pack" - five popular mods packaged for easy install
". . .on a mote of dust, suspended in a sunbeam. . ."
HarborClassifieds
Support Snitz Forums


phy1729
Average Member

USA
589 Posts

Posted - 03 October 2007 :  21:37:01  Show Profile  Reply with Quote
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<
Go to Top of Page

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 04 October 2007 :  05:16:58  Show Profile  Reply with Quote
CSS3 introduces a new property called box-shadow which'll do what you want. Although no browsers support it yet!

<

Search is your friend
“I was having a mildly paranoid day, mostly due to the
fact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”
Go to Top of Page

Panhandler
Average Member

USA
783 Posts

Posted - 04 October 2007 :  09:55:50  Show Profile  Visit Panhandler's Homepage  Reply with Quote
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;
}


??<


"5-in-1 Snitz Common Expansion Pack" - five popular mods packaged for easy install
". . .on a mote of dust, suspended in a sunbeam. . ."
HarborClassifieds
Support Snitz Forums


Go to Top of Page

wii
Free ASP Hosts Moderator

Denmark
2632 Posts

Posted - 04 October 2007 :  10:14:03  Show Profile  Reply with Quote
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!



<
Go to Top of Page

phy1729
Average Member

USA
589 Posts

Posted - 04 October 2007 :  17:56:45  Show Profile  Reply with Quote
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<
Go to Top of Page

Panhandler
Average Member

USA
783 Posts

Posted - 05 October 2007 :  09:49:09  Show Profile  Visit Panhandler's Homepage  Reply with Quote
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.

<


"5-in-1 Snitz Common Expansion Pack" - five popular mods packaged for easy install
". . .on a mote of dust, suspended in a sunbeam. . ."
HarborClassifieds
Support Snitz Forums


Go to Top of Page

Panhandler
Average Member

USA
783 Posts

Posted - 05 October 2007 :  11:14:05  Show Profile  Visit Panhandler's Homepage  Reply with Quote
Okay. . . I installed the code changes and nothing happened.
No drop shadow.
???<
Go to Top of Page

phy1729
Average Member

USA
589 Posts

Posted - 05 October 2007 :  23:57:35  Show Profile  Reply with Quote
which browser?<
Go to Top of Page

Panhandler
Average Member

USA
783 Posts

Posted - 06 October 2007 :  09:34:10  Show Profile  Visit Panhandler's Homepage  Reply with Quote
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.

<
Go to Top of Page

phy1729
Average Member

USA
589 Posts

Posted - 06 October 2007 :  11:46:04  Show Profile  Reply with Quote
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<
Go to Top of Page

weeweeslap
Senior Member

USA
1077 Posts

Posted - 06 October 2007 :  13:51:31  Show Profile  Visit weeweeslap's Homepage  Send weeweeslap an AOL message  Send weeweeslap a Yahoo! Message  Reply with Quote
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<

coaster crazy
Go to Top of Page

AnonJr
Moderator

United States
5768 Posts

Posted - 06 October 2007 :  14:31:59  Show Profile  Visit AnonJr's Homepage  Reply with Quote
Maybe this could help? [link]<
Go to Top of Page

phy1729
Average Member

USA
589 Posts

Posted - 06 October 2007 :  21:11:24  Show Profile  Reply with Quote
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<

Edited by - phy1729 on 06 October 2007 21:49:37
Go to Top of Page

phy1729
Average Member

USA
589 Posts

Posted - 12 October 2007 :  19:25:47  Show Profile  Reply with Quote
Can someone in IE 6 and 7 check the bottom image on http://phy1729.googlepages.com/test.html to make sure that this works?<
Go to Top of Page

Warlocks
Starting Member

16 Posts

Posted - 12 October 2007 :  22:19:34  Show Profile  Reply with Quote
IE 6 works fine.<
Go to Top of Page
Page: of 2 Previous Topic Topic Next Topic  
Next Page
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 1.21 seconds. Powered By: Snitz Forums 2000 Version 3.4.07