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 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 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
Archived
This topic is now archived and is closed to further replies.