Extra icon in topics row #978

Closed
jasperjorna opened this Issue Jun 24, 2012 · 3 comments

Comments

Projects
None yet
2 participants
Member

jasperjorna commented Jun 24, 2012

Icon in topics row showing to yourself if you already posted in a topic previously.

See topic for more information: http://www.cotonti.com/forums?m=posts&q=6986

Owner

trustmaster commented Jul 24, 2012

I've found a way to do it but the question is: how do we assign tags so that the old templates continue to work? Add another tag which adds one more postfix (_posted)? Add another tag that can be used in a class attribute or logical condition?

Member

jasperjorna commented Aug 2, 2012

Adding another tag with one more postfix sounds easiest to use I think.

@ghost ghost assigned trustmaster Nov 30, 2012

Owner

trustmaster commented Nov 30, 2012

I'm adding two new tags:

  • {FORUMS_TOPICS_ROW_ICON_TYPE_EX} - same as {FORUMS_TOPICS_ROW_ICON_TYPE} but adds '_posted' at the end for the topics where current user has posted.
  • {FORUMS_TOPICS_ROW_USER_POSTED} - contains the number of posts the user has made in the topic.

Example usage:

<!-- IF {FORUMS_TOPICS_ROW_USER_POSTED} -->
<span class="postcount">{FORUMS_TOPICS_ROW_USER_POSTED}</span>
<!-- ENDIF -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment