Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.