<commit_before>{title help="Inter-User Messages"}{tr}Compose message{/tr}{/title}

{include file='tiki-mytiki_bar.tpl'}
{include file='messu-nav.tpl'}

{if $allowMsgs ne 'y'}<br />
	<div class="simplebox">
		{icon _id=information style="vertical-align:middle" align="left"} {tr}If you want people to be able to reply to you, enable <a href='tiki-user_preferences.php'>Allow messages from other users</a> in your preferences.{/tr}
	</div>
	<br />
	<br />
{/if}


{if $sent}
	<div class="simplebox highlight">
		{if (strstr($message, "{tr}ERROR{/tr}")) or (strstr($message, "{tr}Invalid{/tr}"))}
			{icon _id=delete alt="{tr}Error{/tr}" style="vertical-align:middle" align="left"}
		{else}
			{icon _id=accept alt="{tr}Send{/tr}" style="vertical-align:middle"}
		{/if}
		{$message}
	</div>
{/if}

{if (!$sent) or ((strstr($message, "{tr}ERROR{/tr}")) or (strstr($message, "{tr}Invalid{/tr}")))}
{if $prefs.user_selector_realnames_messu == 'y'}
{jq}$(".username").tiki("autocomplete", "userrealname", {multiple: true, multipleSeparator: ";"});{/jq}
{else}
{jq}$(".username").tiki("autocomplete", "username", {multiple: true, multipleSeparator: ";"});{/jq}
{/if}
	<form action="messu-compose.php" method="post">
		<table class="formcolor" >
			<tr>
				<td>
					<label for="mess-composeto">{tr}To:{/tr}</label>
				</td>
				<td>
					<input type="text" name="to" id="mess-composeto" value="{$to|escape}" class="username" size="80" />
					<input type="hidden" name="replyto_hash" value="{$replyto_hash}" />
					<input type="hidden" name="reply" value="{$reply}" />
				</td>
			</tr>
			<tr>
				<td>
					<label for="mess-composecc">{tr}CC:{/tr}</label>
				</td>
				<td>
					<input type="text" name="cc" id="mess-composecc" value="{$cc|escape}" class="username" size="80" />
				</td>
			</tr>
			<tr>
				<td>
					<label for="mess-composebcc">{tr}BCC:{/tr}</label>
				</td>
				<td>
					<input type="text" name="bcc" id="mess-composebcc" value="{$bcc|escape}" class="username" size="80" />
				</td>
			</tr>
			<tr>
				<td>
					<label for="mess-prio">{tr}Priority:{/tr}</label>
				</td>
				<td>
					<select name="priority" id="mess-prio">
						<option value="1" {if $priority eq 1}selected="selected"{/if}>1: {tr}Lowest{/tr}</option>
						<option value="2" {if $priority eq 2}selected="selected"{/if}>2: {tr}Low{/tr}</option>
						<option value="3" {if $priority eq 3}selected="selected"{/if}>3: {tr}Normal{/tr}</option><commit_msg>[FIX]Usability fix: after sending a message to multiple users, you see their names separated by commas for some reason, while the right syntax to have multiple usernames in the required fields is by separating them with semicolon instead. Tip added with that info.<commit_after>{title help="Inter-User Messages"}{tr}Compose message{/tr}{/title}

{include file='tiki-mytiki_bar.tpl'}
{include file='messu-nav.tpl'}

{if $allowMsgs ne 'y'}<br />
	<div class="simplebox">
		{icon _id=information style="vertical-align:middle" align="left"} {tr}If you want people to be able to reply to you, enable <a href='tiki-user_preferences.php'>Allow messages from other users</a> in your preferences.{/tr}
	</div>
	<br />
	<br />
{/if}


{if $sent}
	<div class="simplebox highlight">
		{if (strstr($message, "{tr}ERROR{/tr}")) or (strstr($message, "{tr}Invalid{/tr}"))}
			{icon _id=delete alt="{tr}Error{/tr}" style="vertical-align:middle" align="left"}
		{else}
			{icon _id=accept alt="{tr}Send{/tr}" style="vertical-align:middle"}
		{/if}
		{$message}
	</div>
{/if}

{if (!$sent) or ((strstr($message, "{tr}ERROR{/tr}")) or (strstr($message, "{tr}Invalid{/tr}")))}
{if $prefs.user_selector_realnames_messu == 'y'}
{jq}$(".username").tiki("autocomplete", "userrealname", {multiple: true, multipleSeparator: ";"});{/jq}
{else}
{jq}$(".username").tiki("autocomplete", "username", {multiple: true, multipleSeparator: ";"});{/jq}
{/if}
	<form action="messu-compose.php" method="post">
		<table class="formcolor" >
			<tr>
				<td>
					<label for="mess-composeto">{tr}To:{/tr}</label>
					{help url="Inter-User+Messages#Composing_messages" desc="{tr}To{/tr}:{tr}Multiple addresses can be separated with semicolons (\";\"){/tr}"}
				</td>
				<td>
					<input type="text" name="to" id="mess-composeto" value="{$to|escape}" class="username" size="80" />
					<input type="hidden" name="replyto_hash" value="{$replyto_hash}" />
					<input type="hidden" name="reply" value="{$reply}" />
				</td>
			</tr>
			<tr>
				<td>
					<label for="mess-composecc">{tr}CC:{/tr}</label>
					{help url="Inter-User+Messages#Composing_messages" desc="{tr}CC{/tr}:{tr}Multiple addresses can be separated with semicolons (\";\"){/tr}"}
				</td>
				<td>
					<input type="text" name="cc" id="mess-composecc" value="{$cc|escape}" class="username" size="80" />
				</td>
			</tr>
			<tr>
				<td>
					<label for="mess-composebcc">{tr}BCC:{/tr}</label>
					{help url="Inter-User+Messages#Composing_messages" desc="{tr}BCC{/tr}:{tr}Multiple addresses can be separated with semicolons (\";\"){/tr}"}
				</td>
				<td>
					<input type="text" name="bcc" id="mess-composebcc" value="{$bcc|escape}" class="username" size="80" />
				</td>
			</tr>
			<tr>
				<td>
					<label for="mess-prio">{tr}Priority:{/tr}</label>
				</td>
				<td>
					<select name="priority" id="mess-prio">
						<option value="1" {if $priority eq 1}selected="selected"{/if}>1: {tr}Lowest{/tr}</option>
						<option value="2" {if $priority eq 2}selected="selected"{/if}>2: {tr}Low{/tr}</option>
						<option value="3" {if $priority eq 3}selected="selected"{/if}>3: {tr}Normal{/tr}</option>
{'fraction_non_alphanumeric': 0.22783449758194518, 'fraction_numerical': 0.0053734551316496505, 'mean_word_length': 4.578421578421579, 'pattern_counts': {'":': 0, '<': 109, '<?xml version=': 0, '>': 109, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5496647', 'n_tokens_mistral': 2384, 'n_tokens_neox': 2070, 'n_words': 433}