. // This provides the form from which the user can edit his or her // forum preferences. It relies upon edit_forum_preferences_action.php // to do anything. require_once("../inc/util.inc"); require_once("../inc/forum.inc"); check_get_args(array()); $user = get_logged_in_user(); BoincForumPrefs::lookup($user); page_head(tra("Community preferences")); // output a script for counting chars left in text field // echo " "; start_table(); echo "
"; // ------------ Notification ----------- row1(tra("Notifications")); $ch0 = $user->prefs->pm_notification==0?"checked":""; $ch1 = $user->prefs->pm_notification==1?"checked":""; $ch2 = $user->prefs->pm_notification==2?"checked":""; row2( tra("How should we notify you of new private messages, friend requests, posts in subscribed threads, and other events?"), " ".tra("On my Account page (no email)")."
".tra("Immediately, by email")."
".tra("In a single daily email")." " ); // ------------ Forum identity ----------- $select_0 = $select_1 = $select_2 = ""; if (strlen($user->prefs->avatar)){ if (substr($user->prefs->avatar, 0, 4) == 'http') { // Gravatar $select_1 = "checked=\"true\""; } else { $select_2 = "checked=\"true\""; } } else { $select_0 = "checked=\"true\""; } row1(tra("Message-board identity")); row2(tra("Avatar")."
".tra("An image representing you on the message boards.")."
".tra("Format: JPG or PNG. Size: at most 4 KB, 100x100 pixels")."
", "

" ); if (strlen($user->prefs->avatar)){ row2(tra("Avatar preview")."
".tra("This is how your avatar will look")."", "prefs->avatar."\" width=\"100\" height=\"100\">"); } $signature_by_default = $user->prefs->no_signature_by_default==false?"checked=\"checked\"":""; $signature=$user->prefs->signature; $maxlen=250; row2( tra("Signature for message board posts") .html_info() ."

" .tra("Check out %1various free services%2
providing dynamic 'signature images'
showing your latest credit info, project news, etc.", "", ""), "
".tra("characters remaining")."
".tra("Attach signature by default") ); if ($user->prefs->signature!=""){ row2(tra("Signature preview"). "
".tra("This is how your signature will look in the forums")."", output_transform($user->prefs->signature) ); } // ------------ Message display ----------- $forum_hide_avatars = $user->prefs->hide_avatars?"checked=\"checked\"":""; $forum_hide_signatures = $user->prefs->hide_signatures?"checked=\"checked\"":""; $forum_link_popup = $user->prefs->link_popup?"checked=\"checked\"":""; $forum_image_as_link = $user->prefs->images_as_links?"checked=\"checked\"":""; $forum_jump_to_unread = $user->prefs->jump_to_unread?"checked=\"checked\"":""; $forum_ignore_sticky_posts = $user->prefs->ignore_sticky_posts?"checked=\"checked\"":""; $forum_highlight_special = $user->prefs->highlight_special?"checked=\"checked\"":""; $forum_minimum_wrap_postcount = intval($user->prefs->minimum_wrap_postcount); $forum_display_wrap_postcount = intval($user->prefs->display_wrap_postcount); row1(tra("Message display")); row2( tra("What to display"), " ".tra("Hide avatar images")."
".tra("Hide signatures")."
".tra("Show images as links")."
".tra("Open links in new window/tab")."
".tra("Highlight special users")."
" ); row2(tra("How to sort"), tra("Threads:")." ".select_from_array("forum_sort", $forum_sort_styles, $user->prefs->forum_sorting)."
".tra("Posts:")." ".select_from_array("thread_sort", $thread_sort_styles, $user->prefs->thread_sorting)."
".tra("Jump to first new post in thread automatically")."
".tra("Do not reorder sticky posts")."
".tra("If a thread contains more than this number of posts")."
".tra("only display the first one and this many of the last ones")."
" ); // ------------ Message filtering ----------- row1(tra("Message filtering")); $filtered_userlist = get_ignored_list($user); $forum_filtered_userlist = ""; for ($i=0; $iid."\" value=\"".tra("Remove")."\"> ".$filtered_user->id." - ".user_links($filtered_user)."
"; } } row2(tra("Filtered users"). "
".tra("Ignore message board posts and private messages from these users.")."", "$forum_filtered_userlist ".tra("User ID (For instance: 123456789)")."
" ); row1(tra("Update")); row2(tra("Click here to update preferences"), ""); echo "\n"; row1(tra("Reset")); row2(tra("Or click here to reset preferences to the defaults"), "
" ); end_table(); page_tail(); $cvs_version_tracker[]="\$Id$"; //Generated automatically - do not edit ?>