A new face for Socialgo
By ezra vancil
Quick Test: removing sidebar
By ezra vancil
with just a quick test this works but no bug testing and also you will have to adjust the sizes of zone-e (must have LM turned on or you would use a different tag I think it's #main-content would replace #zone-e ) My code is redundant, to show you what is happening. The commas important.
Here is the Jest:
FatBabys need love too
By ezra vancilPicture Resize
The picture resize will take any image placed in your blog, profile (avatar) or group (avatar) and resize it accordingly with the size of someone's monitor. Here are a few guidelines to go buy.1. You want your blog pictures to hit the average size of most monitors so that it is not stretched to a blurry mess. This would mean if you post a picture that's tiny 20px x 20px it's going to strech to 700px on a 1200px wide monitor.
The remedy: Hit the average sweet spot. The sweet spot falls between 500px and 600px. If you don't know all this mubo jumbo px stuff, than the rule of thumb is that the picture should be big enough to fill two thumbs on your screen. For tiny pictures. Just drop them on a white, or cool looking back ground that is larg enough to fit the blog.
Universal Blog rules
Don't think because you have a Fatbaby your load is greater than others. Just look around at a handful of blogs. People that care about their blogs care about it's appearance. So, it is a common practice to size your images to fit the layout of your blog... in short, everyone should be doing this.User Driven Blogs
If your blog is open to the public you won't have so much control. But here is the cool thing about the public.. they almost always post pictures too big for the blog. I know this from having a user driven blog. They grab them off the net, or from their iphoto and the picture is usually sized to fit a avrage page (because it's off the net) or it's freak'n huge because the uploaded it from their camera. BUT, if you do have a problem, we will be posting how to remove this feature in your fatbaby group.Template Groups
By ezra vancilEzra Out of touch
By ezra vancilThank you, and those of you in the know, please help others on this site if you can.. would be greatly appreciated.
ez
Fat And Proud of it!
By ezra vancilFatBABY Squished to 700px wide.

FatBABY stretched to 1290px wide.
And That's not ALL
As with all PSG templates you will be assigned a special group where you will find plenty of ActionCODE add-ons like this FATbaby picture controller which allows you to upload any size picture (at a reasonable size) and it will automatically resize your picture depending on how big your FATbaby is stretched or squished, AND it puts a nifty little frame around all your pictures too.
PICTURE CONTROLLER 700px
PICTURE CONTROLER 1290px
CSS 101: BACKGROUNDS
By ezra vancilBroken down backgrounds
I will show you each property and then I'll show you the shorthand for incorporating all properties into one statement.
Background color
To effect the background color of any block element is a simple as:
#header {
background-color: #454545;
}
Background Image
You can put a image in the background of any element with "URL" just place the image URL inside of the "()". I sometimes will upload images onto my SocialGo Network, right click on them.. and tada! I have my Image URL.
#header {
background-image: url(www.mysite.com/image.gif);
}
Background Repeat
The most powerful thing about the background image is that you can tell it to repeat vertically horizontally or both directions... or not to at all. Let's look at the three options. You see the little green line bellow. Well it's small when by itself but if I repeat it horizontally, it makes the button you see bellow.
One small image:

Makes this when repeated (repeat-x):

Repeat horizontal and vertical
#header {
background-image: url(www.mysite.com/image.gif);
background-repeat: repeat;
}
Repeat horizontal
#header {
background-image: url(www.mysite.com/image.gif);
background-repeat: repeat-x;
}
Repeat Vertical
#header {
background-image: url(www.mysite.com/image.gif);
background-repeat: repeat-y;
}
Background Position
The background position property is great for lining things up. You can use it on X and Y and no-repeat, But, it's a little different with each of these values. For instance if we have a image that is repeating horizontally (repeat-x) we can tell it to move up or down, but when we tell it to move right or left, it will only change the starting place of where it repeats.
The many variations of positionYou can position a background image by it's x and y values. we can do this with percent, or pixels or just telling it "center" or "right". We tell it both the X and the Y in the same CSS statement.
#header {
background-image: url(www.mysite.com/image.gif);
background-position: center left;
}
Here are all the possibilities when using a pre-defined position. Remember you are stating BOTH the X and the Y in the same value (top left)
- top left
- top center
- top right
- center left
- center center
- center right
- bottom left
- bottom center
- bottom right
Using percentage
You will want to use percentage when something may change size
but you want the position of the image to stay relative to it's
parent's position. You might use this when you have a arrow
background in your nav, that needs to be in the same 52% position
no matter how long your nav button is. Here is a picture to show
you how I used it on SG's template.

You see, the magazine button is wider than the home button, but
the arrow stays right in the center no matter how wide the button
is stretched. Here is the CSS i used.
#header {
background-image: url(www.mysite.com/image.gif);
background-position: 50% bottom;
}
Background Shorthand
Believe it or not, we can compress all of that junk above into one pretty CSS property. Study bellow and see how I've incorporated all properties in one.
#header {
background: #dfdfdf url(www.mysite.com/image.gif) no-repeat %50 bottom;
}
With one slight of hand I've put a background color, Image, repeat state and position in that order. That's the way to do it.
Hide Group Members and Author
By ezra vancilNormal:

You have two options you can hide the entire statement of who the owner is and how many members it has, or you can just hide the owners name and the members number.
Hide the author and members statement:

