1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.4 Different prefixes throughout a thread.

Discussion in 'XenForo Questions and Support' started by flowerpot132, Aug 25, 2015.

  1. flowerpot132

    flowerpot132 Formerly mugtree

    We want to create a "Success Stories" sub forum.

    So users can post about stories. The OP would select a prefix called "Story Details" to start off the thread. Other users can comment along the way. But then when the OP posts again in the thread I want someway of that being highlighted as the OP, maybe something like "Story Update". So users can skim through the thread of say 20 posts and quickly see the OPs contribution to the story / case study development.
  2. Brogan

    Brogan XenForo Moderator Staff Member

    Create a custom bb code?
    It wouldn't stop others using it though.

    Or you can use a conditional statement to style the thread starter's posts differently.
  3. flowerpot132

    flowerpot132 Formerly mugtree

    Thanks Brogan. Do you have an example of this in action please?
  4. Brogan

    Brogan XenForo Moderator Staff Member

    I don't have an example, but this is the conditional statement to use: <xen:if is="{$post.user_id} == {$thread.user_id}">

    You can wrap template content in that, or you can use the inline version to apply separate CSS classes/styling.

Share This Page