I need help with if and elseif statements. I have a website built on templates and I currently have two user groups: JobSeekers and Employers (Employer). I want to add a third group, Nonprofit Employers (Employer1). The only difference between the employer and employer1 group will be the memberships they can subscribe to. Everything else will be identical. I am trying to add this new group to the necessary templates and top menu. My problem is that the current code is set up as “if” statements between the employer group and the jobseeker group. I have tried using elseif but it creates duplicate listings and “account” buttons on the top menu. Can someone explain how I can make this work please. Subscribers will be in one of three groups. Here’s an example of some code where I need to add the new group (employer1):
[php]{/if}
{if $GLOBALS.current_user.group.id == ‘Employer’}[[FormFieldCaptions!Job ID]]{else}[[FormFieldCaptions!Resume ID]]{/if}
{if $sorting_field == ‘id’}{if $sorting_order == ‘ASC’}
{if $property.activation_date.is_sortable}
[[FormFieldCaptions!Posted]]
{if $sorting_field == ‘activation_date’}{if $sorting_order == ‘ASC’}
{else}
[[FormFieldCaptions!Posted]]
{/if}
[php]
[php]{if $GLOBALS.current_user.group.id == ‘Employer’}
[[FormFieldCaptions!Applications]]
{if $sorting_field == ‘applications’}{if $sorting_order == ‘ASC’}{else}
{/if}{/if}
{/if}[/php]
Thanks so much for any help you can give me.
Carrie