[ Index ] |
|
Code source de e107 0.7.8 |
1 <?php 2 3 if (!defined('e107_INIT')) { exit; } 4 /* 5 $e_plug_table = "links_page"; //This is set to the table name you have decided to use. 6 $reply_location= e_PLUGIN."links_page/links.php?comment.$nid"; //This is set to the location you'd like the user to return to after replying to a comment. 7 $db_table = "links_page"; //This is the name of your plugins database table. 8 $link_name = "link_name"; //This is the name of the field in your plugin's db table that corresponds to it's name or title. 9 $db_id = "link_id"; // This is the name of the field in your plugin's db table that correspond to it's unique id number. 10 $plugin_name = "Links"; // A name for your plugin. It will be used in links to comments, in list_new/new.php. 11 */ 12 13 //This is set to the table name you have decided to use. 14 $e_comment['eplug_comment_ids'] = "links_page"; 15 16 //This is set to the location you'd like the user to return to after replying to a comment. 17 $e_comment['reply_location'] = e_PLUGIN."links_page/links.php?comment.{NID}"; 18 19 //A name for your plugin. It will be used in links to comments, in list_new/new.php. 20 $e_comment['plugin_name'] = "links_page"; 21 22 //The path of the plugin folder 23 $e_comment['plugin_path'] = "links_page"; 24 25 //This is the name of the field in your plugin's db table that corresponds to it's name or title. 26 $e_comment['db_title'] = "link_name"; 27 28 //This is the name of the field in your plugin's db table that correspond to it's unique id number. 29 $e_comment['db_id'] = "link_id"; 30 31 //qry must be set with a select_gen query. 32 //the main reason would be to check if a category from another table has a class restriction 33 //the id of the item should be provided as {NID} 34 //returned fields should at least contain the 'link_id' and 'db_id' fields set above 35 $e_comment['qry'] = " 36 SELECT l.*,c.* 37 FROM #links_page as l 38 LEFT JOIN #links_page_cat AS c ON l.link_category = c.link_category_id 39 WHERE l.link_id='{NID}' AND l.link_class REGEXP '".e_CLASS_REGEXP."' AND c.link_category_class REGEXP '".e_CLASS_REGEXP."' "; 40 41 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sun Apr 1 01:23:32 2007 | par Balluche grâce à PHPXref 0.7 |