PHP PROJECT

README.md

Comments php class with replies and like buttons

It can display forms and buttons using the Bootstrap framework to let the user enter comments, replies to comments and click to like or dislike a comment.

Files


NameTypeSizeLast Modified
config.php phpfile icon 617 08 December 2015 10:24:30
badwordslist.txt textfile icon 2213 08 December 2015 10:24:30
comment.php phpfile icon 3693 08 December 2015 10:24:30
like-dislike.php phpfile icon 1751 08 December 2015 10:24:30
comment-template.php phpfile icon 1705 08 December 2015 10:24:30
comment.sql sqlfile icon 468 01 February 2017 04:13:02
bootstrapcomment.php phpfile icon 7061 08 December 2015 10:24:30

Source

  1. <html>
  2. <head>
  3. <title><?PHP if(isset($output['title'])) echo $output['title']; ?></title>
  4. <?PHP if(isset($output['des'])) echo $output['des']; ?>
  5. <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
  6. <style>
  7. .bg-info{padding: 10px;border: 1px solid #6CA6CD;font-weight: 700;}
  8.     </style>
  9. <?PHP if(isset($output['head'])) echo $output['head']; ?>
  10. <?PHP if(isset($output['style'])) echo $output['style']; ?>
  11. </head>
  12. <body>
  13. <div class="container">
  14.     <div class="row">
  15.         <div class="col-sm-12 col-md-12"><h1> Demo Comment </h1></div>
  16.               <div class="col-sm-3"><div class="row"><div class="col-sm-12">
  17.                 <? 
  18.         if(isset($output['leftcontent']))
  19.         echo $output['leftcontent'];
  20.         ?>
  21.              </div></div></div>
  22.               <div class="col-sm-9"><div class="row"><div class="col-sm-12">
  23.                 <?  
  24.         if(isset($output['maincontent']))
  25.         echo $output['maincontent']; 
  26.         ?>
  27.                 
  28.                
  29.                 
  30.         <? 
  31.         if(isset($output['comment']))
  32.         echo $output['comment'];
  33.         ?>
  34.         </div></div></div>
  35.       </div>
  36. </div>
  37.     
  38. <footer class="footer">
  39.     <div class="container">
  40.         <div class="row">
  41.             <div class="col-sm-12 col-md-12">
  42.                 <p class="text-muted">&copy; 2015 Company Name  All right reserved. <span class="pull-right">yourdomain.com</span></p>
  43.             </div>
  44.         </div>
  45.     </div>
  46. </footer>    
  47. <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.0.0-alpha1/jquery.min.js"></script>
  48. <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>    
  49. <?PHP if(isset($output['script'])) echo $output['script']; ?>
  50. </body>
  51. </html>

Demo

You can find a demo available here: bootstrap comment

Requirment

  • mySql
  • PHP >= 5.4
  • Apache Server

Contribute

  • Vishv Sahdev

Example

>>

Download