mirror of
https://github.com/e107inc/e107.git
synced 2025-01-19 13:37:09 +01:00
41 lines
2.0 KiB
PHP
41 lines
2.0 KiB
PHP
<?php
|
|
|
|
if (!defined('e107_INIT')) { exit; }
|
|
/*
|
|
$e_plug_table = "links_page"; //This is set to the table name you have decided to use.
|
|
$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.
|
|
$db_table = "links_page"; //This is the name of your plugins database table.
|
|
$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.
|
|
$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.
|
|
$plugin_name = "Links"; // A name for your plugin. It will be used in links to comments, in list_new/new.php.
|
|
*/
|
|
|
|
//This is set to the table name you have decided to use.
|
|
$e_comment['eplug_comment_ids'] = "links_page";
|
|
|
|
//This is set to the location you'd like the user to return to after replying to a comment.
|
|
$e_comment['reply_location'] = e_PLUGIN."links_page/links.php?comment.{NID}";
|
|
|
|
//A name for your plugin. It will be used in links to comments, in list_new/new.php.
|
|
$e_comment['plugin_name'] = "links_page";
|
|
|
|
//The path of the plugin folder
|
|
$e_comment['plugin_path'] = "links_page";
|
|
|
|
//This is the name of the field in your plugin's db table that corresponds to it's name or title.
|
|
$e_comment['db_title'] = "link_name";
|
|
|
|
//This is the name of the field in your plugin's db table that correspond to it's unique id number.
|
|
$e_comment['db_id'] = "link_id";
|
|
|
|
//qry must be set with a select_gen query.
|
|
//the main reason would be to check if a category from another table has a class restriction
|
|
//the id of the item should be provided as {NID}
|
|
//returned fields should at least contain the 'link_id' and 'db_id' fields set above
|
|
$e_comment['qry'] = "
|
|
SELECT l.*,c.*
|
|
FROM #links_page as l
|
|
LEFT JOIN #links_page_cat AS c ON l.link_category = c.link_category_id
|
|
WHERE l.link_id='{NID}' AND l.link_class REGEXP '".e_CLASS_REGEXP."' AND c.link_category_class REGEXP '".e_CLASS_REGEXP."' ";
|
|
|
|
?>
|