268 lines
17 KiB
HTML
268 lines
17 KiB
HTML
<!DOCTYPE html >
|
|
<html lang="en">
|
|
<head>
|
|
<title><%site_title%>: Settings: Display Settings: <%current.user_username%></title>
|
|
<%include include_common_head.html%>
|
|
<script type="text/javascript" src="<%static_url%>/js/jquery.min.js"></script>
|
|
</head>
|
|
<body class="page-<%page_id%>">
|
|
<div class="container-b">
|
|
<%include include_header.html%>
|
|
|
|
<div class="main">
|
|
<%~set content_header_title = 'Display Settings'%>
|
|
|
|
<%~init array breadcrumbs%><%init hash breadcrumbs.0%><%init hash breadcrumbs.1%>
|
|
<%~set breadcrumbs.0.name = 'User Profile'%>
|
|
<%~set breadcrumbs.0.url = GForum::SEO::url(params => "do=user_profile")%>
|
|
<%~set breadcrumbs.1.name = 'Display Settings'%>
|
|
|
|
<div class="contentwrapper clearfix">
|
|
<div class="sidebar">
|
|
<%include include_sidebar.html%>
|
|
</div>
|
|
|
|
<%include include_breadcrumb.html%>
|
|
|
|
<div class="content"><%-- start content--%>
|
|
<%include include_content_header.html%>
|
|
<form action="<%GForum::SEO::url()%>" method="post">
|
|
<input type="hidden" name="do" value="user_profile_change" />
|
|
<input type="hidden" name="on_success" value="user_profile" />
|
|
<input type="hidden" name="on_error" value="user_profile_display" />
|
|
<input type="hidden" name="user_default_post_display" value="1" />
|
|
<%hidden_form%>
|
|
|
|
<div class="dtable form">
|
|
<div class="drow">
|
|
<div class="dcell name">Post Style</div>
|
|
<div class="dcell divider"></div>
|
|
<div class="dcell value">
|
|
<select id="user_default_post_style_select" name="user_default_post_style" size="1">
|
|
<option value="0"<%GForum::GUI::selected('user_default_post_style', '0')%>><%GForum::language('FORUM_STYLE_PLAIN')%></option>
|
|
<option value="1"<%GForum::GUI::selected('user_default_post_style', '1')%>><%GForum::language('FORUM_STYLE_MARKUP')%></option>
|
|
<option value="2"<%GForum::GUI::selected('user_default_post_style', '2')%>><%GForum::language('FORUM_STYLE_HTML')%></option>
|
|
<option value="3"<%GForum::GUI::selected('user_default_post_style', '3')%>><%GForum::language('FORUM_STYLE_BOTH')%></option>
|
|
</select>
|
|
</div>
|
|
</div>
|
|
<div class="drow">
|
|
<div class="dcell name">Private Message Style</div>
|
|
<div class="dcell divider"></div>
|
|
<div class="dcell value">
|
|
<select id="user_default_message_style_select" name="user_default_message_style" size="1">
|
|
<option value="0"<%GForum::GUI::selected('user_default_message_style', '0')%>><%GForum::language('FORUM_STYLE_PLAIN')%></option>
|
|
<option value="1"<%GForum::GUI::selected('user_default_message_style', '1')%>><%GForum::language('FORUM_STYLE_MARKUP')%></option>
|
|
<option value="2"<%GForum::GUI::selected('user_default_message_style', '2')%>><%GForum::language('FORUM_STYLE_HTML')%></option>
|
|
<option value="3"<%GForum::GUI::selected('user_default_message_style', '3')%>><%GForum::language('FORUM_STYLE_BOTH')%></option>
|
|
</select>
|
|
</div>
|
|
</div>
|
|
<div class="drow">
|
|
<div class="dcell name">View Mode</div>
|
|
<div class="dcell divider"></div>
|
|
<div class="dcell value">
|
|
<select name="user_jump_to_unread">
|
|
<option value="1"<%GForum::GUI::selected('user_jump_to_unread', '1')%>>First Unread</option>
|
|
<option value="0"<%GForum::GUI::selected('user_jump_to_unread', '0')%>>View First Post</option>
|
|
</select>
|
|
</div>
|
|
</div>
|
|
<div class="drow">
|
|
<div class="dcell name">Post Editor</div>
|
|
<div class="dcell divider"></div>
|
|
<div class="dcell value">
|
|
<select name="user_advanced_editor">
|
|
<option value="1"<%GForum::GUI::selected('user_advanced_editor', '1')%>>Advanced</option>
|
|
<option value="0"<%GForum::GUI::selected('user_advanced_editor', '0')%>>Basic</option>
|
|
</select>
|
|
</div>
|
|
</div>
|
|
<div class="drow">
|
|
<div class="dcell name">After Posting</div>
|
|
<div class="dcell divider"></div>
|
|
<div class="dcell value signature">
|
|
<select id="user_do_after_post_select" name="user_do_after_post" size="1">
|
|
<option value="post_confirm"<%GForum::GUI::selected('user_do_after_post', 'post_confirm')%>>Confirm, then refresh to forum</option>
|
|
<option value="post_confirm_post"<%GForum::GUI::selected('user_do_after_post', 'post_confirm_post')%>>Confirm, then refresh to post</option>
|
|
<option value="forum_view"<%GForum::GUI::selected('user_do_after_post', 'forum_view')%>>Return directly to forum</option>
|
|
<option value="post_view"<%GForum::GUI::selected('user_do_after_post', 'post_view')%>>Return directly to post</option>
|
|
</select>
|
|
</div>
|
|
</div>
|
|
<div class="drow">
|
|
<div class="dcell name">Posts per Page</div>
|
|
<div class="dcell divider"></div>
|
|
<div class="dcell value">
|
|
<select id="user_default_mh_flatpost_select" name="user_default_mh_flatpost" class="narrow">
|
|
<option value="5"<%GForum::GUI::selected('user_default_mh_flatpost', '5')%>>5</option>
|
|
<option value="10"<%GForum::GUI::selected('user_default_mh_flatpost', '10')%>>10</option>
|
|
<option value="15"<%GForum::GUI::selected('user_default_mh_flatpost', '15')%>>15</option>
|
|
<option value="20"<%GForum::GUI::selected('user_default_mh_flatpost', '20')%>>20</option>
|
|
<option value="25"<%GForum::GUI::selected('user_default_mh_flatpost', '25')%>>25</option>
|
|
<option value="30"<%GForum::GUI::selected('user_default_mh_flatpost', '30')%>>30</option>
|
|
<option value="40"<%GForum::GUI::selected('user_default_mh_flatpost', '40')%>>40</option>
|
|
<option value="50"<%GForum::GUI::selected('user_default_mh_flatpost', '50')%>>50</option>
|
|
<option value="60"<%GForum::GUI::selected('user_default_mh_flatpost', '60')%>>60</option>
|
|
<option value="70"<%GForum::GUI::selected('user_default_mh_flatpost', '70')%>>70</option>
|
|
<option value="80"<%GForum::GUI::selected('user_default_mh_flatpost', '80')%>>80</option>
|
|
<option value="90"<%GForum::GUI::selected('user_default_mh_flatpost', '90')%>>90</option>
|
|
<option value="100"<%GForum::GUI::selected('user_default_mh_flatpost', '100')%>>100</option>
|
|
</select>
|
|
</div>
|
|
</div>
|
|
<div class="drow">
|
|
<div class="dcell name">PMs per Page</div>
|
|
<div class="dcell divider"></div>
|
|
<div class="dcell value">
|
|
<select id="user_default_mh_message_select" name="user_default_mh_message" class="narrow">
|
|
<option value="5"<%GForum::GUI::selected('user_default_mh_message', '5')%>>5</option>
|
|
<option value="10"<%GForum::GUI::selected('user_default_mh_message', '10')%>>10</option>
|
|
<option value="15"<%GForum::GUI::selected('user_default_mh_message', '15')%>>15</option>
|
|
<option value="20"<%GForum::GUI::selected('user_default_mh_message', '20')%>>20</option>
|
|
<option value="25"<%GForum::GUI::selected('user_default_mh_message', '25')%>>25</option>
|
|
<option value="30"<%GForum::GUI::selected('user_default_mh_message', '30')%>>30</option>
|
|
<option value="40"<%GForum::GUI::selected('user_default_mh_message', '40')%>>40</option>
|
|
<option value="50"<%GForum::GUI::selected('user_default_mh_message', '50')%>>50</option>
|
|
<option value="60"<%GForum::GUI::selected('user_default_mh_message', '60')%>>60</option>
|
|
<option value="70"<%GForum::GUI::selected('user_default_mh_message', '70')%>>70</option>
|
|
<option value="80"<%GForum::GUI::selected('user_default_mh_message', '80')%>>80</option>
|
|
<option value="90"<%GForum::GUI::selected('user_default_mh_message', '90')%>>90</option>
|
|
<option value="100"<%GForum::GUI::selected('user_default_mh_message', '100')%>>100</option>
|
|
</select>
|
|
</div>
|
|
</div>
|
|
<div class="drow">
|
|
<div class="dcell name">Search Results per Page</div>
|
|
<div class="dcell divider"></div>
|
|
<div class="dcell value">
|
|
<select id="user_default_mh_search_select" name="user_default_mh_search" class="narrow">
|
|
<option value="5"<%GForum::GUI::selected('user_default_mh_search', '5')%>>5</option>
|
|
<option value="10"<%GForum::GUI::selected('user_default_mh_search', '10')%>>10</option>
|
|
<option value="15"<%GForum::GUI::selected('user_default_mh_search', '15')%>>15</option>
|
|
<option value="20"<%GForum::GUI::selected('user_default_mh_search', '20')%>>20</option>
|
|
<option value="25"<%GForum::GUI::selected('user_default_mh_search', '25')%>>25</option>
|
|
<option value="30"<%GForum::GUI::selected('user_default_mh_search', '30')%>>30</option>
|
|
<option value="40"<%GForum::GUI::selected('user_default_mh_search', '40')%>>40</option>
|
|
<option value="50"<%GForum::GUI::selected('user_default_mh_search', '50')%>>50</option>
|
|
<option value="60"<%GForum::GUI::selected('user_default_mh_search', '60')%>>60</option>
|
|
<option value="70"<%GForum::GUI::selected('user_default_mh_search', '70')%>>70</option>
|
|
<option value="80"<%GForum::GUI::selected('user_default_mh_search', '80')%>>80</option>
|
|
<option value="90"<%GForum::GUI::selected('user_default_mh_search', '90')%>>90</option>
|
|
<option value="100"<%GForum::GUI::selected('user_default_mh_search', '100')%>>100</option>
|
|
</select>
|
|
</div>
|
|
</div>
|
|
<div class="drow">
|
|
<div class="dcell name">Search Results only Show</div>
|
|
<div class="dcell divider"></div>
|
|
<div class="dcell value">
|
|
<select name="user_default_post_show" class="narrow">
|
|
<option value="0"<%GForum::GUI::selected('user_default_post_show', '0')%>>Threads</option>
|
|
<option value="1"<%GForum::GUI::selected('user_default_post_show', '1')%>>Posts</option>
|
|
</select>
|
|
</div>
|
|
</div>
|
|
<div class="drow">
|
|
<div class="dcell name">Users per Page</div>
|
|
<div class="dcell divider"></div>
|
|
<div class="dcell value">
|
|
<select id="user_default_mh_user_select" name="user_default_mh_user" class="narrow">
|
|
<option value="5"<%GForum::GUI::selected('user_default_mh_user', '5')%>>5</option>
|
|
<option value="10"<%GForum::GUI::selected('user_default_mh_user', '10')%>>10</option>
|
|
<option value="15"<%GForum::GUI::selected('user_default_mh_user', '15')%>>15</option>
|
|
<option value="20"<%GForum::GUI::selected('user_default_mh_user', '20')%>>20</option>
|
|
<option value="25"<%GForum::GUI::selected('user_default_mh_user', '25')%>>25</option>
|
|
<option value="30"<%GForum::GUI::selected('user_default_mh_user', '30')%>>30</option>
|
|
<option value="40"<%GForum::GUI::selected('user_default_mh_user', '40')%>>40</option>
|
|
<option value="50"<%GForum::GUI::selected('user_default_mh_user', '50')%>>50</option>
|
|
<option value="60"<%GForum::GUI::selected('user_default_mh_user', '60')%>>60</option>
|
|
<option value="70"<%GForum::GUI::selected('user_default_mh_user', '70')%>>70</option>
|
|
<option value="80"<%GForum::GUI::selected('user_default_mh_user', '80')%>>80</option>
|
|
<option value="90"<%GForum::GUI::selected('user_default_mh_user', '90')%>>90</option>
|
|
<option value="100"<%GForum::GUI::selected('user_default_mh_user', '100')%>>100</option>
|
|
</select>
|
|
</div>
|
|
</div>
|
|
<div class="drow">
|
|
<div class="dcell name"><span class="time_preview">Current time: <br /><span id="show_current_time"><%GForum::date%></span></span></div>
|
|
<div class="dcell divider"></div>
|
|
<div class="dcell value clearfix images">
|
|
<%set default_tz = $config.default_timezone~%>
|
|
<%set init_zone = 0~%>
|
|
<%if default_tz eq 'local'%><%set default_tz = GT::Date::tz_local_name()%><%endif%>
|
|
<%if default_tz starts '+' or default_tz starts '-'%><%set disp_tz = 'UTC'%><%set disp_tz .= substr($default_tz, 0, 3)%><%set disp_tz .= ':'%><%set disp_tz .= substr($default_tz, 3)%><%set default_tz = $disp_tz%><%endif%>
|
|
|
|
<select id="timezone_region">
|
|
<option>Default Timezone</option>
|
|
<%~loop datetime_timezones%>
|
|
<option<%if form.user_timezone starts "$region/"%> selected="selected"<%set init_zone = $rownum%><%endif%>><%region%><%if region eq 'America'%>s<%endif%></option>
|
|
<%~endloop%>
|
|
</select>
|
|
|
|
<select name="user_timezone" id="user_timezone">
|
|
<option value="local"<%if not user_timezone or user_timezone eq 'local'%> selected="selected"<%endif%>>Default time zone (<%default_tz%>)</option>
|
|
<%~loop datetime_timezones%>
|
|
<optgroup label="<%region%>">
|
|
<%~loop locations%>
|
|
<option value="<%region%>/<%loop_value%>"<%if form.user_timezone eq "$region/$loop_value"%> selected="selected"<%endif%>><%loop_value%></option>
|
|
<%~endloop%>
|
|
</optgroup>
|
|
<%~endloop%>
|
|
</select>
|
|
|
|
<%~loop datetime_timezones%>
|
|
<%~loop locations%>
|
|
<%~if user_timezone eq "$region/$loop_value"%><%set init_zone = $region%><%if init_zone eq 'America'%><%set init_zone = 'Americas'%><%endif%><%endif%>
|
|
<%~endloop%>
|
|
<%~endloop%>
|
|
|
|
<script type="text/javascript">
|
|
//<![CDATA[
|
|
GForum.timezone_default = "<%escape_js default_tz%>";
|
|
GForum.timezone_error_message = "<%GForum::language('TIMEZONE_ERROR')%>";
|
|
GForum.timezone_loading_message = "<%GForum::language('TIMEZONE_LOADING')%>";
|
|
GForum.timezone_last_selected = [];
|
|
|
|
// Build the timezone data structure in the format:
|
|
// {
|
|
// region0: [ location0, location1, ..., locationN ],
|
|
// region1: [ location0, location1, ..., locationN ],
|
|
// region2: [ location0, location1, ..., locationN ],
|
|
// ...: [ ... ],
|
|
// regionN: [ location0, location1, ..., locationN ]
|
|
// }
|
|
GForum.timezone_zones = new Object;
|
|
GForum.timezone_zones["Default Timezone"] = ['local'];
|
|
<%loop datetime_timezones~%>
|
|
GForum.timezone_zones["<%escape_js region%>"] = [
|
|
<%loop locations%>"<%escape_js loop_value%>"<%unless last%>,<%endunless%><%endloop%>
|
|
];
|
|
<%endloop~%>
|
|
GForum.init_timezone_select("<%if init_zone%><%init_zone%><%else%>Default Timezone<%endif%>", "<%if user_timezone%><%escape_js user_timezone%><%else%>local<%endif%>");
|
|
//]]>
|
|
</script>
|
|
|
|
|
|
</div>
|
|
</div>
|
|
<div class="drow actions">
|
|
<div class="dcell name"></div>
|
|
<div class="dcell divider"></div>
|
|
<div class="dcell value">
|
|
<input type="submit" name="bupdate" value="Save Settings" class="btn default" />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
|
|
</div>
|
|
</div><%-- end content --%>
|
|
</div>
|
|
|
|
<%include include_footer.html%>
|
|
</div>
|
|
</body>
|
|
<%~include include_global_js.html%>
|
|
</html>
|