Comments Plugin Configuration

IndexExplanation of the configuration options found in plugin.js.



where is it

Here is an annotated version of the configuration options found in plugin.js.

var config={

/*
* Connection Parameters: key and path- If you are hosting with us, you will need to fill out the key
* and path variables below.  You should have received both of these by email when you signed up for the
* “Hosting with us” option.
*/

key:”", // A 20 character alphanumeric string.
path:null, // The path to the Fastcat server hosting your comments.

/*
* Styles-  Sets various style and layout options.
Please note that the style and text definitions for
*
the plugin are split between this file and config.php.
*/

styles:{

/*
* Panel styles- Here you can set the background-color, the opacity, and the width and height
* of the comments panel.
*/

panel_clr:’black’, // Any web based color will do– ‘#333333' or ‘darkblue’ — for instance.
panel_opacity:.7, // The opacity should be a  number between 0 and 1.
width:400, // The width of the comments panel.
height:400, // The height of the comments panel.

/*
* Text color scheme- All the text in the comments plugin utilizes one of these 6 colors.
* These colors may be any web based color.
*/

color1:’white’, // color1 is used in a variety of places.
color2:’lightblue’, // color2 is used in a variety of places.
color3:’lightgreen’, // color3 is used in a variety of places.
color4:’yellow’, // Used specifically to highlight the name of the video in the comments mod panel.
color5:’red’, // Used to indicate that a comment has been marked as spam in the mod panel.
color6:’orange’, // Used to indicate that a comment has been locked in the mod panel.

/*
* Text font options- Sets the font sizes and the font type.
*/

sz1: ‘font-size:12px;’, // Larger font size
sz2: ‘font-size:10px;’, // Smaller font size
fnt: ‘font-family:arial;’, // Font type

/*
* Colors for the alternating comment panels.
*/

comment_panel1:’#363636',
comment_panel2:’#535353',

/*
* Styles for text inputs.
*/

background_color:’darkolivegreen’,
text_color:’white’

},

/*
* Labels-  Sets the text of the comments plugin.
Please note that the style and text definitions for
*
the plugin are split between this file and config.php.
*/

labels:{

/*
* Title-  The title of the comments plugin. This appears in the menu bar of FCPlayer, and at the
* top left corner of the comments panel.
*/

title:’Comments’,

/*
* Navigation Elements-  The navigation elements appear at the top of the comments panel.
*/

nav_comments:’Back to comments’,
nav_reply:’Leave a reply’,
nav_edit:’Edit’,
nav_admin:’Admin’,
nav_sort:’Sort’,

/*
* Panel Messages-  The panel messages are displayed when a transition between two pages
* occurs.
*/

loading_msg:’Loading, please wait…’,
deleting_msg:’Deleting, please wait…’,
accessing_msg:’Accessing, please wait…’,

/*
* Closed for comments Message-  Displayed when a user tries to post a comment to a video
* for which comments are closed.
*/

closed_msg:’Sorry, this video is closed for comments.’,

/*
* Text fragments- These fragments are pieced together to form a sentence.
*/

all:’All’,
open:’open’,
closed:’closed’,
approved_frag:’approved’,
all_videos:’all videos’,
this_video:’this video’,
close_alert_frag1:’Comments are now ‘,
approve_alert_frag1:’Pending comments have been ‘,
alert_frag2:’ for ‘,

/*
* LOG OUT ALERT- When you log out you are notified with an alert box containing this text.
*/

logout_alert:’You are now logged out’,

/*
* Comments page text- Phrases which appear on the comments page.
*/

await_approval_msg:’This comment is awaiting approval.’,
wrote:’wrote:’,
video_ID:’Video ID: ‘,
video_title:’Video Title: ‘,
IP:’IP: ‘,
marked_as_spam:’**Marked as spam**’,
spam:’Spam’,
not_spam:’Not spam’,
locked:’**Locked**’,
unlock:’Unlock’,
lock:’Lock’,
approve:’Approve’,
approved:’**Approved**’,
report_abuse:’Report Abuse’,
reported:’**Abuse report sent**’,
recommend:’Recommend’,
recommended:’**Recommended**’,
_delete:’Delete’,
no_comments_msg:’There are no comments yet.’,
none_checked:’No boxes are checked!’,

/*
* Login page text- Phrases which appear on the login page.
*/

username:’Username:’,
password:’Password:’,
login:’Login’,

/*
* Sort page text- Phrases which appear on the sort page.
*/

newest:’Newest’,
oldest:’Oldest’,
recommended:’Recommended’,
sort_pending:’Pending (non spam) first’,
sort_spam:’Spam First’,
sort_locked:’Locked First’,
sortby:’Sort comments by:’,

/*
* Posting errors- A list containing the various posting errors that may occur when a user fills out
* the “leave a reply” form incorrectly.
*/

errors:["Post out of bounds.","Name is a required field","Comment is required.","Invalid email.","Too many posts, try again later.","Sorry, this video is closed for comments.","Duplicate Post."]

}

};



If you have a pre-sales question, submit your inquiry via our sales contact page. For general, non-sales inquiries, contact us at support@fastcatsoftware.com.

Solution Graphics