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
5 posters

    Custom BBCode (don't know...?)

    Ritsu
    Ritsu
    Forumember


    Male Posts : 63
    Reputation : 7
    Language : Polish, English
    Location : Poland

    In progress Custom BBCode (don't know...?)

    Post by Ritsu 10/3/2017, 20:40

    I found this and I'm wondering... I want a code just like that but it should be like this:
    User writes:
    Code:
    [podpis]Text here[/podpis]
    but actually it's:
    Code:
    <br /><div id="podpis">Text here</div>
    And, it should work in descriptions of categories & forums. Is it possible?
    Also, what if:
    Code:
    [borderimg]link[/borderimg]
    Code:
    <img src="link" style="margin-right: 15px; margin-bottom: 8px;border: 1px solid silver;background: white; padding: 4px;border-radius: 3px;box-shadow: 1px 1px 3px silver"></a>
    This should work only in posts.
    TheCrow
    TheCrow
    Manager
    Manager


    Male Posts : 6916
    Reputation : 795
    Language : Greek, English

    In progress Re: Custom BBCode (don't know...?)

    Post by TheCrow 10/3/2017, 21:11

    Hello,

    You want to add the
    Code:
    [podpis]Text here[/podpis]
    in the posts and take place of the Description?



    Custom BBCode (don't know...?) Thecro10
    Forum of the Forums

    Forumotion Rules | Tips & Tricks |
    FAQ | Did you forget your password?



    *** The Support Forum will never ask you for your email or password, so please do not post them anywhere! ***
    No support via PM!
    Ritsu
    Ritsu
    Forumember


    Male Posts : 63
    Reputation : 7
    Language : Polish, English
    Location : Poland

    In progress Re: Custom BBCode (don't know...?)

    Post by Ritsu 11/3/2017, 01:09

    Hello,
    Well... I want to use [podpis] only in forums / categories because... yeah, it's quite hard to explain XD I just want to change the position of forums' and categories' descriptions. Somehow I made a mistake in coding and the text of titles of categories / forums gone down, but I liked it. And because forum descriptions haven't selectors specified, I decided to paste codes. It's really a nightmare to write in EVERY description:
    Code:
    <br /><div id="podpis">TEXT<div>
    .
    Custom BBCode (don't know...?) Screen10
    Dr Jay
    Dr Jay
    Forumember


    Male Posts : 92
    Reputation : 7
    Language : English
    Location : USA(UTC-5)

    In progress Re: Custom BBCode (don't know...?)

    Post by Dr Jay 11/3/2017, 01:17

    You can use HTML in forum descriptions for Categories and Forums.

    I have had to do it, and it does take time, but you can modify them all at once which is the main benefit.
    Ritsu
    Ritsu
    Forumember


    Male Posts : 63
    Reputation : 7
    Language : Polish, English
    Location : Poland

    In progress Re: Custom BBCode (don't know...?)

    Post by Ritsu 11/3/2017, 11:49

    And what about [borderimg]?
    Dr Jay
    Dr Jay
    Forumember


    Male Posts : 92
    Reputation : 7
    Language : English
    Location : USA(UTC-5)

    In progress Re: Custom BBCode (don't know...?)

    Post by Dr Jay 11/3/2017, 20:48

    The code has an error:
    Code:
            <img src="link" style="margin-right: 15px; margin-bottom: 8px;border: 1px solid silver;background: white; padding: 4px;border-radius: 3px;box-shadow: 1px 1px 3px silver"></a>

    Placing an
    Code:
    </a>
    at the end of a HTML element that is already defined as
    Code:
    <img>
    .

    You should place the IMG tag/element and at the end of the line place the
    Code:
    />
    or place in a new tag:
    Code:
    </img>

    So, it should look like:
    Code:
    /*Example 1*/
    <img src="link" style="margin-right: 15px; margin-bottom: 8px;border: 1px solid silver;background: white; padding: 4px;border-radius: 3px;box-shadow: 1px 1px 3px silver" />

    /*Example 2*/
    <img src="link" style="margin-right: 15px; margin-bottom: 8px;border: 1px solid silver;background: white; padding: 4px;border-radius: 3px;box-shadow: 1px 1px 3px silver"></img>

    Anyway... that should work properly, but let me know.
    Ritsu
    Ritsu
    Forumember


    Male Posts : 63
    Reputation : 7
    Language : Polish, English
    Location : Poland

    In progress Re: Custom BBCode (don't know...?)

    Post by Ritsu 13/3/2017, 15:08

    Yes, I know.
    I'm sure you don't understand my question xD Yeah, I made a mistake, but it's not an information which I need. I'm asking: how to do own BBCodes?
    brandon_g
    brandon_g
    Manager
    Manager


    Male Posts : 10113
    Reputation : 923
    Language : English
    Location : USA

    In progress Re: Custom BBCode (don't know...?)

    Post by brandon_g 13/3/2017, 20:46

    Hello,

    Let me see if I understand you correctly: You want to add your bbcodes to be able to used in posts on your forum?

    If so, there no way to do this by default in the admin panel.

    I am not sure if there is anyway to do this using code.

    -Brandon



    Custom BBCode (don't know...?) Brando10
    Remember to mark your topic Custom BBCode (don't know...?) Solved15 when a solution is found.
    General Rules | Tips & Tricks | FAQ | Forgot Founder Password?

    Custom BBCode (don't know...?) Scre1476
    Team Leader
    Review Section Rules | Request A Review | Sticker Points
    vietkanpy
    vietkanpy
    Forumember


    Male Posts : 89
    Reputation : 33
    Language : vietnam

    In progress Re: Custom BBCode (don't know...?)

    Post by vietkanpy 14/3/2017, 08:24

    Ritsu
    Ritsu
    Forumember


    Male Posts : 63
    Reputation : 7
    Language : Polish, English
    Location : Poland

    In progress Re: Custom BBCode (don't know...?)

    Post by Ritsu 16/3/2017, 21:20

    Wow, you rock! Thanks! And how to make the borderimg to work in posts, also? Or it works and I just don't know how to use it xD
    vietkanpy
    vietkanpy
    Forumember


    Male Posts : 89
    Reputation : 33
    Language : vietnam

    In progress Re: Custom BBCode (don't know...?)

    Post by vietkanpy 17/3/2017, 11:15

    DSorcerer wrote:Wow, you rock! Thanks! And how to make the borderimg to work in posts, also? Or it works and I just don't know how to use it xD

    Custom BBCode (don't know...?) Tap1SJL

    Add a Javascript Code and copy to paste code.
    Ritsu
    Ritsu
    Forumember


    Male Posts : 63
    Reputation : 7
    Language : Polish, English
    Location : Poland

    In progress Re: Custom BBCode (don't know...?)

    Post by Ritsu 18/3/2017, 01:15

    I did it before XD But "borderimg" doesn't work in the posts. It doesn't show any border, but "podpis" works.
    "Borderimg" works in the categories/forums descriptions. I wanted "podpis" in categories/forums only and "borderimg" in both (posts + categories/forums descs) Razz

      Current date/time is 23/9/2024, 11:25