Jump to content

Table content based on UserGroup


AecrimRO

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.