Change post background based on group ID on IP.Board -



Change post background based on group ID on IP.Board -

i premium members have different post background when post on forum.

i know can adding grouping id class tag.

ultimately, want this:

7 id number premium members.

i have tried next not work:

<div class='post_block hentry clear clearfix <if test="issolvedcss:|:$post['post']['_ismarkedanswered']">solved</if> <if test="postqueued:|:$post['post']['_ishidden']">moderated</if> ***{$author['member_group_id']}***' id='post_id_{$post['post']['pid']}'>

that's because trying utilize $author, doesn't exists in context. want use, post's author.

try this:

{$post['author']['member_group_id']}

so code should end like:

<div class='post_block hentry clear clearfix <if test="issolvedcss:|:$post['post']['_ismarkedanswered']">solved</if> <if test="postqueued:|:$post['post']['_ishidden']">moderated</if> {$post["author"]["member_group_id"]}' id='post_id_{$post["post"]["pid"]}'>

hopefully helps you.

invision-power-board

Comments

Popular posts from this blog

assembly - What is the addressing mode for ld, add, and rjmp instructions? -

vowpalwabbit - Interpreting Vowpal Wabbit results: Why are some lines appended by "h"? -

Php operator `break` doesn't stop while -