Exemple #1
0
 public BlogSettings()
 {
     EnableBlogFunction = true;
     AllowHtml          = new Exceptable <bool>(false);
     AllowUbb           = new Exceptable <bool>(true);
     FunctionName       = "日志";
 }
Exemple #2
0
 public AlbumSettings()
 {
     EnableAlbumFunction = true;
     MaxAlbumCapacity    = new Exceptable <long>(1024 * 1024 * 50);
     MaxPhotoFileSize    = new Exceptable <long>(1024 * 300);
     FunctionName        = "相册";
 }
Exemple #3
0
        public DoingSettings()
        {
            EnableDoingFunction = true;

            EveryDayPostLimit = new Exceptable <int>(100);

            FunctionName = "记录";
        }
Exemple #4
0
        public EmoticonSettings()
        {
            ThumbImageHeight = 24;
            ThumbImageWidth  = 24;

            EnableUserEmoticons = true;
            MaxEmoticonCount    = new Exceptable <int>(200);              //最大表情数限制200个
            MaxEmoticonFileSize = new Exceptable <long>(100 * 1024);      //最大文件限制100K
            MaxEmoticonSpace    = new Exceptable <long>(5 * 1024 * 1024); //最大空间限制5M
            Import = new Exceptable <bool>(true);
            Export = new Exceptable <bool>(true);
        }
Exemple #5
0
        public SearchSettings()
        {
            this.SearchPageSize = 20;
            this.SearchType     = SearchType.LikeStatement;
            this.HighlightColor = "#FF0000";

            EnableSearch          = new Exceptable <bool>(true);
            CanSearchTopicContent = new Exceptable <bool>(true);
            CanSearchAllPost      = new Exceptable <bool>(true);
            CanSearchUserTopic    = new Exceptable <bool>(true);
            CanSearchUserPost     = new Exceptable <bool>(true);

            EnableGuestSearch          = false;
            GuestCanSearchTopicContent = false;
            GuestCanSearchAllPost      = false;
            GuestCanSearchUserPost     = false;
            GuestCanSearchUserTopic    = false;

            MaxResultCount = new Exceptable <int>(500);

            SearchTime          = new Exceptable <int>(15);
            GuestSearchTime     = 30;
            GuestMaxResultCount = 500;
        }
Exemple #6
0
        public BbsSettings()
        {
            RssShowThreadCount = 20;

            this.PostsPageSize            = 10;
            this.ThreadsPageSize          = 20;
            this.HotThreadRequireReplies  = 20;
            this.AllowQuicklyCreateThread = true;
            this.AllowQuicklyReply        = true;
            this.DisplaySignature         = new Exceptable <bool>(true);

            this.DisplayAvatar = true;

            this.NewThreadTime      = 3600;
            this.NewThreadPageCount = 10;
            this.ShowMarksCount     = 5;

            this.DisplaySubforumsInIndexpage = true;

            this.EnableGuestNickName = true;

            //this.SearchPageSize = 20;
            //this.SearchType = SearchType.LikeStatement;
            //this.HighlightColor = "#FF0000";

            MaxAttachmentCountInDay      = new Exceptable <int>(10);
            MaxTotalAttachmentsSizeInDay = new Exceptable <long>(1024 * 1024 * 20);
            DisplaySideBar  = true;
            DefaultTextMode = true;

            MaxPollItemCount = 10;

            EnableShowLoginDialog = true;
            StickSortType         = StickSortType.StickDate;
            GloableStickSortType  = StickSortType.StickDate;
        }
Exemple #7
0
        public ForumSettingItem()
        {
            AllowGuestVisitForum  = true;
            DisplayInListForGuest = true;
            VisitForum            = new Exceptable <bool>(true);
            DisplayInList         = new Exceptable <bool>(true);

            EnableHiddenTag = true;

            EnableThreadRank = true;

            EnableSellAttachment = new Exceptable <bool>(true);

            EnableSellThread = new Exceptable <bool>(true);

            PostSubjectLengths = new Exceptable <Int32Scope>(new Int32Scope(2, 150));

            PostContentLengths = new Exceptable <Int32Scope>(new Int32Scope(2, 50000));

            CreatePostIntervals = new Exceptable <int>(10);



            UpdateThreadSortOrderIntervals = new Exceptable <int>(60 * 60 * 24 * 30);


            RecycleOwnThreadsIntervals = new Exceptable <int>(60 * 60 * 24);

            UpdateOwnPostIntervals = new Exceptable <int>(0);

            DeleteOwnThreadsIntervals = new Exceptable <int>(60 * 60 * 24);


            QuestionValidDays = new Exceptable <long>(60 * 60 * 24 * 3);

            PolemizeValidDays = new Exceptable <long>(60 * 60 * 24 * 3);

            PollValidDays = new Exceptable <long>(60 * 60 * 24 * 3);

            AllowFileExtensions = new Exceptable <ExtensionList>(ExtensionList.Parse("*"));

            AllowImageAttachment = new Exceptable <bool>(true);

            AllowAttachment = new Exceptable <bool>(true);

            MaxSignleAttachmentSize = new Exceptable <long>(1024 * 1024 * 5);

            MaxTopicAttachmentCount = new Exceptable <int>(10);

            MaxPostAttachmentCount = new Exceptable <int>(10);

            CreatePostAllowEmoticon = new Exceptable <bool>(true);

            CreatePostAllowAudioTag = new Exceptable <bool>(true);

            CreatePostAllowFlashTag = new Exceptable <bool>(true);

            CreatePostAllowHTML = new Exceptable <bool>(false);

            CreatePostAllowImageTag = new Exceptable <bool>(true);

            CreatePostAllowMaxcode = new Exceptable <bool>(true);

            CreatePostAllowTableTag = new Exceptable <bool>(true);

            CreatePostAllowUrlTag = new Exceptable <bool>(true);

            CreatePostAllowVideoTag = new Exceptable <bool>(true);

            ShowSignatureInThread = new Exceptable <bool>(true);

            ShowSignatureInPost = new Exceptable <bool>(true);

            ReplyNeedApprove = new Exceptable <bool>(false);

            CreateThreadNeedApprove = new Exceptable <bool>(false);

            DefaultThreadSortField = ThreadSortField.LastReplyDate;


            ReplyReturnThreadLastPage = true;
        }