this is the code i am using, and it wont work.
i put that into includes/functions_newpost.php
EDIT: it told me to put it after this line.
$show['messageicon'] = iif($post['iconpath'], true, false);
but i couldnt find that line, i found one a little different
$show['messageicon'] = iif($newpost['iconpath'], true, false);
// ## Start RPG Stats Function ## //
$rpglvl = str_replace(array(' ', ',', '.'), '', $post[posts]);
$level = pow (log10 ($rpglvl), 3);
$ep = floor (100 * ($level - floor ($level)));
$showlevel = floor ($level + 1);
$hpmulti =round ($postsperday / 6, 1);
if ($hpmulti > 1.5) {
$hpmulti = 1.5;
}
if ($hpmulti < 1) {
$hpmulti = 1;
}
$maxhp = $level * 25 * $hpmulti;
$hp= $postsperday / 4;
if ($hp >= 1) {
$hp= $maxhp;
} else {
$hp= floor ($hp * $maxhp);
}
$hp= floor ($hp);
$maxhp= floor ($maxhp);
if ($maxhp <= 0) {
$zhp = 1;
} else {
$zhp = $maxhp;
}
$hpf= floor (100 * ($hp / $zhp)) - 1;
$maxmp= ($jointime * $level) / 5;
$mp= $rpglvl / 3;
if ($mp >= $maxmp) {
$mp = $maxmp;
}
$maxmp = floor ($maxmp);
$mp = floor ($mp);
if ($maxmp <= 0) {
$zmp = 1;
} else {
$zmp = $maxmp;
}
$mpf= floor (100 * ($mp / $zmp)) - 1;
// ## End RPG Stats Function ## //
and i added this to the postbit_legacy
<br>
<div class="smallfont">Level: $showlevel<br />
HP: $hp / $maxhp<br />
MP: $mp / $maxmp<br />
EXP: $ep% <br />
</div>
it shows up on the post, but the values are blank.
this is what i see
