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
- Access your Visitor Web site.
- 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.
- Open the cd_ugc_conf.xml configuration file in a text editor.
- Uncomment the
<ContentValidators> section, if commented out.
- Uncomment the Double Comment Voting Validator:
<ContentValidator Implementation="com.sdl.web.ugc.validation.DoubleCommentVotingValidator"/>
- Save and close cd_ugc_conf.xml.
- Restart the Web application.
Results
Visitors can now only vote once on any one comment.