Here's what I put to make it work:
PHP Code:
if ($post['showpet']!=0) {
eval("\$post[petbit] = \"".gettemplate("petbit")."\";");
} else {
$post[petbit] = "";
}
and then this is the content of the template:
PHP Code:
<table cellspacing="0" width="100%" cellpadding="1" style="border-left:1px solid {tablebordercolor}; border-top:1px solid {tablebordercolor};">
<tr>
<td colspan="2" bgcolor="$post[backcolor]" style="border-right:1px solid {tablebordercolor}; border-bottom:1px solid {tablebordercolor};"><smallfont>$post[username]'s pet - <b> $post[petname]</b></smallfont></td>
</tr>
<tr>
<td colspan="2" style="border-right:1px solid {tablebordercolor};">
<smallfont>
<b>Type:</b> $pettype1 <br>
<b>Gender:</b> $post[petgender1]
</td>
</tr>
<tr>
<td bgcolor="$post[backcolor]" style="border-bottom:1px solid {tablebordercolor};" width="50">
<smallfont><center>
<img src="images/pets/$post[pettype1]$post[petgender1].gif"></img>
</td>
<td style="border-right:1px solid {tablebordercolor}; border-bottom:1px solid {tablebordercolor};"><smallfont>
<b>Level: $pshowlevel<br>
HP: $php / $pmaxhp
<table width="90" style="border:1px solid {tablebordercolor};" cellspacing="0" cellpadding="0">
<tr>
<td bgcolor="$post[backcolor]"><img src="images/bar/pbhg.gif" width="$phpf%" height="5"><img src="images/bar/pbhb.gif" width="1" height="5"></td>
</tr>
</table>
Exp: $pep%
<table style="border:1px solid {tablebordercolor};" width="90" cellspacing="0" cellpadding="0">
<tr>
<td bgcolor="$post[backcolor]"><img src="images/bar/pbxg.gif" width="$pep%" height="5"><img src="images/bar/pbxb.gif" width="1" height="5"></td>
</tr>
</table>
</table>
It shows the users petname up fine... other than that its a no show!