/// <summary>
        /// Handles the Init event of the Page control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
        protected void Page_Init([NotNull] object sender, [NotNull] EventArgs e)
        {
            // get the forum editor based on the settings
            this.reportEditor = ForumEditorHelper.GetCurrentForumEditor();

            // add editor to the page
            this.EditorLine.Controls.Add(this.reportEditor);
        }
        /// <summary>
        /// Handles the Initialization event of the Page control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
        protected void Page_Init([NotNull] object sender, [NotNull] EventArgs e)
        {
            this.editor = ForumEditorHelper.GetCurrentForumEditor();

            this.editor.MaxCharacters = this.PageContext.BoardSettings.MaxPostSize;

            this.EditorLine.Controls.Add(this.editor);

            this.editor.UserCanUpload = this.Get <BoardSettings>().AllowPrivateMessageAttachments;

            // add editor to the page
            this.EditorLine.Controls.Add(this.editor);
        }
Beispiel #3
0
        /// <summary>
        /// Handles the Initialization event of the Page control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
        protected void Page_Init([NotNull] object sender, [NotNull] EventArgs e)
        {
            // create editor based on administrator's settings
            // get the forum editor based on the settings
            this._editor = ForumEditorHelper.GetCurrentForumEditor();

            this.EditorLine.Controls.Add(this._editor);

            this._editor.UserCanUpload = this.Get <YafBoardSettings>().AllowPrivateMessageAttachments;

            // add editor to the page
            this.EditorLine.Controls.Add(this._editor);
        }
Beispiel #4
0
        /// <summary>
        /// Handles the Initialization event of the Page control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
        protected void Page_Init([NotNull] object sender, [NotNull] EventArgs e)
        {
            // create editor based on administrator's settings
            // get the forum editor based on the settings
            this._editor = ForumEditorHelper.GetCurrentForumEditor();

            this.EditorLine.Controls.Add(this._editor);

            // TODO : Handle Attachments for pm's
            this._editor.UserCanUpload = false;

            // add editor to the page
            this.EditorLine.Controls.Add(this._editor);
        }
Beispiel #5
0
        /// <summary>
        /// Raises the <see cref="E:System.Web.UI.Control.Init"/> event.
        /// </summary>
        /// <param name="e">An <see cref="T:System.EventArgs"/> object that contains the event data.</param>
        protected override void OnInit([NotNull] EventArgs e)
        {
            if (this.PageContext.ForumUploadAccess)
            {
                this.PageContext.PageElements.AddScriptReference("FileUploadScript");

#if DEBUG
                this.PageContext.PageElements.RegisterCssIncludeContent("jquery.fileupload.comb.css");
#else
                this.PageContext.PageElements.RegisterCssIncludeContent("jquery.fileupload.comb.min.css");
#endif
            }

            this.forumEditor = ForumEditorHelper.GetCurrentForumEditor();

            this.EditorLine.Controls.Add(this.forumEditor);

            base.OnInit(e);
        }