PDA

View Full Version : ★ [Guide] Changing your User Info icons



Trinket
05-03-2012, 09:59 PM
This effect can be a little tricky at first, but it becomes so much easier after you've gotten the actual icon part finished. This is the effect we're aiming for.

[Only registered and activated users can see links]

Firstly, you're going to need to find the appropriate height and width for your user info. You don't want it too big, nor do you want it too small -- but it's okay if your image is a little out of proportion. I began with a 300 x 260 sized canvas in Photoshop.

In order to make sure I had the icons fall in place where the default icons should be, I took a screenshot of my lookup after resizing the userinfo box to 300 x 260. To make things easier, I set a clear background colour. This can be very easily done in Photoshop or Paint Shop pro by using layers -- if you don't have these programs, there's a template I've made at the bottom of this guide that you're welcome to use.

[Only registered and activated users can see links]

I moved the icons around a bit to make sure they're in proportion -- as you can see, the icon above "neofriend" is a bit too much to the left. Once you're done, delete the layer with the default icons and save your image (JPEG is best, because a lot of browsers are fussy with PNG files when they're set as background images). If you like, change the colours of your icons. Remember that you can use any images you like for this =]

Things get easier from this point on. Now comes the coding.
Most of your coding will be removal type CSS. First things first, if you haven't already, resize your userinfo. This is the code I used:


#userinfo .contentModuleTable {
width: 300px;
height: 170px;
position: absolute;
overflow: auto;
background: none;
}

As you can see, I scaled my height down from 260 to 170 -- the reason being that the userinfo box looked a bit plain because it was so long. Another code you can include:


.contentModule, .contentModuleTable, .contentModuleContent {
border: none;
background: none;
}
.contentModuleHeader, .contentModuleHeaderAlt {
display: none;
}

These aren't actually necessary, but your userinfo section will look much neater like this. The first code will remove the ugly border around your userinfo, and also the default white background. The second code will remove the header along the top of the module.

Now come the codes for actually inserting your custom icons.


#userinfo .contentModuleContent {
background-image: url("[Only registered and activated users can see links]");
background-repeat: no-repeat;
background-position: bottom right;
}

This is the code for the image itself. Make sure that you have the position set to bottom right, because if you decide to shrink the size of your userinfo, it won't cut off the bottom of your icons.


#userinfo .medText table table img {
visibility: hidden;
}

This is the code used to remove the default icons. Simple.


#userinfo .medText table table tr td a {
font-size: 50px;
}

Occasionally, you'll notice that some lookups with custom icons render the icons almost unclickable -- meaning you have to click a pixel or two from the bottom for the icons to actually work. The code above will ensure that the whole icon is clickable.


#userinfo .medText img {
visibility: hidden;
}

That last code is optional -- it will remove the shield from your userinfo section. I think the section looks neater without a shield, but leave it there if you like it =]

That's all there is to it! If you have any questions or comments, feel free to let me know.

Template -- just erase the little tip I've included:

[Only registered and activated users can see links]

maxxine
05-03-2012, 10:06 PM
You must spread some Reputation around before giving it to Trinket again.


But I love your guides. (:

Trinket
05-03-2012, 10:07 PM
Thank you, I'm glad! :D

I have...29 guides in total to post. This will be a long day >_>

Sneakz
05-03-2012, 10:27 PM
Thanks for the guide! Such a cute idea :)

Trinket
05-03-2012, 10:38 PM
It works great for themed lookups x) plus you can easily get rid of the ugly white bit around the default icons :P

Cody.
05-04-2012, 02:09 PM
It is such a nice effect to a lookup.

great guide.
+rep.

zxzero
05-04-2012, 02:13 PM
Thanks, maybe now I can finish up my user look-up without bugging milly. xD

Ryan~
05-04-2012, 04:44 PM
I did this on my lookup with a different method. Are yours clickable?

Trinket
05-04-2012, 04:54 PM
The modules, you mean? Yeah, I just click and drag them xD

Ryan~
05-04-2012, 05:35 PM
Nvm, I see the code in yours that makes it work :)


#userinfo .medText table table tr td a {
font-size: 50px;
}

Nvm :( Didn't work.

Slasher
05-05-2012, 07:09 AM
Nice guide, thanks :)

Skins
05-05-2012, 07:26 AM
I wanted to change it many times but didn't know the codes
thanks

Emo
06-01-2012, 11:21 PM
Thanks for making this!!! :D