there seems to be some issues with the version in pakadge management.
I had to modify the snippet code to get it to work for me.
this is the code I am now using :
<?php
if (isset($redirs)){
$redirs=explode(',',$redirs);
if (count($redirs)>0){
foreach ($redirs as $redir){
$redir=explode(':',$redir);
if (count($redir)==2){
if ($modx->user->isMember($redir[0])){
$url=$modx->makeUrl($redir[1]);
}
}
}
}
}
return $modx->sendRedirect($url);
and I use it like this :
[[!RedirectUsergroups? &redirs=`Frontenduser:18,Premiumuser:22,Golduser:27`]]
to begin with the isset($redirs) was making an error because of it lacked these guys around it : ()
and I also prefered to use Usergroup:id,Anothergroup:otherid format, because to me, it’s easier to read. hope this can help someone.
PWD