ForumViewer Class |
Namespace: CMS.Forums
public class ForumViewer : CMSUserControl, IPostBackEventHandler
The ForumViewer type exposes the following members.
Name | Description | |
---|---|---|
ForumViewer |
Constructor.
|
Name | Description | |
---|---|---|
AddConfirmation |
Adds confirmation text to existing message on the page.
(Inherited from AbstractUserControl.) | |
AddError |
Adds error text to existing message on the page.
(Inherited from AbstractUserControl.) | |
AddHeaderAction |
Adds specified action to the page header actions.
(Inherited from AbstractUserControl.) | |
AddInformation |
Adds information text to existing message on the page.
(Inherited from AbstractUserControl.) | |
AddMessage |
Adds message text to existing message on the page.
(Inherited from AbstractUserControl.) | |
AddWarning |
Adds warning text to existing message on the page.
(Inherited from AbstractUserControl.) | |
AdministratorCode(Object, String) |
Returns html code if current user is moderator.
| |
AdministratorCode(Object, String, Boolean) |
Returns html code if current user is moderator.
| |
AvatarImage |
Returns avatar image.
| |
ClearURL |
Returns url without action parameters.
| |
CopyValues |
Copy current properties to the child control.
| |
CopyValuesFromParent |
Tries to find parent forum viewer and copy values.
| |
EnsureControls |
Interface for control that is able to explicitly ensure its child controls
(Inherited from AbstractUserControl.) | |
Eval(String) |
Evaluates the given value
(Inherited from AbstractUserControl.) | |
Eval(String, Boolean) |
Evaluates the item data (safe version), with html encoding.
(Inherited from AbstractUserControl.) | |
EvalBool |
Evaluates the item data and converts it to the bool.
(Inherited from AbstractUserControl.) | |
EvalDateTime |
Evaluates the item data and converts it to the date time.
(Inherited from AbstractUserControl.) | |
EvalDouble |
Evaluates the item data and converts it to the integer.
(Inherited from AbstractUserControl.) | |
EvalGuid |
Evaluates the item data and converts it to the guid.
(Inherited from AbstractUserControl.) | |
EvalHTML |
Evaluates the item data and doesn't encode it. Method should be used for columns with html content.
(Inherited from AbstractUserControl.) | |
EvalHtmlAttribute |
Evaluates the item data, encodes it to be used in HTML attribute.
(Inherited from AbstractUserControl.) | |
EvalInteger |
Evaluates the item data and converts it to the integer.
(Inherited from AbstractUserControl.) | |
EvalJSString |
Evaluates the item data, encodes it to be used in javascript code and encapsulates it with "'".
(Inherited from AbstractUserControl.) | |
EvalText(String) |
Evaluates the item data and encodes it. Method should be used for columns with string nonhtml content.
(Inherited from AbstractUserControl.) | |
EvalText(String, Boolean) |
Evaluates the item data and encodes it. Method should be used for columns with string nonhtml content.
(Inherited from AbstractUserControl.) | |
GenerateAnswerCode |
Generate code if current post is mark as answer.
| |
GenerateIndentCode |
Generate indent code.
| |
GetAccessDeniedPageUrl |
Returns access denied page with dependence on current setting.
(Inherited from CMSUserControl.) | |
GetData |
Returns data from datarow or datarowview and specified column.
| |
GetFlagIconUrl |
Returns resolved path to the flag image for the specified culture.
(Inherited from AbstractUserControl.) | |
GetImageClass |
Retruns css class.
| |
GetImagePath |
Gets UI image relative path.
(Inherited from AbstractUserControl.) | |
GetImageUrl |
Gets UI image relative path.
(Inherited from AbstractUserControl.) | |
GetLink |
Returns link with dependence on parameters.
| |
GetNotEmpty |
Return text with dependence on input value, if value is null or empty returns not empty text
parameter otherwise returns empy text parameter
| |
GetSearchDataSet |
Retusrn search dataset.
| |
GetSignatureArea |
Returnes Signature area if signature is enabled and is not empty.
| |
GetString |
Returns localized string.
(Inherited from AbstractUserControl.) | |
GetURL |
Returns action URL.
| |
GetUserName |
Generate HTML part with username, if forum is set to display email then generates mailto:
If username should be link to user profile generates link to user profile
| |
GetValue(String) |
Returns the value of the given property.
(Inherited from InlineUserControl.) | |
GetValueReturnType(String, ReturnType) |
Returns the value of the given property.
(Inherited from InlineUserControl.) | |
HasValue |
Returns true if the value of the given property is set.
(Inherited from InlineUserControl.) | |
CheckPermission(String, SecurityAccessEnum, Int32, Int32) |
Returns true if and only if currentuser is authorized for the specified action.
| |
CheckPermission(String, SecurityAccessEnum, Int32, Int32, UserInfo) |
Returns true if and only if specified user is authorized for the specified action.
| |
IFCompare |
Returns true or false rusult with dependence on bool condition.
| |
IsAvailable |
Returns true if action is available.
| |
LastTime |
Returns string representation of datetime of last post for current forum or thread.
| |
LastUser |
Returns user name of last post for current forum or thread.
| |
LoadUserControl |
Loads the user control based on the given path
(Inherited from AbstractUserControl.) | |
LogAndShowError |
Logs the exception and
(Inherited from AbstractUserControl.) | |
OnContentLoaded |
Method that is called when the control content is loaded.
(Inherited from InlineUserControl.) | |
OnInit |
Init event handler.
(Inherited from AbstractUserControl.) | |
OnLoad |
OnLoad override, setup access denied page with dependence on current usage.
(Inherited from CMSUserControl.) | |
OnPreRender |
OnPreRender override.
(Overrides AbstractUserControlOnPreRender(EventArgs).) | |
PostCount |
Returns number of posts in current forum or thread.
| |
RaisePostBackEvent |
Ensures post back event.
| |
RedirectToAccessDenied(String) |
Redirects the user to Access denied page.
(Inherited from CMSUserControl.) | |
RedirectToAccessDenied(Int32, String) |
Redirects the user to Access denied page.
(Inherited from CMSUserControl.) | |
RedirectToAccessDenied(String, String) |
Redirects the user to Access denied page.
(Inherited from CMSUserControl.) | |
RedirectToUIElementAccessDenied |
Redirects the user to Access denied page.
(Inherited from CMSUserControl.) | |
ReleaseContext |
Releases the control context.
(Inherited from CMSUserControl.) | |
ReloadData |
Reloads the data of the forum control.
| |
Render |
Render event handler.
(Inherited from AbstractUserControl.) | |
RepliesCount |
Returns number of replies for current thread.
| |
ResolvePostText(Object) |
Resolve post text with dependence on current forum and ensures line endings of the post text.
| |
ResolvePostText(Object, Object) |
Resolve post text with dependence on current forum.
| |
ResolveUrl |
Resolves the given URL
(Inherited from AbstractUserControl.) | |
SetContext |
Sets the control context.
(Inherited from CMSUserControl.) | |
SetValue |
Sets the property value of the control, setting the value affects only local property value.
(Inherited from InlineUserControl.) | |
ShowConfirmation |
Shows the general confirmation message.
(Inherited from AbstractUserControl.) | |
ShowError |
Shows the specified error message, optionally with a tooltip text.
(Inherited from AbstractUserControl.) | |
ShowChangesSaved |
Shows the general changes saved message.
(Inherited from AbstractUserControl.) | |
ShowInformation |
Shows the given information on the page, optionally with a tooltip text.
(Inherited from AbstractUserControl.) | |
ShowMessage(MessageTypeEnum, String, String, String, Boolean) |
Shows the specified message, optionally with a tooltip text.
(Inherited from AbstractUserControl.) | |
ShowMessage(MessageTypeEnum, String, String, String, Boolean, Boolean) |
Shows the specified message, optionally with a tooltip text.
(Inherited from AbstractUserControl.) | |
ShowWarning |
Shows the specified warning message, optionally with a tooltip text.
(Inherited from AbstractUserControl.) | |
ThreadCount |
Returns number of threads in current forum.
| |
TrackViewState |
Tracks the view state.
(Inherited from InlineUserControl.) | |
UnaprovedPosts |
Returns string with information about unapproved posts.
| |
URLCreator(String, String, Boolean, Object, Boolean) |
Returns url with dependence on parameters.
| |
URLCreator(String, String, Boolean, Object, ForumActionType, Boolean) |
Returns url with dependence on parameters.
|
Name | Description | |
---|---|---|
AsValue |
Converts object to a query value which can be used as a query parameter
(Defined by QueryExtensions.) | |
CallHandled |
Calls the method handled by the exception handler. If the call doesn't succeed, the problem is reported through parent IExceptionHandler control instead of throwing unhandled exception for the entire page.
Returns true, if the call succeeded, otherwise returns false.
(Defined by ControlsExtensions.) | |
GetAPIString |
Gets the string by the specified resource key
(Defined by CoreExtensions.) | |
GetString |
Gets the string by the specified resource key
(Defined by CoreExtensions.) | |
ToBoolean |
Returns the boolean representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToDateTime |
Returns the DateTime representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToDouble |
Returns the double representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToGuid |
Returns the Guid representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToInteger |
Returns the integer representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToString |
Returns the string representation of an object or default value if not.
(Defined by CoreExtensions.) |
Name | Description | |
---|---|---|
mAccessDeniedPage |
Access denied page
(Inherited from CMSUserControl.) | |
mCMSDeskAccessDeniedPage |
CMSDesk access denied page
(Inherited from CMSUserControl.) | |
mControlContext |
Control context
(Inherited from CMSUserControl.) | |
mControlGUID |
Control GUID
(Inherited from CMSUserControl.) | |
mDisplayMode |
Display mode
(Inherited from CMSUserControl.) | |
mRelativePath |
Relative path
(Inherited from CMSUserControl.) | |
mUseCMSDeskAccessDeniedPage |
Indicates whether CMSDesk access denied page should be used
(Inherited from CMSUserControl.) | |
mViewStateTracked |
If true, the ViewState has been already tracked.
(Inherited from InlineUserControl.) | |
properties |
Control properties.
(Inherited from InlineUserControl.) |
Name | Description | |
---|---|---|
AbuseReportAccess |
Gets or sets the security access enum to abuse report (Authenticated users by default).
| |
AbuseReportRoles |
Gets or sets the roles split by semicolon, which roles can report abuse, requires security access state authorize roles.
| |
AccessDeniedPageURL |
Gets or sets the access denied page URL (URL where the user is redirected when
trying to access forum for which the user is unauthorized).
| |
AttachmentImageMaxSideSize |
Gets or sets the maximum side size of image shown in post attachment list.
| |
AvatarMaxSideSize |
Gets or sets the max side size of avatar image.
| |
BaseURL |
Gets or sets the forum base URL.
| |
CommunityGroupID |
Gets or sets the community group id.
| |
ComponentName |
Component name
(Inherited from AbstractUserControl.) | |
ControlContext |
Control context.
(Inherited from CMSUserControl.) | |
ControlGUID |
Unique ID of the control within the given request.
(Inherited from CMSUserControl.) | |
CurrentDocument |
Current document
(Inherited from AbstractUserControl.) | |
CurrentPageInfo |
Current page info
(Inherited from AbstractUserControl.) | |
CurrentResolver |
Control's resolver
(Inherited from CMSUserControl.) | |
CurrentSite |
Current site
(Inherited from AbstractUserControl.) | |
CurrentUser |
Current user
(Inherited from AbstractUserControl.) | |
DisplayAttachmentImage |
Gets or sets the value that indicates whether image attachment should be displayed like an image.
| |
DisplayBadgeInfo |
Gets or sets the value that indicates whether badge info should be displayed.
| |
DisplayMode |
Gets or sets display mode of the control.
(Inherited from CMSUserControl.) | |
DocumentManager |
Document manager control
(Inherited from AbstractUserControl.) | |
EditedObject |
Control's edited object
(Inherited from AbstractUserControl.) | |
EnableAvatars |
Gets or sets the value that indicates whether avatars should be displayed.
| |
EnableFavorites |
Indicates whether user can add the posts to his favorites.
| |
EnableFriendship |
Gets or sets the value that indicates whether friendship request is enabled.
| |
EnableMessaging |
Gets or sets the value that indicates whether private messaging is enabled.
| |
EnableOnSiteManagement |
Gets or sets the value that indicates whether onsite management is allowed.
| |
EnablePostsPaging |
Gets or sets the value that indicates whether paging should be used on posts list page.
| |
EnableSignature |
Indicates whether user signature should be displayed.
| |
EnableSubscription |
Gets or sets the value that indicates whether subscription is enabled.
| |
EnableThreadPaging |
Gets or sets the value that indicates whether paging should be used on thread list page.
| |
ExpandTree |
Gets or sets the value that indicates whether forum with tree layout should be expanded.
| |
ForumID |
Gets or sets the forum id base on current url or settings.
| |
ForumLayout |
Gets or sets the forum layout.
| |
ForumViewMode |
Gets or sets the thread view mode.
| |
FriendlyBaseURL |
Gets or sets base URL for forum which use friendly URLs, if URL is not set URL is set from current document.
| |
FriendlyURLExtension |
Gets or sets the friendly URL extension.
| |
GenerateActionScripts |
Gets or sets the value that indicates whether action scripts should be generated.
| |
GroupID |
Gets or sets the group id based on current settings.
| |
HeaderActions |
Header actions control
(Inherited from AbstractUserControl.) | |
HideForumForUnauthorized |
Gets or sets the value that indicates whether the forums for which the user has no permissions
are visible in the list of forums in forum group.
| |
IsAdHocForum |
Gets or sets the value that indicates whether current forum is AdHoc.
| |
IsCMSDesk |
Determines whether the current control lies on the page that is currently located under the CMS Desk.
(Inherited from CMSUserControl.) | |
IsLiveSite |
Indicates if control is used on live site.
(Inherited from AbstractUserControl.) | |
Item |
Gets or sets the value of the column.
(Inherited from InlineUserControl.) | |
LogActivity |
Gets or sets value that indicates whether logging activity is performed.
| |
LogonPageURL |
Gets or sets the logon page URL.
| |
MaxRelativeLevel |
Gets or sets the maximal nesting level of posts.
| |
MessagesPlaceHolder |
Placeholder for messages
(Inherited from AbstractUserControl.) | |
Parameter |
Control parameter.
(Inherited from InlineUserControl.) | |
PostsPageSize |
Gets or sets the size of posts page size.
| |
RedirectToUserProfile |
Gets or sets the value that indicates whether username is link to user profile.
User profile path must be defined in site settings
| |
RedirectUnauthorized |
Gets or sets the value that indicates whether use should be redirected to logon page
if he hasn't appropriate permissions to the requested action.
| |
RelativePath |
Page relative path.
(Inherited from CMSUserControl.) | |
SearchInForums |
Gets or sets the forums in which should be search performed.
| |
SearchInGroups |
Gets or sets the groups names in which should be search proceeded, use semicolon like separator.
| |
SearchInThreads |
Gets or sets the threads where search should be performed.
| |
SearchNoResults |
Gets or sets the text which should be displayed if no result found.
| |
ShortID |
Short ID of the control.
(Inherited from AbstractUserControl.) | |
ShowMode |
Gets or sets the tree forum show mode.
| |
SiteID |
Gets or sets the site id which should be used for current control.
| |
SiteName |
Gets or sets the site name which should be used for current control.
| |
StopProcessing |
Indicates if the control should perform the operations.
(Inherited from AbstractUserControl.) | |
ThreadID |
Gets or sets the thread id based on current url or settings.
| |
ThreadOrderBy |
Gets order by expression with dependence on current view mode.
| |
ThreadPageSize |
Gets or sets the size of thread list page.
| |
TypeName |
Returns the object type name.
(Inherited from CMSUserControl.) | |
UIContext |
Control's UI Context
(Inherited from AbstractUserControl.) | |
UnsubscriptionURL |
Gets or sets the unsubscription URL.
| |
UseCMSDeskAccessDeniedPage |
Gets or sets the value that indicates whether CMSDesk access denied page should be used.
(Inherited from CMSUserControl.) | |
UseFriendlyURL |
Gets or sets the value that indicates whether forums should generate friendly URLs.
| |
UseRedirectAfterAction |
Gets or sets the value that indicates whether after action should be used redirect.
| |
UsesLocalMessagesPlaceHolder |
Indicates if control uses local messages placeholder
(Inherited from AbstractUserControl.) | |
ViewMode |
Gets or sets the thread view mode.
| |
ViewState |
ViewState - overridden for the Master page ViewState fix.
(Inherited from InlineUserControl.) | |
WhereCondition |
Gets or sets the where condition.
|