For this we will use our trusty display none, but to make sure we don't effect other elements on other pages, we will let our CSS know it's only on the groups page:
#groups-list
.search-listing
.listing-questions li
{
display: none; }
Hide just member number and author
name:
To hide just the member number and author name we will use the "Strong" tag.
#groups-list
.search-listing
.listing-questions li strong
{
display: none; }
You will notice that this changes your layout a bit, and it
should because when you hide something it takes it out of the line,
the space that it once held is gone. So if you want to keep the
formating just the same you can also just change the color of this
text to the color of your background like so:
#groups-list
.search-listing
.listing-questions li
{
color: black!important; }
You could just effect the member OR the author, but this would get into javascript which is a little to expansive for this post
CSS 101: Block & Inline elements
By ezra vancilPlay with Display
If your new to CSS, you've probably stayed away from the "Display" property. Well you might be missing out on a powerful tool. It only has to values, or three things it can do, so it's easy to remember .
- display: inline;
- display: block;
- displa; none;
All three of these values are extremely useful. Think of the display:none that we used in last weeks tip on hiding elements on a page, like the birthday element that so many ladies hate... display:none; You can even hide sorts of stuff you don't want on your page and is not yet an option in the layout manager.
Block and Inline are just as powerful. Lets say you want the background color of a DIV with a ad or image in it to automatically span the width of your text, so as not to worry about setting an exact pixel width. You would use the INLINE value to do this, because a DIV is a block element.
The difference between Block and Inline These are the most common elements that are blocks, and it's pretty easy to see this because they are usually designed visually as blocks.
-
Translate CSS tricks
By ezra vancilIf you just want all the code and don't want to read all this, just skip to the bottom and follow instructions about changing your URL.

I'm seeing the google translate tool popping up every where on Socialgo Networks and I thought I'd offer up some CSS to style those puppies.
Here is the full translation HTML code you will need for this exercise: translate code. If you already have the code up ( take a look at mine to make sure it is the same google translate code) just ad a DIV that wraps all the code and give that div a ID of "translate":
google code here
And if you want it to say "translate" insert this P element:
Translate to:
google code here
Note: the image resides on my server, so I can't promise it
will always be there. you can replace it in the CSS coming
up.If you are using the google code I'm providing you will need to insert your URL where it says "yoursite.com." you can do this with a easy search and replace with most text editors.
The CSS
Here is the CSS you can add it to the head of your SG site in the custom HTML area. Make sure you put it between open and closing STYLE tags. First the "translate" DIV we just added.
Here we will set the position to fixed that way it does not scroll with the rest of the page:
#translate {
position: fixed;
}
We will also give it a enormous z-index, just because I don't
know what z-indexes you are already using:
#translate {
position: fixed;
z-index: 2000;
}
We will drop the width so to make our flags line up
vertically:
#translate {
position: fixed;
z-index: 2000;
width: 12px;
}
Now we will add a image I made. It is a black PNG with the
occupancy dropped to about 12%:
#translate {
position: fixed;
z-index: 2000;
width: 12px;
background: url(http://www.networklogic.net/widget/images/translatebg.png);
}
Here is the important part - the margin. As you can see on my
little prayer box network, I wanted the translation tool to float
just under my banner. You may want different and this "margin-top"
is where you will adjust that:
#translate {
position: fixed;
z-index: 2000;
width: 12px;
background: url(http://www.networklogic.net/widget/images/translatebg.png);
margin-top: 186px;
}
Next we will add a float... and I'll be honest, I don't know
why I added this, it shouldn't matter. But we will add it for fun,
you can mess with it:
#translate {
position: fixed;
z-index: 2000;
width: 12px;
background: url(http://www.networklogic.net/widget/images/translatebg.png);
margin-top: 186px;
float: right;
}
Next I will just add some padding, take out the margin and
then a small 1px border:
#translate {
position: fixed;
z-index: 2000;
width: 12px;
background: url(http://www.networklogic.net/widget/images/translatebg.png);
margin-top: 186px;
float: right;
border: 1px solid #666;
padding: 10px;
padding-left: 3px;
margin-left: 0%;
}
Now I'm going to do my ocpancy roll over so the flags are
slightly transparent.. You can add this if you want. First I set
the opacity for the flags real low, then on the ":hover" state I
bring it all the way up:
#translate a {
opacity: .2;
}
#translate a:hover {
opacity: 10;
}
Put it all togetherLast I'm going to do a image replacement on the p tag. I've shown how to do this numerous times. You can look here for a start.
So here is the CSS in full. Just replace the image urls with your own if you want, and add it to your header area between style tags.
#translate {
position: fixed;
z-index: 2000;
background: url(http://www.networklogic.net/widget/images/translatebg.png);
width: 12px;
margin-top: 186px;
border: 1px solid #666;
padding: 10px;
padding-left: 3px;
margin-left: 0%;
float: right;
}
#translate p {
display: block;
text-indent: -2000px;
background: url(http://www.networklogic.net/widget/images/translate.png) no-repeat;
height: 40px;
margin-top: 0px;}
#translate a {
opacity: .2;
}
#translate a:hover {
opacity: 10;
}Very Last add translate HTML code (with your URL replaced, or add the div and P tag as we talked about above) to your BODY area in the custom HTML section of your admin.
Remember you can adjust the Margin-Top on the #translate CSS to move it up and down.
If you need a really easy fix and don't want to do all this then you can download this CSS and HTML txt file and dump it in to your body section. BUT! you will still have to replace all instances of "yoursite.com" with your URL.
