Users running a non-download version of Vanilla (pulled from github), on branch release/2019.016 or master from the last 2 weeks should upgrade to release/2019.017 or latest master for security reasons. Downloaded official open sources releases are not affected.

GDN_Comment - When BBCode or HTML Format?

phreakphreak Vanilla*APP (White Label) & Vanilla*Skins Shop 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

  • VanillaAPP | iOS & Android App for Vanilla - White label app for Vanilla Forums OS
  • VanillaSkins | Plugins, Themes, Graphics and Custom Development for Vanilla
Tagged:

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
    hgtonightRiverphreak
Sign In or Register to comment.