Commentbox v3.x change log

v3.1.0.13 (August 19, 2024)

  • I have fixed a bug that caused editing comments to fail if you had the setting “showCategoryInComment” set to false.

v3.1.0.12 (July 24, 2024)

  • I have fixed a bug that caused the comment link in the notification email to fail when using cBox in a tab in a DFFS enabled form.

v3.1.0.10 (January 15, 2022)

  • Fixed a bug where new comments didn’t show until you reloaded the page.

v3.1.0.9 (May 10, 2021)

  • Added one new setting “timeZoneCorrection” in the cBoxArg object to offset the time in cases where the time on the comment is not correct. I think this error might be caused by a change in how the SharePoint REST API returns the date values because it was not happening until recently. See user manual for details on how to use it, or see the comments in the spjs-cBox_CEWP.html file.

v3.1.0.8 (August 03, 2019)

  • Added some new settings related to the approval functionality to specify who the approvers are and to format the approval, approved and rejected email. Updated the approval process to ensure the approvers get an email when a new comment that needs approval is added, and that the author gets an email when the comment has been approved or rejected.
  • Changed how the icon added when using the setting showCommentLink works when clicked. In previous versions you had to right click > copy link to copy the link, but now a click on the link icon will automatically put it on your clipboard.
  • Added an error message in case you follow a link to a comment that has been deleted.
  • Added Dutch translation to both cBox and TinyMCE.
  • Added a new setting tinyMCE_Language to let you control the TinyMCE UI language. Dutch (nl), German (de), Norwegian (nb_NO) and English (en) has already been added to the solution. Adding new languages can easily be done – see help text over the setting in the spjs-cBox_CEWP.html file.
  • Included an older version (v4.5.9) of TinyMCE alongside with the latest one (5.0.12) to let users who must support IE choose to use the older one. You choose which version to include by changing the folder name in the spjs-cBox_CEWP.html file.
  • Made some CSS changes to make the topic and category stand out more.
  • Removed the UI Fabric CSS file to ensure compatibility when installed without internet access. I have chosen to use local PNG files from /css/icons instead.
  • Added like and dislike functionality.
  • Changed the installation process to ensure it asks to create all lists (main comment list, list for likes and dislikes and the subscriptions list) on the first page load after setting it up.
  • Added a settings dialog where you can toggle list visibility and clean up orphan items left when someone have deleted a comment directly in the list.
  • Moved the subscribe button for root comments up to the top right corner.
  • Added new functionality to move a comment with replies to another thread – see the settings moveCommentGroupName and moveCommentThreadIdArr for details.
  • Added a new setting subscriptionEmailUsingLoginName to send emails using the login name and not the actual email address. This will in most cases be more stable.
  • Fixed a few other small bugs in the UI and added a lot of other small improvements to ensure it is stable and runs smooth.

v3.0.0.7 (January 09, 2019)

  • Fixed a bug where setting “showTopicCount”:false failed to remove the topic count placeholder and left the spinner.
  • Fixed a bug where setting “subscriptionEnabled”:false caused cBox to fail to load.
  • Fixed an issue where setting “showTopicInComment”:false did not remove topics from comments already created with a topic.
  • Added new setting for dateFormat – see use manual for details.

v3.0.0.6 (January 06, 2019)

  • Updated TinyMCE to v4.9.2.
  • Added option to intercept the adding and updating of comments with a custom function. This lets you add or update metadata for the comments directly, or trigger a custom function after a comment has been saved. To use this functionality you must add the functions you like to use to the page where the cBox is located.

Use this function to intercept the adding of a new comment:

function cBoxItemAdding(placeholderID,item){
// Add or update item attributes for example like this
item.YouCustomColumn = "Your custom value";
// Return the changed item
return item;
}

Use this function to do something after a comment has been added:

function cBoxItemAdded(placeholderID,data){
// add your custom code here
}

Use this function to intercept the updating of a comment:

function cBoxItemUpdating(placeholderID,item){
// Add or update item attributes for example like this
item.YouCustomColumn = "Your custom value";
// Return the changed item
return item;
}

Use this function to do something after a comment has been updated:

function cBoxItemUpdated(placeholderID,data){
// add your custom code here
}

v3.0.0.5 (December 22, 2018)

  • Changed the function used to add or update fields to the configuration list to be able to add or update fields when using custom topic, category or comment fields specified in the cBoxArg in spjs-cBox_CEWP.html. This is only relevant when reusing an existing list to store comments in.
  • Added a new setting commentFIN to the cBoxArg to be able to reuse an existing list for storing comments.
  • Made some minor adjustments to the spjs-cBox.css file to adjust the size of the search dropdown icon and the height of the category select.

v3.0.0.4 (December 19, 2018)

  • Added the “item” and “settings” as arguments to the spjs.cBox.REST_Email function for use by advanced users who want to customize this function.
  • Fixed a typo in the validation of the setting SearchEnabled. In the mains script this setting was mistakenly expected as SearchEnable – without the d.
  • Fixed an incompatibility with jQuery v3.x by changing one occurrence of andSelf() > addBack().

v3.0.0.3 (September 03, 2018)

  • Fixed an bug preventing the solution from working when used in the root of a domain – like https://contoso.sharepoint.com. In this setup, the base url of the resources would be interpreted as “/” and some of the function calls would fail because the path then would be start with double forward slashes.

Please note that I replaced v3.0.0.2 with v3.0.0.3 because I found one more place where this bug had to be fixed.

v3.0.0.0 (March 11, 2018)

Initial release for Comment Box v3.x.