Hi Coroner, I'm trying to get the developer image bit worked out for myself but I'm a long way off it and wondered if you could lend a hand.
I'm using this as the code:
Code:
<if condition="$threadinfo['postuserid'] == $bbuserinfo['userid']"><div><img src="$stylevar[imgdir_misc]/moddev.gif" width="100" height="21" border="0" alt="" class="inlineimg" /></div></if>
I have tried placing it in the postbit here:
Code:
$template_hook[postbit_signature_start]
$ad_location[ad_showthread_firstpost_sig]
<if condition="$threadinfo['postuserid'] == $bbuserinfo['userid']"><div><img src="$stylevar[imgdir_misc]/moddev.gif" width="100" height="21" border="0" alt="" class="inlineimg" /></div></if>
<if condition="$post['signature']">
<!-- sig -->
<div>
__________________<br />
$post[signature]
</div>
<!-- / sig -->
</if>
$template_hook[postbit_signature_end]
The moddev.gif is not showing in the posts when I view threads I have started, but that is just the start of the problems. It dawned on me that I need also to check if the forum is using the mod system, otherwise all posts all over the forum will have Developer in the sig. Basically I've bitten off more than I can chew, if you get some time could you have a look at how this can be done please.
*********** EDIT **************
Gah, I thought I had it but the moddev.gif still wont show, this is the new code I am trying to use:
Code:
<if condition="in_array($thread['forumid'], array(28,29,32,10,39,43,41)) && $threadinfo['postuserid'] == $bbuserinfo['userid']">
<div><img src="$stylevar[imgdir_misc]/moddev.gif" width="100" height="21" border="0" alt="" class="inlineimg" /></div>
</if>
But it's not working, can anyone tell me what I've got wrong please?