Skip navigation

Default Example


This example will load comments on this record with default options.

Example


// jComment Sample Usage
$(function () {
$('#jugnooncmt').jComment({
showAvator: true,
width: 750,
contentID: '<?= $contentId ?>',
userName: '<?= $auth->userName ?>',
avatorWith: 65,
avatorUrl: 'http://example.com/images/sample.jpg',
avatorPictureName: 'sample.jpg',
thumbDirectoryPath: '<?= SITE_DOMAIN . 'contents/member/' ?>',
avatorCss: 'img-responsive avator',
isMemberDirectory: true,
profileUrl: '<?= SITE_DOMAIN . 'user/index.php?usr={p}' ?>',
tComments: 140,
requiredMsg: "Please enter few words to post comment",
rootUrl: 'http://www.bootstrapkits.com/jcomment/',
enableEnter: true,
pageSize: 10
});
});

Demo