Comment System

glFusion supports a complete comment system that allows users to leave comments on almost every type of content on your site. Comment support can be enabled and disabled on a case by case basis. For example, each story has the ability to have comments enabled or disabled. In other areas, Media Gallery for example, comments can be enabled at the container level (albums in this case).

Comments provide an excellent method to solicit feedback from your users on your content. Comments are also an area that can be easily abused if not careful. Spammers will target comment entry fields as a method to promote their web sites or sell their wares. Fortunately, glFusion contains several SPAM fighting features that should prevent most abuse.

Comment Configuration Settings

The configuration options that control how comments work are located in the Command & Control » Online Configuration » Users & Submissions configuration section. Also, plugins that support comments will generally have specific configuration settings to enable or disable comments.

Option Description
Comment Speed Limit Number of seconds between posting a comment for the user.
Comment Limit The maximum number of comments to display at one time. Each user can override this setting in their My Account settings.
Comment Mode How to display comments (threaded, nested, flat or nocomments). Each user can override this setting in their My Account settings.
Comment Default Default comment setting for new stories: Comments enabled or disabled
Allow Comment Edit Allow users to edit their comments.
Comment Edit Time (seconds) The amount of time a user has to edit their comments (in seconds). If set to 0, the user can edit the comment anytime in the future.
Comment Postmode The default postmode for new comments. Text or HTML.
Comment Editor Selects which editor to use for comments. The text box entry or the WYSIWYG editor.
Automatically close comments (default) If this option is enabled, comments for stories will automatically close (become disabled) after a period of time.
Days to close comments (default) Default number of days to set the Comment Close date on new stories.
Number of most recent stories enabled for comments If this number is greater than 0, it becomes the number of active stories to allow comments. For example, if set to 5, the 6th and older stories on your site will automatically have the comment closed setting applied.

Comment Look & Feel

glFusion allows you to easily style the look and feel of the comments. Out of the box, glFusion will display the user's photo next to each comment, if the configuration setting Allow User Photos is enabled.

The specific styles that control the comment look are located in the style.css:

.commentbar-line1 {
  background:transparent;
  color:#000;
  padding:3px;
}

.commentbar-line2 {
  background:#E7E7E7;
  border-bottom:1px solid #FFF;
  border-top:1px solid #FFF;
}

.commentbar-line3 {
  background:#FFF;
  border-bottom:1px solid #FFF;
  color:#000;
  padding:3px;
}

.commenttitle {
  background:#F7F7F7;
  border-bottom:1px solid #E7E7E7;
  border-left:1px solid #E7E7E7;
  border-right:1px solid #E7E7E7;
  border-top:1px solid #E7E7E7;
  font-weight:700;
  padding:3px 0 3px 10px;
}

.comment-edit {
  font-style: italic;
  padding-top:5px;
}

.userphoto {
  width:50px;
  border:1px solid #ccc;
  padding:2px;
}
.groupauthor {
  background:#eef7dd !important;
  border:1px solid #9acc2e !important;
  color:green !important;
}
.articleauthor {
  background:#d8e5f8 !important;
  border:1px solid #629de3 !important;
  color:#0055bb !important;
}
glfusion/comments.txt · Last modified: 2010/04/27 01:11 by Mark
 
Except where otherwise noted, content on this wiki is licensed under the following license: GNU Free Documentation License 1.3