Making A Transparent Skin - NBS






 

 

Making A Transparent Skin - NBS

View Full Version : Making A Transparent Skin


halfcut
05-Nov-2002, 02:24 PM
Well
I'm sure you've all checked out Aaron's transparent skin by
now and you may be wondering how it was done. Its no big secret it just
involves some slightly more advanced than usual CSS techniques and tweaks
to Invision Boards templates and macros.

Firstly you could probably
do with a background image, this can be a tiling non tiling image, fixed
or not for our purposes I'll be using a fixed background called
bg.jpg.

Upload bg.jpg to your style_images/*/ folder

Open up
your stylesheet in the admin CP and add :

body { background-image:
url("style_images/<#IMG_DIR#>/bg.jpg");background-attachment:fixed
}

refresh your forums and the
background should be there.

Transparency

Also you may
only wish to make a certain area of your board transparent if speed is an
issue. In this little tutorial I'll just be covering .forum1 .forum2
which is the area on the board view which has forum name, description,
number of topics, replies and last post info.

In the default
invision board stylesheet these are defined by .forum1 { background-color: #DFE6EF }
.forum2
{ background-color: #E4EAF2 }

the CSS definition for alpha
tranparency is filter: alpha(opacity="A VALUE BETWEEN 0 and 100") where
0 is completely transparent and 100 is completely opaque. A value of
around 60 - 70 is most suitable.

Syntax
:

.forum1 { background-color:
#DFE6EF; filter: alpha(opacity="70") }
.forum2 {
background-color: #E4EAF2; filter:
alpha(opacity="70") }


However if you try making that
change you may notice that not very much has happened, maybe the text has
got a bit fainter but not much else.

This is because invision
creates its various table borders seperating lines etc not with the
command border='1' as you might think, but by manipulating
cellspacing and layering bgcolors on top of each other.

Look
through your templates and in a lot of the main table definitions
you'll see bgcolor="<{tbl_border}>" In 1.1 {tbl_border} is a macro so its not
too much trouble to rectify the problem.

Go to Admin CP, Skins &
Templates, Manage Macros and about 5th from the bottom you'll see
tbl_border which in the default skin has a value of #345487. WARNING do
not remove this macro completely as the templates still refer to it,
instead edit it and simply delete the #345487 so tbl_border now has a
blank field.

Still not transparent? well thats that layering thing
I mentioned earlier, the solution to this lies both in your stylesheet but
more importantly in your templates. The final obstacle to transparency is
.mainbg in your stylesheet.

You could set this as transparent
however the effect isn't pleasing to the eye, it just fades
everything, make it completely transparent and you forum will vanish.
However 1.1 has a very useful tool.

Go back to admin cp, manage
styles & templates, manage stylesheets and edit. Right at the top
you'll see Show me where... .hlight is used in the
templates. In the box which shows .hlight find .mainbg and click go. A
list of the templates where .mainbg is used will be produced. This is the
laborious bit, however as this tutorial only concerns the board section
its quite simple.

The first template that pops up is + subheader so
edit ACP Home -> Template Control Home -> Invision Board Template Set ->
skin_boards -> subheader, what your looking for is anything that refers to
class='mainbg' for example in subheader its
<td
class='mainbg'>. You simply remove the
class='mainbg' bit leaving you with a simple
<td> tag. Update the template.

Now for
the bit we're interested in the next one down is + CatHeader_Expanded
open it up and edit it. Again you'll find a <td
class='mainbg'> get rid of the class='mainbg' and update.

And your forum1 & forum2
should now be transparent

http://www.virtual-forum.com/tutorial.jpg

You can apply this technique to any area of your
stylesheet including graphics, for example category backgrounds etc so
just experiment with it.

Adam

edit : you get big speed
increases by not fixing the background, but this only really suitable for
a tiling bg, and you won't get the effect of the forums
'floating' over the background.

WxChat
05-Nov-2002, 02:51 PM
Well there
goes our secret LOL! Great tutorial ;) I forgot all the steps
that we did to get that skin to work right :rolleyes:


And I see that as we did before by deleteing the tables with this
version it would be detramental if you did :)

Thanks
Adam!

Aaron

halfcut
05-Nov-2002, 03:01 PM
Originally posted by WxChat+Nov 5
2002, 02:51 PM--></span><table border='0' align='center' width='95%'
cellpadding='3' cellspacing='1'><tr><td>QUOTE (WxChat @ Nov 5
2002, 02:51 PM)</td></tr><tr><td id='QUOTE'>Well there
goes our secret LOL! Great tutorial ;) I forgot all the steps
that we did to get that skin to work right :rolleyes:


And I see that as we did before by deleteing the tables with this
version it would be detramental if you did :)

Thanks
Adam!

Aaron

<!--QuoteBegin-WxChat@Nov 5 2002, 02:51 PM
Well there goes our
secret LOL! Great tutorial ;) I forgot all the steps
that we did to get that skin to work right &nbsp;:rolleyes:


And I see that as we did before by deleteing the tables with this
version it would be detramental if you did :)

Thanks
Adam!

Aaron[/quote]
lol sorry about that Aaron heh,
but you know what they say 'share the wealth' :lol: ,
hopefully it might discourage people from just hacking your skin to
bits......doubtful but you never know :D

WxChat
05-Nov-2002, 03:50 PM
that CSS code took me FOREVER to figure out LOL!!!

Then you came
in and made me realize that the tables were labled.. As for hacking our
skin the copyright better be on there <_< .... Now if they take
the original skin and hack it great.

Aaron

halfcut
06-Nov-2002, 12:51 AM
additional transparency effects :

syntax
:

filter:alpha(Opacity=??,
FinishOpacity=??, Style=?, StartX=??, StartY=??, FinishX=??,
FinishY=??);

Opacity=?? we know about but

Sets the opacity of the object. 0 = invisible, 100 = completely visible.
Sets the start opacity when used in conjunction with
FinishOpacity.


FinishOpacity=??
Sets the opacity for the
end of the of the object. Creates a gradient effect.


StartX=??,
StartY=??, FinishX=??, FinishY=??
Sets the coordinates for the opacity
to start or end.


Style=??
Sets the type of gradient. 1 =
Horizontal; 2 = Radial; 3 = Rectangular.

WxChat
06-Nov-2002, 01:13 AM
Very
kewl but I can't imagine what this will do the older systems LOL!
:lol:

Aaron

CoLdFuSi0n
06-Nov-2002, 01:25 AM
i
was wondering where abouts do you put
body { background-image:
url("style_images/<#IMG_DIR#>/bg.jpg");background-attachment:fixed
}
in

form { display: inline
}
TABLE, TR, TD { font-family: Verdana, Tahoma, Arial; font-size:
8.5pt; color: #000000 }
a:link, a:visited, a:active { text-decoration:
underline; color: #000000 }
a:hover { color: #465584 }
.hlight {
background-color: #DFE6EF }
.dlight { background-color: #EEF2F7
}
.mainbg { background-color: #FFFFFF }
.mainfoot {
background-color: #A5C2E8 }
.forum1 { background-color: #DFE6EF
}
.forum2 { background-color: #F2F4F7 }
.post1 { background-color:
#F5F9FD }

halfcut
06-Nov-2002, 01:57 AM
at
the top of the stylesheet is fine or after form ;) for reference the top
of the stylesheet in the transparent skin is form { display: inline }

body {
scrollbar-3dlight-color: #6699CC; scrollbar-highlight-color:
#99CCFF; scrollbar-face-color: #6981C9; scrollbar-arrow-color:
#99CCFF; scrollbar-shadow-color: #336699;
scrollbar-darkshadow-color: #000000; scrollbar-track-color:
#000000; background-image:
url("style_images/<#IMG_DIR#>/bg.jpg")
}

TABLE, TR, TD { font-family: Verdana, Tahoma, Arial;
font-size: 7.5pt; color: #FFFFFF
}


edited to remove the whole
stylesheet, bit pointless when you download the skin
:blink:

halfcut
06-Nov-2002, 02:01 AM
Originally posted by WxChat@Nov 6
2002, 01:13 AM
[b]Very kewl
but I can't imagine what this will do the older systems LOL!
:lol:

Aaron
there may
be alot of smoke and funny noises :D

Aristia
06-Nov-2002, 08:21 AM
LMAO well
it is a very kewl skin :) i think
you should use it to put the old machines out of their misery
:P

WxChat
06-Nov-2002, 03:39 PM
ROFL!! :lol: Hear
Hear! I could not agree with you more ;)

Aaron

halfcut
06-Nov-2002, 05:22 PM
ah ha
but I've done another topic involving transparency that will actually
help your pc and if you have a crappy modem like me save you time
:D

Topgunn9
08-Nov-2002, 04:41 AM
Someone
mentioned making the transparent skin into the matrix theme. If no-one has
started this and with wxhat & halfcut's permission I would quite like
to try and make the matrix theme by editing their transparent theme. Has
anyone started it and can I have your permission?

LLOYD
IBF Team
Leader

halfcut
08-Nov-2002, 02:40 PM
well you got mine young fella me lad...make the transparency about 90 to
95 and it'll work very nicely :D

Aristia
08-Nov-2002, 02:51 PM
Cool
! i thought the
transparent skin was a bandwidth eater!

We made a low resourse
skin but got deleted cos we had a prob on the forum.

WxChat
08-Nov-2002, 05:41 PM
You
have my permission but if you use our skin I would like it mentioned that
you used our skin to obtain your skin :) Or you
can take a original IBF and just follow the tute by halfcut in the tips
and tricks froums and makeyour own :) either
way your set ;)

Aaron

Fierce Deity
19-Nov-2002, 10:07 PM
I've noticed that with transparent text areas, that some of the
ibcodes like glow, blur, ect., do not work to well with it. It would seem
that is makes a hole in the text area and the glow or whatever the effect
can't be seen all that well.

you can see that I mean if you
look at the portal for my site here:
www.cgi-bin.spaceports.com/~spi/forum

You have to copy and paste
it.

MasterIceWolf
24-Nov-2002, 05:14 PM
I have one question..

I just finished making my 1st skin and
it's transparent. But I have notices every now and they the button
icons on the main pg are complety (100%) transparent.

Is this
something I messed up on or a bug?

They will show if I refresh pg
or just hight the part where the icon is.

MIW

Yado
27-Nov-2002, 06:51 PM
these effects don't work in any other browser except ie do they? and
only on ie for windows?

or am i wrong?

NiteMare-ReTuRn$
28-Nov-2002, 03:55 PM
May I just say thanks to WxChat & HalfCut for the Tutorial also working
out how to make the skin transparent, I have just finished my first
transparent one with a Christmas theme which im hoping to submit when I
get home tonight.

I have added at the bottom of the skin the
following:

Skin by Chris for IBFskinned
Using tutorial on the
IBFskinned forum
by
WxChat & HalfCut


I think that credit
should be given to you both regardless of if we use your skin or just the
tutorial.
:)

Gemma
28-Nov-2002, 10:12 PM
I know absolutely nothing at all about making Skins. Athough I would like
to learn. :)

M3NF
28-Nov-2002, 10:15 PM
well you come to the right place hehe, ask away, in our support froum in
the archive there are some tut to help making skins, take a look there for
starters

shadeishigh
22-Dec-2002, 09:48 AM
yo check out my forums, im useing chris's xmas skin and i modified it to use the fadeing technique metioned early...its cool but i wish i could make it fade from top to bottom rather than left to right. :(

http://shadeishigh.coolfreepages.com/forums/index.php

OBCENEIKON
26-Dec-2002, 03:19 PM
Originally posted by shadeishigh@Dec 22 2002, 09:48 AM
yo check out my forums, im useing chris's xmas skin and i modified it to use the fadeing technique metioned early...its cool but i wish i could make it fade from top to bottom rather than left to right. :(

http://shadeishigh.coolfreepages.com/forums/index.php
How did you manage to make the bar showing the forum/category/topic you are veiwing to be transparent?

wimpie
07-Jul-2003, 09:45 AM
how about transparency for 1.2 RC1?
anyone got an idea?
thanks,wimpie

AjRap2
07-Jul-2003, 11:16 AM
should still use filter: alpha(opacity="70") in the stylesheet and change 70 to the desired transparency that suites your needs.

AjRap2
10-Jan-2004, 06:15 PM
Pinned this Topic, thought it might still be useful to some who may not have been here as long as others :D

Ash
10-Jan-2004, 07:36 PM
yeah, this is a very old topic :D

MikeC
10-Jan-2004, 07:52 PM
moved to archive :)