{* $Id$ *} {if $userwatch ne $user} {title help="User Preferences"}{tr}User Preferences:{/tr} {$userwatch}{/title} {else} {title help="User Preferences"}{tr}User Preferences{/tr}{/title} {/if} {if $userwatch eq $user or $userwatch eq ""} {include file='tiki-mytiki_bar.tpl'} {/if} {if $tiki_p_admin_users eq 'y'}
{assign var=thisuser value=$userinfo.login} {button href="tiki-assignuser.php?assign_user=$thisuser" _type="link" _text="{tr}Assign Group{/tr}"} {button href="tiki-user_information.php?view_user=$thisuser" _type="link" _text="{tr}User Information{/tr}"}
{/if} {tabset name="mytiki_user_preference"} {if $prefs.feature_userPreferences eq 'y'} {tab name="{tr}Personal Information{/tr}"}

{tr}Personal Information{/tr}

{ticket}
{tr}Last login:{/tr} {$userinfo.lastLogin|tiki_long_datetime}
{$avatar} {if $prefs.user_use_gravatar eq 'y'} {tr}Pick user profile picture{/tr} {else} {tr}Pick user profile picture{/tr} {/if}
{if $prefs.feature_community_gender eq 'y'}
{/if}
{*{if isset($user_prefs.country) && $user_prefs.country != "None" && $user_prefs.country != "Other"}*} {*{$userinfo.login|countryflag}*} {*{/if}*}
{if $prefs.feature_wiki eq 'y' and $prefs.feature_wiki_userpage eq 'y'}
{if $userPageExists eq 'y'} {$prefs.feature_wiki_userpage_prefix}{$userinfo.login|escape} ( {tr}Edit{/tr} ) {else} {$prefs.feature_wiki_userpage_prefix}{$userinfo.login|escape} ( {tr}Create{/tr} ) {/if}
{/if} {if $prefs.userTracker eq 'y' && $usertrackerId}
{if $tiki_p_admin eq 'y' and !empty($userwatch) and $userwatch neq $user} {else} {/if}
{/if} {* Custom fields *} {section name=ir loop=$customfields} {if $customfields[ir].show} {/if} {/section}
{/tab} {tab name="{tr}Preferences{/tr}"}

{tr}Preferences{/tr}

{tr}General settings{/tr}
{ticket}
{if $userinfo.email} {tr}If email is public, select a scrambling method to prevent spam{/tr} {else}

{tr}Unavailable - please set your email below{/tr}

{/if}
{if $prefs.feature_perspective eq 'y' and $perspectives|@count gt 0}
{/if}
{tr}Special character set for your email application{/tr}
{if $prefs.change_theme eq 'y' && empty($group_theme)}
{/if} {if $prefs.change_language eq 'y'}
{/if} {if $tiki_p_admin eq 'y'}
{/if} {if $prefs.feature_multilingual eq 'y'} {if $user_prefs.read_language}
{else} {/if}
{if $warning_site_timezone_set eq 'y'}
{tr}Warning:{/tr} {tr _0=$display_timezone}Site time zone %0 is enforced and overrides user preferences{/tr} {/if}
{if 1 eq 1 || $prefs.feature_community_mouseover eq 'y'}
{/if} {if $prefs.feature_messages eq 'y' and $tiki_p_messages eq 'y'} {tr}User Messages{/tr}
{if 1 eq 1 || $prefs.allowmsg_is_optional eq 'y'}
{/if}
{tr}Send me an email for messages with priority equal to or greater than{/tr}
{tr}Auto-archive read messages after selected days{/tr}
{/if} {if $prefs.feature_tasks eq 'y' and $tiki_p_tasks eq 'y'} {tr}User Tasks{/tr}
{/if} {tr}My Account{/tr} {if $prefs.xmpp_feature eq 'y'}

{tr}If empty, Tiki will provide default value{/tr}

This password will be stored in database

{tr}You have to provide this when using custom XMPP server{/tr}

{/if}
{if $prefs.feature_wiki eq 'y'}
{/if} {if $prefs.feature_blogs eq 'y'}
{/if} {if $prefs.feature_messages eq 'y' and $tiki_p_messages eq 'y'}
{/if} {if $prefs.feature_tasks eq 'y' and $tiki_p_tasks eq 'y'}
{/if} {if $prefs.feature_forums eq 'y' and $tiki_p_forum_read eq 'y'}
{/if} {if $prefs.feature_trackers eq 'y'}
{/if} {if $prefs.feature_articles eq 'y'}
{/if}
{if $prefs.feature_userlevels eq 'y'}
{/if}

{tr}Remember which remarksbox (alert box) you have closed and don't show them again{/tr}.

{button _text="{tr}Reset{/tr}" _onclick="if (confirm('{tr}This will reset the visibility of all the tips, notices and warning remarks boxes you have closed.{/tr}')) {ldelim}deleteCookie('rbox');{rdelim}return false;" _class='btn-sm'}
{if $prefs.webmonetization_enabled eq 'y'} {tr}Web Monetization{/tr}
{/if}
{/tab} {/if} {if $prefs.change_password neq 'n' or ! ($prefs.login_is_email eq 'y' and $userinfo.login neq 'admin')} {tab name="{tr}Account Information{/tr}"}

{tr}Account Information{/tr}

{include file='password_jq.tpl'} {ticket} {if $prefs.auth_method neq 'cas' || ($prefs.cas_skip_admin eq 'y' && $user eq 'admin')} {if $prefs.change_password neq 'n' and ($prefs.login_is_email ne 'y' or $userinfo.login eq 'admin')} {remarksbox type="tip" title="{tr}Information{/tr}" close="n"} {tr}Leave "New password" and "Confirm new password" fields blank to keep current password{/tr} {/remarksbox} {/if} {/if}
{if $prefs.login_is_email eq 'y' and $userinfo.login neq 'admin'} {else}
{/if} {if $prefs.auth_method neq 'cas' || ($prefs.cas_skip_admin eq 'y' && $user eq 'admin')} {if $prefs.change_password neq 'n'}
{icon name='ok' istyle='display:none'}{icon name='error' istyle='display:none' }
{include file='password_help.tpl'}
{/if} {if $tiki_p_admin ne 'y' or $userwatch eq $user}
{/if} {/if}
{/tab} {/if} {if $prefs.twoFactorAuth eq 'y' and ($tiki_p_admin ne 'y' or $userwatch eq $user)} {tab name="{tr}Security{/tr}"}

{tr}Two-Factor Authentication{/tr}

{remarksbox type="tip"} {tr}Two-factor authentication is a security measure that requires an extra code when you log in. When enabled, Tiki will require a code from your mobile phone during login. This code is created by the Google Authenticator®.{/tr} {/remarksbox} {if $tfaSecret }
{ticket}
{tr}Install a soft token authenticator like FreeOTP or Google Authenticator from your application repository and use that app to scan this QR code. More information is available in the documentation.{/tr}
{else}
{ticket}
{/if} {/tab} {/if} {if $tiki_p_delete_account eq 'y' and $userinfo.login neq 'admin'} {tab name="{tr}Account Deletion{/tr}"}

{tr}Account Deletion{/tr}

{ticket} {if !empty($userwatch)}{/if}

{/tab} {/if} {/tabset}