Here is a list of the options found in config.php. Each option is accompanied by a description of its usage and an example reflecting the default configuration.
Those of you using the comments service can access your config.php file online, at http://www.fastcatsoftware.com/comments/config.php.
Comment administration section
In this section, you set up a username and password that will be used to access the administrative features of the comments plugin. There is only one administrative account for this plugin, so if you you have more than one administrator, they will have to share this account. Here also, you may also choose various administrative options such as comment pre-approval and email notification. For more info on administrating the comments plugin see Comment Plugin Administration.
USERNAME- The username for your administrative account.
define(’USERNAME’, ‘admin’);
PASSWORD- The password for your administrative account.
define(’PASSWORD’, ‘yourPasswordHere’);
ADMIN_EMAIL- The administrators email. This option is required if you wish to receive email notifications.
define(’ADMIN_EMAIL’, ‘yourEmailHere’);
DOMAIN- The only reason you may need to uncomment and set this option is if the “approve” and “delete” links in your email notifications are not resolving to the proper domain. Otherwise, leave it as is.
//define(’DOMAIN’, ‘http://www.example.com’);
NOTIFY_POST- Notify by email when a user posts a comment (you must fill out ‘ADMIN_EMAIL’ above to use this feature). This field takes a value of 0 or 1. 0–do not notify 1–do notify
define(’NOTIFY_POST’, 0);
STOP_PREAPPROVED_NOTIFICATION- Turns off email notifications for pre-approved comments. This is applicable only under a configuration in which NOTIFY_POST = 1, COMMENT_PREAPPROVED=1, and VIDEO_PREAPPROVED=0. This field takes a value of 0 or 1. 0–do not turn off 1–turn off
define(’STOP_PREAPPROVED_NOTIFICATION’, 0);
NOTIFY_ABUSE- Turns on/off the report abuse feature. This feature allows your users to send abuse reports via email to the administrator. You must fill out ‘ADMIN_EMAIL’ above to use this feature. This field takes a value of 0 or 1. 0–do not notify 1–do notify
define(’NOTIFY_ABUSE’, 0);
COMMENT_PREAPPROVED- Do comments require administrative approval before going live? It is recommended that you require your comments to be approved by an adminstrator before they appear on your site, as this helps to reduce intentional spamming. This field takes two values, 0 or 1. 0–comments require approval, 1– comments are pre-approved.
define(’COMMENT_PREAPPROVED’, 0);
VIDEO_PREAPPROVED- Do videos require administrative approval? If this option is 0, comments for a new video will require approval until at least one comment for the video is approved. Thereafter, they will not require approval. This option is applicable only if COMMENT_PREAPPROVED = 1, as it overrides pre-approval for comments under the conditions stated above. If you don’t want to approve every comment for your site, it is recommended that you at least use this option, which requires you to approve the first comment for every new video. This option was designed to combat malicious scripts that may post comments to videos that do not exist. Again, if you are requiring approval for all comments (COMMENT_PREAPPROVED = 0), this option is irrelevant. This field takes two values, 0 or 1. 0–approval is required, 1–approval is not required.
define(’VIDEO_PREAPPROVED’, 1);
Database Setup
This section contains the database settings that allow the comments plugin to communicate with mysql.
DB_NAME- The name of your mysql database.
define(’DB_NAME’, ‘yourDatabaseNameHere’);
DB_HOST- The database host. Usually ‘localhost’.
define(’DB_HOST’, ‘localhost’);
DB_USER- The mysql user account with access to the database.
define(’DB_USER’, ‘yourUsernameHere’);
DB_PASSWORD- The password for the mysql account.
define(’DB_PASSWORD’, ‘yourPasswordHere’);
Posting Constraints
This section places limitations on the number of comments per video, and the size of the data fields within an individual comment post.
MAX_COMMENT_COUNT- Maximum number of comments per video.
define(’MAX_COMMENT_COUNT’, 300);
COMMENT_AUTHOR_MAXCHARS- Maximum size of the name field, in characters.
define(’COMMENT_AUTHOR_MAXCHARS’, 100);
COMMENT_EMAIL_MAXCHARS- Maximum size of the email field, in characters.
define(’COMMENT_EMAIL_MAXCHARS’, 100);
COMMENT_URL_MAXCHARS- Maximum size of the web site field, in characters.
define(’COMMENT_URL_MAXCHARS’, 200);
COMMENT_CONTENT_MAXCHARS- Maximum size of the comment body, in characters.
define(’COMMENT_CONTENT_MAXCHARS’, 2000);
Comment Flooding Section
This section provides mechanisms to help prevent comment flooding/spamming.
MAX_COMMENTS_PER_SHORT_INTERVAL- Maximum number of comments per user per “short” time interval. The default settings allows a single user to post no more than 10 comments in any 30 minute interval.
define(’MAX_COMMENTS_PER_SHORT_INTERVAL’, 10);
SHORT_INTERVAL- The time interval (in seconds) for use above. The default value is 30 minutes.
define(’SHORT_INTERVAL’, 1800);
MAX_COMMENTS_PER_LONG_INTERVAL- Maximum number of comments per user per “long” time interval. The default settings allows a single user to post no more than 30 comments in any 24 hour period.
define(’MAX_COMMENTS_PER_LONG_INTERVAL’, 30);
LONG_INTERVAL- The time interval (in seconds) for use above. The default value is 24 hours.
define(’LONG_INTERVAL’, 86400);
FLOOD_WARNING_SHORT- This warning is sent to a user when they have posted too many comments in the short interval.
define(’FLOOD_WARNING_SHORT’, ‘Please wait approx. 30 minutes before posting again.’);
FLOOD_WARNING_LONG- This warning is sent to a user when they have posted too many comments in the long interval.
define(’FLOOD_WARNING_LONG’, ‘Users are limited to 30 comments per day. Try again later.’);
RECOMMEND_LOCK_INTERVAL- The user is prevented from recommending the same comment during this time interval (in seconds). The default value is 2 minutes.
define(’RECOMMEND_LOCK_INTERVAL’, 120);
Reply Panel Configuration
This section sets the style parameters and the page text for the “Send a Reply” panel.
RP_TITLE_STYLE- CSS for the panel title.
define(’RP_TITLE_STYLE’, “color:lightblue;font-size:12px;font-weight:bold;font-style:italic;font-family:arial”);
RP_ERROR_STYLE- CSS for the error messages.
define(’RP_ERROR_STYLE’, “color:orange;font-size:12px;font-weight:bold;font-family:arial”);
RP_LABEL_STYLE- CSS for the input labels.
define(’RP_LABEL_STYLE’, “color:white;font-size:10px;font-family:arial”);
RP_INPUT_STYLE- CSS for the input fields.
define(’RP_INPUT_STYLE’, “background-color:darkolivegreen;color:white;font-size:12px;font-family:arial”);
RP_TITLE- Text for the panel title.
define(’RP_TITLE’, “Leave a Reply”);
RP_Name- Text for the name input label.
define(’RP_NAME’, “Name (required)”);
RP_Email- Text for the email input label.
define(’RP_EMAIL’, “Mail (will not be published) (required)”);
RP_URL- Text for the URL input label.
define(’RP_URL’, “Web Site”);
RP_SUBMIT- Text for the submit button.
define(’RP_SUBMIT’, “Submit Comment”);
Stats Panel Configuration
This section sets the style parameters and the page text for the “Stats” panel.
ST_TITLE_STYLE- CSS for the panel title
define(’ST_TITLE_STYLE’, “color:lightblue;font-size:12px;font-weight:bold;font-style:italic;font-family:arial”);
ST_CATEGORY_STYLE- CSS for the category headings.
define(’ST_CATEGORY_STYLE’, “color:lightgreen;font-size:12px;font-weight:bold;font-style:italic;font-family:arial”);
ST_DATA_STYLE- CSS for the page data.
define(’ST_DATA_STYLE’, “color:white;font-size:12px;font-family:arial”);
ST_TITLE- Text for the panel title.
define(’ST_TITLE’, “Comment Statistics”);
ST_CATEGORY_1- Text for the first category “This Video”.
define(’ST_CATEGORY_1', “This video:”);
ST_CATEGORY_2- Text for the second category “All Videos”.
define(’ST_CATEGORY_2', “All videos:”);
ST_DATA_1- Text for the first data field “Total”.
define(’ST_DATA_1', “Total:”);
ST_DATA_2- Text for the second data field “Pending”.
define(’ST_DATA_2', “Pending:”);
ST_DATA_3- Text for the third data field “Spam”.
define(’ST_DATA_3', “Spam:”);
ST_DATA_4- Text for the fourth data field “Locked”.
define(’ST_DATA_4', “Locked:”);
ST_DATA_5- Text for the fifth data field “New (24 hours)”.
define(’ST_DATA_5', “New (24 hours):”);
ST_COMMENT_STATE- Text fragment for comment posting status.
define(’ST_COMMENT_STATE’,'Comments are ‘);
ST_OPEN- Text fragment for comment posting status “open”.
define(’ST_OPEN’,'open’);
ST_CLOSED- Text fragment for comment posting status “closed”.
define(’ST_CLOSED’,'closed’);
Administration Panel Configuration
This section sets the style parameters and the page text for the “Administration” panel.
AD_TITLE_STYLE- CSS for the panel title.
define(’AD_TITLE_STYLE’, “color:lightblue;font-size:12px;font-weight:bold;font-style:italic;font-family:arial”);
AD_CATEGORY_STYLE- CSS for the category headings.
define(’AD_CATEGORY_STYLE’, “color:lightgreen;font-size:12px;font-weight:bold;font-style:italic;font-family:arial”);
AD_FUNCTIONS_STYLE- CSS for the page functions.
define(’AD_FUNCTIONS_STYLE’, “color:white;font-size:12px;font-family:arial”);
AD_TEXTAREA_STYLE- CSS for the text input which appears at the bottom of the page.
define(’AD_TEXTAREA_STYLE’, “background-color:darkolivegreen;color:white;font-size:12px;font-family:arial;”);
AD_TITLE- Text for the panel title.
define(’AD_TITLE’, “Administrative Functions”);
AD_FUNC_1- Text for page function “Stats”.
define(’AD_FUNC_1', “Stats”);
AD_CATEGORY_1- Text for the first category “current video”.
define(’AD_CATEGORY_1', “For the current video: ID=”);
AD_CATEGORY_1- Text for the second category “all videos”.
define(’AD_CATEGORY_2', “For all videos:”);
AD_FUNC_2- Text for page function “Moderate Comments”.
define(’AD_FUNC_2', “Moderate comments”);
AD_FUNC_3- Text for page function “Approve Pending Comments”.
define(’AD_FUNC_3', “Approve pending (non spam)”);
AD_FUNC_4- Text for page function “Close Comments”.
define(’AD_FUNC_4', “Close comments”);
AD_FUNC_5- Text for page function “Open Comments”.
define(’AD_FUNC_5', “Open comments”);
AD_FUNC_6- Text for page function “Delete Pending Comments”.
define(’AD_FUNC_6', “Delete pending comments”);
AD_FUNC_7- Text for page function “Delete Spam”.
define(’AD_FUNC_7', “Delete spam”);
AD_FUNC_8- Text for page function “Purge Video”.
define(’AD_FUNC_8', “Purge”);
AD_FUNC_9- Text for page function “Purge Selected Videos”.
define(’AD_FUNC_9', “Purge Selected (Enter IDs below)”);
AD_FUNC_10- Text for page function “Logout”.
define(’AD_FUNC_10', “Logout”);
AD_DELETE_PENDING- Warning prompt for page function “Delete Pending Comments” in the “current video” category.
define(’AD_DELETE_PENDING’, “Are you sure you want to delete the pending comments from this video? This cannot be undone.”);
AD_DELETE_SPAM- Warning prompt for page function “Delete Spam” in the “current video” category.
define(’AD_DELETE_SPAM’, “Are you sure you want to delete the spam from this video? This cannot be undone.”);
AD_PURGE_VIDEO- Warning prompt for page function “Purge Video” in the “current video” category.
define(’AD_PURGE_VIDEO’, “This will delete all comments and reset this video. Do you want to continue?”);
AD_DELETE_ALL_PENDING- Warning prompt for page function “Delete Pending Comments” in the “all videos” category.
define(’AD_DELETE_ALL_PENDING’, “Are you sure you want to delete the pending comments from ALL videos? This cannot be undone.”);
AD_DELETE_ALL_SPAM- Warning prompt for page function “Delete Spam” in the “all videos” category.
define(’AD_DELETE_ALL_SPAM’, “Are you sure you want to delete the spam from all videos? This cannot be undone.”);
AD_PURGE_ALL_VIDEOS- Warning prompt for page function “Purge Video” in the “all videos” category.
define(’AD_PURGE_ALL_VIDEOS’, “This will delete ALL comments and completely reset the comments database. Do you want to continue?”);
AD_PURGE_SELECTED_VIDEOS- Warning prompt for page function “Purge Selected Videos” in the “all videos” category.
define(’AD_PURGE_SELECTED_VIDEOS’, “This will reset the specified videos, effectively deleting all comments. Do you want to continue?”);
Bulk Actions Panel Configuration
This section sets the style parameters and the page text for the “Bulk Actions” panel.
BLK_PANEL_COLOR- Panel background color.
define(’BLK_PANEL_COLOR’, “#535353?);
BLK_TITLE_STYLE- CSS for the panel title.
define(’BLK_TITLE_STYLE’, “font-size: 10px; color: white; font-weight: bold; font-family: arial;font-style:italic”);
BLK_ACTION_STYLE- CSS for the panel actions links.
define(’BLK_ACTION_STYLE’, “font-size: 10px; color: white; font-weight: bold; font-family: arial;”);
BLK_TITLE- Text for the panel title
define(’BLK_TITLE’, “Bulk Actions:”);
BLK_APPROVE- Text for the “Bulk Approve” action.
define(’BLK_APPROVE’, “Approve”);
BLK_DELETE- Text for the “Bulk Delete” action.
define(’BLK_DELETE’, “Delete”);
BLK_SPAM- Text for the “Bulk Mark As Spam” action.
define(’BLK_SPAM’, “Spam”);
BLK_NOT_SPAM- Text for the “Bulk Unmark As Spam” action.
define(’BLK_NOT_SPAM’, “Not Spam”);
BLK_LOCK- Text for the “Bulk Lock” action.
define(’BLK_LOCK’, “Lock”);
BLK_UNLOCK- Text for the “Bulk Unlock” action.
define(’BLK_UNLOCK’, “Unlock”);
Miscellaneous
GMT_OFFSET- Local time offset (in hours) from GMT time
define(’GMT_OFFSET’, -4);
SYSADMIN- System administrator. A field reserved for Fastcat administrative use.
define(’SYSADMIN’, ”);