The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Html/Css enabled for members

View previous topic View next topic Go down

Solved Html/Css enabled for members

Post by Caralel on April 30th 2014, 1:43 pm

My apologies if this is in wrong section of the forums.

I am wanting to allow members to use styles, padding, etc, in their posts. So for example, if someone typed the code down below it would correctly work when they post the message.




Code:

[style=max-width:600px; padding:10px; border:4px solid #9d5d09; background-color: #c7a383; margin:auto;]
[center][img]http://pictureshoster.com/files/nmrpsneqj5a8vhmez7oz.png[/img][/center]
[right][color=#c7a383][size=30]x[/size][/color][/right]
[right][googlefont=TimesNewRoman][color=#392a17][size=100]:: Timestamp ::[/size][/color][/googlefont][/right]
[googlefont=TimesNewRoman][color=#392a17][size=200][i]"This is a quote..."[/i][/size][/color][/googlefont]
[style2=max-width:600px; padding:5px; border:2px solid #000000; background-color: #9d5d09; margin: auto;][color=#ffffff][googlefont=TimesNewRoman]THEIR MESSAGE RIGHT HERE....(EX.)The most beautiful people we have known are those who have known defeat, known suffering, known struggle, known loss, and have found their way out of the depths. These persons have an appreciation, a sensitivity, and an understanding of life that fills them with compassion, gentleness, and a deep loving concern. Beautiful people do not just happen. -Elizabeth Ros[/color][/googlefont][/style2][/style]

Caralel
Forumember

Posts : 28
Reputation : 4
Language : English

http://isadol.forumotion.com/

Back to top Go down

Solved Re: Html/Css enabled for members

Post by Pizza Boi on April 30th 2014, 1:46 pm

Hi Very Happy

It's actually possible. If you AP < Generals < Messages < Allow HTML: Yes

For the CSS, well, it can be something like the one below:

Code:
[table style="This style"][tr][td][/td][/tr][/table]

Regards,
Pizza Boi

Pizza Boi
Hyperactive

Male Posts : 2016
Reputation : 160
Language : French
Location : Pizza Hut!

http://redlustempire.forumtl.com/

Back to top Go down

Solved Re: Html/Css enabled for members

Post by Ange Tuteur on April 30th 2014, 1:46 pm

Hello Caralel,

To enabled HTML please see this topic :
http://help.forumotion.com/t35636-enabling-html

Ange Tuteur
Forumaster

Male Posts : 13021
Reputation : 2684
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: Html/Css enabled for members

Post by Caralel on April 30th 2014, 2:00 pm

Hello PizzaBoi and AngeTuteur,

Thanks for your quick responses. I already have html enabled in the Admin panel, as well as Css. It is also turned on in my profile. Is there anything else I could be missing? When I post the code, only thing that works is the img tag.

Caralel
Forumember

Posts : 28
Reputation : 4
Language : English

http://isadol.forumotion.com/

Back to top Go down

Solved Re: Html/Css enabled for members

Post by Ange Tuteur on April 30th 2014, 2:08 pm

What you posted above is bbcode. To write HTML for an image you'll write :

Code:
<img style="max-width:600px; padding:10px; border:4px solid #9d5d09; background-color: #c7a383; margin:auto;" src="http://pictureshoster.com/files/nmrpsneqj5a8vhmez7oz.png">

You must make use of the style attribute to style your elements. For bbcode it is limited to tables only.

Ex :
Code:
[table style="background:red;"][tr][td]My Table[/td][/tr][/table]

Ange Tuteur
Forumaster

Male Posts : 13021
Reputation : 2684
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: Html/Css enabled for members

Post by Caralel on April 30th 2014, 2:14 pm

Shocked my bad.

Let me rewrite that then and see if it will work. I will be back to let you know ^^;

Caralel
Forumember

Posts : 28
Reputation : 4
Language : English

http://isadol.forumotion.com/

Back to top Go down

Solved Re: Html/Css enabled for members

Post by Ange Tuteur on April 30th 2014, 2:18 pm

If you have HTML enabled you can also write a stylesheet in your posts. You just have to add a class to your element.

Ex :
Code:
<style>
.myImage {
max-width:600px;
padding:10px;
border:4px solid #9d5d09;
background-color: #c7a383;
margin:auto;
}
</style>

<img class="myImage" src="http://pictureshoster.com/files/nmrpsneqj5a8vhmez7oz.png">

Ange Tuteur
Forumaster

Male Posts : 13021
Reputation : 2684
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: Html/Css enabled for members

Post by Caralel on April 30th 2014, 7:09 pm

It is working now. Thanks so much!

Caralel
Forumember

Posts : 28
Reputation : 4
Language : English

http://isadol.forumotion.com/

Back to top Go down

Solved Re: Html/Css enabled for members

Post by Ange Tuteur on April 30th 2014, 9:02 pm

You're welcome :rose:

Topic solved and archived

Ange Tuteur
Forumaster

Male Posts : 13021
Reputation : 2684
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum