Well.... thanks for "respons"
I want to share my solution.
As I think, function
is_member_of is broken then it used with
post cache rebuild from admincp,
AND, maybe, if it used with unserialized data of usergroups...
I replace it:
PHP Code:
if (is_member_of($post, unserialize($vbulletin->options['anysharecode_user_groups'])))
with:
PHP Code:
$alowedgroups = array_intersect(explode(",", $post['membergroupids'] . "," . $post['usergroupid']), unserialize($vbulletin->options['anysharecode_user_groups']));
if (count($alowedgroups > 0))
and now, rebuild post cache, work correct.