Template $variable Modifiers

Applies to: Jamroom 7.0+ Last verified: 2026-10-24
  • What a modifier is

    A modifier changes a variable's value as it's shown. Add it after the variable with |, and its options after :

    {$item._created|jrCore_format_time}
    {$item.blog_text|jrCore_format_string:$item.profile_quota_id}
    {$item.audio_title|truncate:30}
  • Without the modifier, {$item._created} shows a raw timestamp such as 1792882508. With jrCore_format_time, it shows a date in the site's date format.

    You can chain modifiers: {$text|jrCore_strip_html|truncate:100}. All the Smarty modifiers, such as truncate, default, escape and upper, work too.

  • Jamroom modifiers

    Modifier What it does
    jrCore_format_string Formats member text: allowed HTML, BBCode, @ tags, links, embeds
    jrCore_format_time Shows a timestamp as a date and time, or "3 days ago"
    jrCore_strip_html Removes HTML
    jrCore_convert_at_tags Links @name to that profile
    jrCore_readmore Shows text up to a "read more" break
    jrCore_date_format Formats a date string
    jrAction_convert_hash_tags Links #hashtags (Timeline)
    jrEmbed_embed Turns [jrEmbed] tags into media (Editor Embedded Media)

Tags