Hmm, noob question I know, but I was wondering if there was a direct link to the board url that should be used in templates rather than me putting the "real" url in? Something like
Code:
<img src={mybburl/images/default.avatar.jpg}
|
:/ i need recice the avatar only for the gid 4 in postbit
any idea???
i try this but dont work
<if $post['gid'] == 4 then>
<img src blah blah with="">
<elseif $post['fid6'] and $mybb->user['cancp'] then>
<img src blah blah> (the casual code)
<else /></if>
You need $post['usergroup'] to get the user group id.
i try this but dont work
<if in_array($GLOBALS['mybb']->user['usergroup'], array(4)) then>
<a href="{$post['profilelink_plain']}"><img class="post_avatar" src="{$post['avatar']}" alt="" width="80px" height="80px" /></a>
<else>
<a href="{$post['profilelink_plain']}"><img class="post_avatar" src="{$post['avatar']}" alt="" {$avatar_width_height} /></a>
</if>
this recice the avatar of all users
<if in_array($GLOBALS['mybb']->post['usergroup'], array(4)) then>
<a href="{$post['profilelink_plain']}"><img class="post_avatar" src="{$post['avatar']}" alt="" width="80px" height="80px" /></a>
<else>
<a href="{$post['profilelink_plain']}"><img class="post_avatar" src="{$post['avatar']}" alt="" {$avatar_width_height} /></a>
</if>
this dont recice nothing
=D this is perfect man thanks