AecrimRO Posted May 17, 2012 Share Posted May 17, 2012 Hi, I have a question about displaying a content of a file according to user group, namely a registration form. Attach the original file without code changes. The attached file around line 139 we code with $ field = $ this-> fields-> getField (). I want to change the users are in group X to appear piece of code $ field = $ this-> fields-> getField (); And users are in group Y piece of code appear $ field = $ this-> fields-> getField () if ($ field-> hasValue ()) only if it has value. I do not know how I can do this. I tried something like <php? if ($ userGroupName myGroupName && $ == $ myGroupName == 'agents) {?> Piece of code 136-157 <? php} else {if ($ userGroupName myGroupName && $ == $ myGroupName == 'Clients')?> Piece of code from 136 to 157 139 line of code changed $ field = $ this-> fields-> getField () if ($ field-> hasValue ()) <? php}?> But no result. If I can anyone help them remain in debt. Thanks, Mircea 18394_.txt 18395_.txt Quote Link to comment https://forums.phpfreaks.com/topic/262667-table-content-based-on-usergroup/ Share on other sites More sharing options...
AecrimRO Posted May 17, 2012 Author Share Posted May 17, 2012 And the CMS it's Joomla 1.6 Quote Link to comment https://forums.phpfreaks.com/topic/262667-table-content-based-on-usergroup/#findComment-1346282 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.