The forum of the forums

Would you like to react to this message? Create an account in a few clicks or log in to continue.
The forum of the forums
3 posters

    Html/Css enabled for members

    Caralel
    Caralel
    Forumember


    Posts : 26
    Reputation : 4
    Language : English

    Solved Html/Css enabled for members

    Post by Caralel 30/4/2014, 18:43

    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]
    Pizza Boi
    Pizza Boi
    Hyperactive


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

    Solved Re: Html/Css enabled for members

    Post by Pizza Boi 30/4/2014, 18:46

    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
    Ange Tuteur
    Ange Tuteur
    Forumaster


    Male Posts : 13207
    Reputation : 3000
    Language : English & 日本語
    Location : Pennsylvania

    Solved Re: Html/Css enabled for members

    Post by Ange Tuteur 30/4/2014, 18:46

    Hello Caralel,

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


    Posts : 26
    Reputation : 4
    Language : English

    Solved Re: Html/Css enabled for members

    Post by Caralel 30/4/2014, 19:00

    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.
    Ange Tuteur
    Ange Tuteur
    Forumaster


    Male Posts : 13207
    Reputation : 3000
    Language : English & 日本語
    Location : Pennsylvania

    Solved Re: Html/Css enabled for members

    Post by Ange Tuteur 30/4/2014, 19:08

    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]
    Caralel
    Caralel
    Forumember


    Posts : 26
    Reputation : 4
    Language : English

    Solved Re: Html/Css enabled for members

    Post by Caralel 30/4/2014, 19:14

    Shocked  my bad.

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


    Male Posts : 13207
    Reputation : 3000
    Language : English & 日本語
    Location : Pennsylvania

    Solved Re: Html/Css enabled for members

    Post by Ange Tuteur 30/4/2014, 19:18

    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">
    Caralel
    Caralel
    Forumember


    Posts : 26
    Reputation : 4
    Language : English

    Solved Re: Html/Css enabled for members

    Post by Caralel 1/5/2014, 00:09

    It is working now. Thanks so much!
    Ange Tuteur
    Ange Tuteur
    Forumaster


    Male Posts : 13207
    Reputation : 3000
    Language : English & 日本語
    Location : Pennsylvania

    Solved Re: Html/Css enabled for members

    Post by Ange Tuteur 1/5/2014, 02:02

    You're welcome :rose:

    Topic solved and archived

      Current date/time is 23/9/2024, 03:23