Step 4: Preparing Your Site

Now to add the comments to your site. The following code is example of the default minimal installation code.

<link rel="stylesheet" href="http://www.filemobile.com/static/mmc2/css/fm.comments.css" type="text/css" media="screen" />
<script src="http://www.filemobile.com/static/mmc2/js/jquery.js" type="text/javascript"></script>
<script src="http://www.filemobile.com/static/mmc2/js/fm.comments.min.js" type="text/javascript"></script>
<script type="text/javascript">

jQuery(document).ready(function() {

jQuery.noConflict();

var settings = {
element : 'commentWrapper',
proxy : 'php/proxy.php',
vhost : 123
}

fm.comments.init(settings);

});

</script>

<div id="commentWrapper"></div>

<div class="fmClearfix">
<div id="fmRatingUser"></div>
<div id="fmRatingAverage"></div>
</div>

The CSS and JavaScript files need to remain pointing to http://www.filemobile.com.

If you don't want to include rating on your site, you don't have to include the '<div id="fmRatingUser"></div>' or '<div id="fmRatingAverage"></div>'elements.

0 comments

Be the first to comment on Step 4: Preparing Your Site.

Add a Comment

  • captcha