Forum marker variable?

Korok's Avatar
Korok · in Support
2 replies 204 views

Hi again,

I'm trying to customise the forum layout. I didn't see a variable for forum marker, though, only {{ forum.is_read }}

Is there a forum marker variable? Would it be something like {{ forum.marker }} ? I want to be able to use that font-awesome forum marker feature that's been implemented in the acp. c:

Thanks for your time!

Edit: I've tried {{ forum.marker }} but it doesn't show anything. I also tried {{ forum.is_read }} for giggles, and it just shows the number 1.

Last edited by Korok

0

There is no forum marker variable, but I've included this in 1.5.2. 😉

As for reference when 1.5.2 is out:

Variable

Value

{{ forum.marker_type }}

default, upload, or fa_icon

{{ forum.marker_icon }}

The correct FA class for the current read/unread state

{{ forum.marker_read_icon }}

FA class for the read (no new posts) state

{{ forum.marker_unread_icon }}

FA class for the unread (new posts) state

{{ forum.marker_image_url }}

Image URL for the current read/unread state

{{ forum.marker_read_image_url }}

Image URL for the read state

{{ forum.marker_unread_image_url }}

Image URL for the unread state

A typical user case would be:

{{#if forum.marker_type == "fa_icon"}}
  <i class="{{ forum.marker_icon }}"></i>
{{/if}}

❤️ 1
0

Perf! Looking forward to it. 😁 Thanks for the info.

Theme: FS 2.0
Create Your Community with ForumSpark

ForumSpark is a modern community platform built on custom software. It combines the familiar feel of classic forums with a fast, simple experience designed for today’s communities.