Documentation Center

Activating the Double Comment Voting Validator

On the machine where your Visitor website is installed, configure the DoubleCommentVotingValidator in the cd_ugc_conf.xml configuration file if you want to disallow a visitor from voting more than once on the same comment.

Procedure

  1. Access your Visitor Web site.
  2. Do one of the following:
    • If you use a .NET Web application, access the bin\config\ folder.
    • If you use a Java Web application, access the WEB-INF/classes subdirectory.
  3. Open the cd_ugc_conf.xml configuration file in a text editor.
  4. Uncomment the <ContentValidators> section, if commented out.
  5. Uncomment the Double Comment Voting Validator:
    <ContentValidator Implementation="com.sdl.web.ugc.validation.DoubleCommentVotingValidator"/>
  6. Save and close cd_ugc_conf.xml.
  7. Restart the Web application.

Results

Visitors can now only vote once on any one comment.