thanks for posting changes needed to make it work in the stats page, i totally forgot about that XD as i completely removed that code form the manage adopts =p because with the profile i made for my adopts the stats page was no longer needed.
also for those that want to have the info of the needed point for the next stage, beside of the current stage just:
Delete:
PHP Code:
$document->add(new Comment("{$stages}");
and replace:
with: