Instead of doing an unset (I'm not sure how you would do that), why not just set it to the postcount you want it to stay at?
PHP Code:
if ($this->fetch_field('userid') == 36)
{
if($this->fetch_field('posts') >= 666)
{
$this->set('posts', 666);
}
}
Although, looking more into it there, it doesn't look like the posts are actually saved there. It looks like it is passed back in the $userinfo array. So, I think you may want to do something more along these lines (again, not tested, play with it on a test site):
PHP Code:
if ($this->fetch_field('userid') == 36)
{
if($this->fetch_field('posts') >= 666)
{
$posts = 666;
$userinfo = array(
'userid' => $userid, // we need an userid for is_member_of's cache routine
'posts' => $posts
);
}
}