FM Themes
Welcome to FM Themes
where you can share your ModernBB, punBB, phpBB 2, Invision, & phpBB 3 themes for Forumotion forums.

You are viewing the forum as a guest, so you will not be able to use the full forum. To use all the features of the forum, you need to log in or create a FREE account by registering.
Share
View previous topicGo downView next topic
avatar
VIP Member
VIP Member
Posts : 303
Points : 9165
Reputation : 207
View user profilehttp://fmdesign.forumotion.com/

Add Signature Resizing To Your Forum

on Wed Oct 09, 2013 7:47 pm
Message reputation : 100% (2 votes)
Add Signature Resizing To Your Forum

This tutorial will help you set up a Signature Resize for your forum using CSS. This prevents large images from stretching or otherwise breaking your forum.

Example: https://i.servimg.com/u/f72/18/45/41/65/ex11.jpg

Identifying Forum Version

First thing we need to do is find the CSS code for your forum version. Each version except bb2&3 have different selectors. To check your forum version navigate to..
Administration Panel > Display > Skins > Choose a theme > Version

Find General and look to Change version that will display your current version.

Installing CSS

Now that you know your forum version we can install the resize CSS for your forum. Find the correct CSS code for your forum version and navigate to..
Administration Panel > Display > Pictures and Colors > Colors > CSS stylesheet

Paste this in your CSS if your forum version is phpbb2 or phpbb3:
Code:
.signature_div img{
max-width: 500px !important;
max-height: 200px !important;
}
Paste this in your CSS if your forum version is punbb:
Code:
.sig-content img{
max-width: 500px !important;
max-height: 200px !important;
}
Paste this in your CSS if your forum version is invision:
Code:
div.signature_div img{
max-width: 500px !important;
max-height: 200px !important;
}
Once you have pasted the code in your CSS be sure to submit it to save the changes. If you've done the recent steps correctly your forum should now resize images larger than 500px width or 200px height. You can modify the size if you want images to be smaller or larger. Read Explanation for more information on the properties used in this tutorial.

Explanation

max-width: Sets the maximum width for an element.
max-height: Sets the maximum height for an element.
min-width: Sets the minimum width for an element.
min-height: Sets the minimum height for an element.
width: Sets the width for an element.
height: Sets the height for an element.

All properties above can be defined in px, cm, %, ect..  

auto: The height and width are automatically set depending on the element contents.
inherit: The height and width are inherited from the parent element.

Using the above you can put together quite a unique signature resizer. You can also use :hover to increase the size when the mouse is hovered over the image. Thanks for reading and good luck with your forum! Wink

Useful Reading


width
height
:hover

Tutorial written by Ange Tuteur
No reproduction possible without my consent.
avatar
Administrator
Administrator
Posts : 3954
Points : 1851
Reputation : 311
View user profilehttps://www.fmthemes.net

Re: Add Signature Resizing To Your Forum

on Thu Oct 10, 2013 10:07 am
Tutorial Approved
View previous topicBack to topView next topic
Permissions in this forum:
You cannot reply to topics in this forum