I use revolution1
the code does not work is that
please respond with the correct code and running and only professionals MODx, the code is very simple is not productive to lose all this time.
the code does not work and was posted by Bob Ray
<? php
/ * * Snippet ingroup /
$ output = "";
if ($ MODx-> user-> isMember (’Group’)) {
$ output = $ MODx-> GetChunk (’chunk1’);
} Else if ($ MODx-> user-> isMember (’GroupB’)) {
$ output = $ MODx-> GetChunk (’chunk2’);
Else {}
$ output = $ MODx-> GetChunk (’chunk3’);
}
return $ output;
?>
also fails
<?php
$user =& $modx->user;
if ($user->isMember(’membres’) {
$output = $modx->getChunk(’membres’);
} elseif ($user->isMember(’administrateurs’) {
$output = $modx->getChunk(’administrateurs’);
} elseif ($user->isMember(’employés’) {
$output = $modx->getChunk(’employés’);
} else {
$output = $modx->getChunk(’offline’);
}
return $output;
?>
thank you very much