HI Folks,
I know nothing of PHP but would like to ad a simple ELSE function after an {IF}. What is the syntax for a ELSE statement?
On my Forum, I have the Change User Module enable for members only that look like this:
{IF mod_change_username_enabled}
{HOOK mod_change_username_field PROFILE}
<tr>
<td colspan="2"><font color="#FF0000">{LANG->NewUsername}</font></td>
</tr>
{/IF}
I would like to have an ELSE statement to ad a message for non-member explaining to them that changing username is reserved to member only and direct them how to request to join the group.
What is the proper PHP syntax that will allow me to ad a new variable {LANG->NonMemberMessage}. Would it be something like this (I'm taking a guess...) :
{ELSE}
<tr>
<td colspan="2"><font color="#FF0000">{LANG->NonMemberMessage}</font></td>
</tr>
{/ELSE}
Thanks for your help,
Yves