Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Try Vanilla Forums Cloud product

In this Discussion

Vanilla 2.6 is here! It includes security fixes and requires PHP 7.0. We have therefore ALSO released Vanilla 2.5.2 with security patches if you are still on PHP 5.6 to give you additional time to upgrade.

GDN_Comment - When BBCode or HTML Format?

phreakphreak VanillaAPP - Your white label app for Vanillaforums MVP

Hi all,

When a new comment ist posted, the "Format" column in GDN_Comment receives the value BBCode or HTML?

Does anyone know what's the reason for adding this value?
Does this information speed up the rendering of every comment for the Advanced Editor because it doesn't need to iterate through the options HTML, Markdown, etc. ?

Thank you,
phreak

Comments

  • LincLinc Director of Development Detroit Vanilla Staff
    edited July 2016

    That is the formatting method used in Gdn_Format to render the Body of the comment. The end result is always HTML, but all formatters (including HTML) need to get magic content like emoji, links, and mentions converted.

    There's no automatic detection possible that wouldn't compromise performance.

    Shadowdarehgtonightphreak
  • BleistivtBleistivt MVP
    edited July 2016

    When a new comment ist posted, the "Format" column in GDN_Comment receives the value BBCode or HTML?

    Usually it is the config value of Garden.InputFormatter. This may be one of

    • Html
    • Markdown
    • BBCode
    • Text
    • TextEx
    • Wysiwyg

    My themes: pure | minusbaseline - My plugins: CSSedit | HTMLedit | InfiniteScroll | BirthdayModule | [all] - PM me about customizations

    hgtonightRiverphreak
Sign In or Register to comment.