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
Post a Comment