[ Index ]
 

Code source de e107 0.7.8

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/e107_plugins/content/ -> e_comment.php (source)

   1  <?php
   2  
   3  if (!defined('e107_INIT')) { exit; }
   4  
   5  /*
   6  $e_plug_table    = "pcontent"; //This is set to the table name you have decided to use.
   7  $reply_location    = e_PLUGIN."content/content.php?content.$nid"; //This is set to the location you'd like the user to return to after replying to a comment.
   8  $db_table        = "pcontent"; //This is the name of your plugins database table.
   9  $link_name        = "content_heading"; //This is the name of the field in your plugin's db table that corresponds to it's name or title.
  10  $db_id            = "content_id"; // This is the name of the field in your plugin's db table that correspond to it's unique id number.
  11  $plugin_name    = "Content"; // A name for your plugin. It will be used in links to comments, in list_new/new.php.
  12  */
  13  
  14  $e_comment['eplug_comment_ids'] = "pcontent"; //This is set to the table name you have decided to use.
  15  $e_comment['plugin_path'] = "content"; //The path of your plugin.
  16  $e_comment['plugin_name'] = "content"; //A name for your plugin. It will be used in links to comments, in list_new/new.php.
  17  //This is set to the location you'd like the user to return to after replying to a comment.
  18  $e_comment['reply_location'] = e_PLUGIN."content/content.php?content.{NID}"; 
  19  $e_comment['db_title'] = "content_heading"; //This is the name of the field in your plugin's db table that corresponds to it's name or title.
  20  $e_comment['db_id'] = "content_id"; // This is the name of the field in your plugin's db table that correspond to it's unique id number.
  21  
  22  //qry must be set with a select_gen query.
  23  //the main reason would be to check if a category from another table has a class restriction
  24  //the id of the item should be provided as {NID}
  25  //returned fields should at least contain the 'link_id' and 'db_id' fields set above
  26  $e_comment['qry']                = "
  27  SELECT c.*
  28  FROM #pcontent as c
  29  WHERE c.content_id='{NID}' AND c.content_refer !='sa' AND c.content_datestamp < ".time()." AND (c.content_enddate=0 || c.content_enddate>".time().") AND c.content_class REGEXP '".e_CLASS_REGEXP."' ";
  30  
  31  ?>


Généré le : Sun Apr 1 01:23:32 2007 par Balluche grâce à PHPXref 0.7