Location: PHPKode > scripts > Advanced comment system > sample.php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Advanced comment system - example</title>
    
    <!--
      This is an example how to include the advanced comment system.
      For more information see install.php
      
      STEP 1: Copy the following line of code to the beginning of your PHP file and adjust the path

              <?php $ACS_path = "advanced_comment_system/"; ?>

      STEP 2: Copy the following three HTML elements (1x <link>, 2x <script>)
              to the head (between <head> and </head>) of your PHP file
    -->
              <link type="text/css" rel="stylesheet" href="<?php echo $ACS_path; ?>css/style.css" />
              <script src="<?php echo $ACS_path; ?>js/common.js" type="text/javascript"></script>
              <script src="<?php echo $ACS_path; ?>js/mootools.js" type="text/javascript"></script>
    
  </head>
  
    <!--
      STEP 3: Copy the following <body> element to your PHP file.
              If you already have an onload-attribute, add the code "ACS_init();" to it.
    -->
              <body onload="ACS_init();">
  
    <h1>Advanced comment system - example</h1>
    
    <p>This is an example of how the advanced comment system works.</p>
    
    <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam tellus neque, luctus sit amet, posuere nec, dictum in, dolor. Cras ut nisi ut diam ultricies tempor. Pellentesque urna. Aliquam dui est, faucibus ac, ultricies sit amet, egestas at, ligula. Nullam tincidunt. Sed eget est eget elit elementum dignissim. Pellentesque ligula. Quisque libero turpis, tincidunt eget, eleifend sed, bibendum sed, nibh. Vestibulum fringilla varius est. Etiam vel arcu. Aliquam fringilla rutrum nisl. Integer at mi. Aliquam lectus arcu, vulputate id, convallis ac, blandit vitae, magna. Aenean pulvinar, diam egestas molestie iaculis, nisl nibh molestie massa, vel fermentum mauris ipsum a diam. Donec et tellus non orci eleifend pulvinar. Ut nec tellus nec nunc fermentum rutrum. Quisque faucibus tellus eget lacus.</p>
    
    <p>Nulla non dolor. Pellentesque ligula est, cursus in, suscipit ut, cursus nec, metus. Maecenas id lorem at felis tristique consequat. Suspendisse potenti. Pellentesque accumsan. Nullam vulputate arcu sed augue. Pellentesque eu elit eget nulla consequat auctor. In hac habitasse platea dictumst. Pellentesque et magna non nibh euismod varius. Maecenas molestie elit ac mi. Nunc semper fringilla leo. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Nullam malesuada, metus et accumsan dapibus, risus est tincidunt urna, et luctus turpis metus ac dolor. Proin eget ipsum. Sed diam nibh, malesuada eu, dapibus vitae, sodales ac, dolor. Nulla molestie sollicitudin mi.</p>
    
    <!--
      STEP 4: Copy the following line of code to your PHP file
              where you want the comments to appear
    -->
              <?php include($ACS_path."index.php"); ?>

  </body>
</html>
Return current item: Advanced comment system