mirror of
https://github.com/e107inc/e107.git
synced 2025-08-05 22:27:34 +02:00
Bugtracker #4535 - path to base plugin in comments list. Plus a bit of absolute path adding
This commit is contained in:
@@ -2,11 +2,20 @@
|
||||
|
||||
if (!defined('e107_INIT')) { exit; }
|
||||
|
||||
/*
|
||||
$e_plug_table = "pcontent"; //This is set to the table name you have decided to use.
|
||||
$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.
|
||||
$db_table = "pcontent"; //This is the name of your plugins database table.
|
||||
$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.
|
||||
$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.
|
||||
$plugin_name = "Content"; // A name for your plugin. It will be used in links to comments, in list_new/new.php.
|
||||
*/
|
||||
|
||||
$e_comment['eplug_comment_ids'] = "pcontent"; //This is set to the table name you have decided to use.
|
||||
$e_comment['plugin_path'] = "content"; //The path of your plugin.
|
||||
$e_comment['plugin_name'] = "content"; //A name for your plugin. It will be used in links to comments, in list_new/new.php.
|
||||
//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."content/content.php?content.{NID}";
|
||||
$e_comment['reply_location'] = e_PLUGIN_ABS."content/content.php?content.{NID}";
|
||||
$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.
|
||||
$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.
|
||||
|
||||
|
@@ -1,14 +1,19 @@
|
||||
<?php
|
||||
if (!defined('e107_INIT')) { exit; }
|
||||
|
||||
include_lan(e_PLUGIN."content/languages/".e_LANGUAGE."/lan_content_admin.php");
|
||||
|
||||
include_lan(e_PLUGIN.'content/languages/'.e_LANGUAGE.'/lan_content_admin.php');
|
||||
$plugintable = "pcontent";
|
||||
$reported_content = $sql -> db_Count($plugintable, '(*)', "WHERE content_refer='sa' ");
|
||||
$text .= "<div style='padding-bottom: 2px;'><img src='".e_PLUGIN."content/images/content_16.png' style='width: 16px; height: 16px; vertical-align: bottom' alt='' />";
|
||||
if($reported_content) {
|
||||
$text .= " <a href='".e_PLUGIN."content/admin_content_config.php?submitted'>".CONTENT_LATEST_LAN_1." $reported_content</a>";
|
||||
} else {
|
||||
$text .= "
|
||||
<div style='padding-bottom: 2px;'>
|
||||
<img src='".e_PLUGIN_ABS."content/images/content_16.png' style='width: 16px; height: 16px; vertical-align: bottom' alt='' />
|
||||
";
|
||||
if($reported_content)
|
||||
{
|
||||
$text .= " <a href='".e_PLUGIN_ABS."content/admin_content_config.php?submitted'>".CONTENT_LATEST_LAN_1." $reported_content</a>";
|
||||
}
|
||||
else
|
||||
{
|
||||
$text .= CONTENT_LATEST_LAN_1." ".$reported_content;
|
||||
}
|
||||
$text .= "</div>";
|
||||
|
@@ -64,21 +64,21 @@ if (!defined('e107_INIT')) { exit; }
|
||||
|
||||
while($rowi = $sqli -> db_Fetch()){
|
||||
$rowheading = $this -> parse_heading($rowi['content_heading'], $mode);
|
||||
$HEADING = "<a href='".e_PLUGIN."content/content.php?content.".$rowi['content_id']."' title='".$rowi['content_heading']."'>".$rowheading."</a>";
|
||||
$HEADING = "<a href='".e_PLUGIN_ABS."content/content.php?content.".$rowi['content_id']."' title='".$rowi['content_heading']."'>".$rowheading."</a>";
|
||||
//category
|
||||
if($arr[4]){
|
||||
$crumb = "";
|
||||
if(array_key_exists($rowi['content_parent'], $array)){
|
||||
$newarr = $array[$rowi['content_parent']];
|
||||
$newarr = array_reverse($newarr);
|
||||
$CATEGORY = "<a href='".e_PLUGIN."content/content.php?cat.".$newarr[1]."'>".$newarr[0]."</a>";
|
||||
$CATEGORY = "<a href='".e_PLUGIN_ABS."content/content.php?cat.".$newarr[1]."'>".$newarr[0]."</a>";
|
||||
}
|
||||
}
|
||||
|
||||
$DATE = ($arr[5] ? $this -> getListDate($rowi['content_datestamp'], $mode) : "");
|
||||
//$ICON = $this -> getBullet($arr[6], $mode);
|
||||
|
||||
$image_link_append = "<a href='".e_PLUGIN."content/content.php?content.".$rowi['content_id']."'>";
|
||||
$image_link_append = "<a href='".e_PLUGIN_ABS."content/content.php?content.".$rowi['content_id']."'>";
|
||||
if($rowi['content_icon'] && file_exists($content_recent_pref["content_icon_path"].$rowi['content_icon'])){
|
||||
$ICON = $image_link_append."<img src='".$content_recent_pref["content_icon_path"].$rowi['content_icon']."' style='width:50px; border:1px solid #000;' alt='' /></a>";
|
||||
}else{
|
||||
@@ -89,7 +89,7 @@ if (!defined('e107_INIT')) { exit; }
|
||||
if($arr[3]){
|
||||
$authordetails = $aa -> getAuthor($rowi['content_author']);
|
||||
if(USER && is_numeric($authordetails[0]) && $authordetails[0] != "0"){
|
||||
$AUTHOR = "<a href='".e_BASE."user.php?id.".$authordetails[0]."' >".$authordetails[1]."</a>";
|
||||
$AUTHOR = "<a href='".e_HTTP."user.php?id.".$authordetails[0]."' >".$authordetails[1]."</a>";
|
||||
}else{
|
||||
$AUTHOR = $authordetails[1];
|
||||
}
|
||||
@@ -105,4 +105,5 @@ if (!defined('e107_INIT')) { exit; }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
?>
|
Reference in New Issue
Block a user