diff --git a/html/user/edit_forum_preferences_form.php b/html/user/edit_forum_preferences_form.php index 0e8d233524..c523c36e3b 100644 --- a/html/user/edit_forum_preferences_form.php +++ b/html/user/edit_forum_preferences_form.php @@ -9,18 +9,29 @@ $user = get_logged_in_user(); $user = getForumPreferences($user); page_head("Edit message board preferences"); +echo ""; start_table(); row2("Reset preferences
Use this button to reset preferences to the defaults", - "
"); + "
"); echo "
"; - - - if ($user->avatar_type==0){ - $zero_select="checked=true"; + $zero_select="checked=\"checked\""; } elseif($user->avatar_type==1){ - $one_select="checked=true"; + $one_select="checked=\"checked\""; $avatar_url=$user->avatar; } elseif($user->avatar_type==2){ $two_select="checked=true"; @@ -40,7 +51,7 @@ if ($user->avatar!=""){ "avatar."\" width=\"100\" height=\"100\">"); } -row2("Sort styles
How to sort the replies in the message board and Q&A areas", +row2("Sort styles
How to sort the replies in the message board and Q&A areas", " @@ -50,9 +61,9 @@ row2("Sort styles
How to sort the replies in the message board
Message threadlist:".select_from_array("forum_sort", $forum_sort_styles, getSortStyle($user,"forum"))."
" ); -if ($user->link_popup==1){$forum_link_externally="checked=\"true\"";} else {$forum_link_externally="";} -if ($user->images_as_links==1){$forum_image_as_link="checked=\"true\"";} else {$forum_image_as_link="";} -if ($user->jump_to_unread==1){$forum_jump_to_unread="checked=\"true\"";} else {$forum_jump_to_unread="";} +if ($user->link_popup==1){$forum_link_externally="checked=\"checked\"";} else {$forum_link_externally="";} +if ($user->images_as_links==1){$forum_image_as_link="checked=\"checked\"";} else {$forum_image_as_link="";} +if ($user->jump_to_unread==1){$forum_jump_to_unread="checked=\"checked\"";} else {$forum_jump_to_unread="";} row2("Display and Behavior". "
How to treat links and images in the forum
and how to act on unread posts
", @@ -63,8 +74,8 @@ row2("Display and Behavior". " ); -if ($user->hide_avatars==1){$forum_hide_avatars="checked=\"true\"";} else {$forum_hide_avatars="";} -if ($user->hide_signatures==1){$forum_hide_signatures="checked=\"true\"";} else {$forum_hide_signatures="";} +if ($user->hide_avatars==1){$forum_hide_avatars="checked=\"checked\"";} else {$forum_hide_avatars="";} +if ($user->hide_signatures==1){$forum_hide_signatures="checked=\"checked\"";} else {$forum_hide_signatures="";} $forum_low_rating_threshold= $user->low_rating_threshold; $forum_high_rating_threshold= $user->high_rating_threshold; row2("Filtering". @@ -74,8 +85,8 @@ row2("Filtering". Hide signatures
- - + + @@ -84,13 +95,17 @@ row2("Filtering". ); -if ($user->no_signature_by_default==0){$enable_signature="checked=\"true\"";} else {$enable_signature="";} +if ($user->no_signature_by_default==0){$enable_signature="checked=\"checked\"";} else {$enable_signature="";} +$signature=stripslashes($user->signature); +$maxlen=250; row2("Signature for message boards". - "
May contain HTML tags
Max length (including newlines) is 250 chars.", - " - -
Attach signature by default" -); + "
May contain HTML tags
Max length (including newlines) is $maxlen chars.
", + "
Filter threshold (default: ".DEFAULT_LOW_RATING_THRESHOLD.")
Emphasize threshold (default: ".DEFAULT_HIGH_RATING_THRESHOLD.")
Filter threshold (default: ".DEFAULT_LOW_RATING_THRESHOLD.")
Emphasize threshold (default: ".DEFAULT_HIGH_RATING_THRESHOLD.")
Anything rated lower than the filter threshold will be filtered and anything rated higher than the emphasize threshold will be emphasized.
+ +
chars remaining +
Attach signature by default +
"); if ($user->signature!=""){ row2("Signature preview". "
This is how your signature will look in the forums", @@ -98,8 +113,7 @@ row2("Signature preview". ); } row2("", ""); -end_table(); echo "\n"; +end_table(); page_tail(); - -?> +?> \ No newline at end of file