Quote from: OncleBen31 at Oct 25, 2006, 08:52 AM
Thanks for the solution : it’s exactly what I need .
Notice that the good syntax seems to be :
[+phx:userinfo:inrole:isnot=`YourAllowedToPostGroupName`:then=`
Only Registered Users can post comments!
`+]
[[Jot? .. your parameters.. ]]
I don’t know if I modify something but my chunk doesn’t work anymore :
<div id="commentsAnchor">
[+phx:userinfo:inrole:isnot=`Registered Users`:then=`<p><strong>La rédaction de commentaires est réservée aux utilisateurs enregistrés !</strong>. Veuillez <a href="[~5~]">créer un compte</a> ou, si vous en avez déjà un, vous connecter</p>`+]
[+phx:userinfo:inrole:esc+]
[*createdby:date=`%a %B %d, %Y at %H:%M`*]
[!Jot? &customfields=`name,email` &subscribe=`1` &pagination=`4` &tplForm=`jotTplForm` &tplComments=`jotTplComments` &tplModerate=`jotTplModerate` &tplSubscribe=`jotTplSubscribe` &tplNav=`jotTplNav` &tplNotify=`jotTplNotify` &tplNotifyModerator=`jotTplNotifyModerator` &canmoderate=`Site Admins` ¬ify=`2` &canpost=`Registered Users` !]
</div>
If I’m logged out, I see the message and I don’t see the commentaire form (This is normal). If I’m logged in I see the form AND the message
I’ve add two calls of phx to be sure it works. But the [+phx:userinfo:inrole:esc+] return always 0. Is this normal ?