1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-09 08:06:38 +02:00

trackback plugin removed.

This commit is contained in:
Cameron
2020-12-29 10:04:33 -08:00
parent 21e3c3f8ab
commit 94f772577a
26 changed files with 40 additions and 625 deletions

View File

@@ -408,7 +408,7 @@ elseif ($action == 'comment')
switch ($table)
{
case 'news' :
if(isset($pref['trackbackEnabled']) && $pref['trackbackEnabled'])
/*if(!empty($pref['trackbackEnabled']))
{
$query = "SELECT COUNT(tb.trackback_pid) AS tb_count, n.*, u.user_id, u.user_name, u.user_customtitle, nc.category_name, nc.category_icon FROM #news AS n
LEFT JOIN #user AS u ON n.news_author = u.user_id
@@ -420,14 +420,14 @@ elseif ($action == 'comment')
GROUP by n.news_id";
}
else
{
{*/
$query = "SELECT n.*, u.user_id, u.user_name, u.user_customtitle, nc.category_name, nc.category_icon FROM #news AS n
LEFT JOIN #user AS u ON n.news_author = u.user_id
LEFT JOIN #news_category AS nc ON n.news_category = nc.category_id
WHERE n.news_class REGEXP '".e_CLASS_REGEXP."'
AND n.news_id={$id}
AND n.news_allow_comments=0";
}
// }
if (!$sql->gen($query))
{
@@ -542,16 +542,16 @@ else
e107::redirect();
exit;
}
/*
if(isset($pref['trackbackEnabled']) && $pref['trackbackEnabled'] && $table == 'news')
{
echo "<span class='smalltext'><b>".$pref['trackbackString']."</b> ".SITEURLBASE.e_PLUGIN_ABS."trackback/trackback.php?pid={$id}</span>";
}
}*/
$field = ($field ? $field : ($id ? $id : "")); // ID of associated source item
$width = (isset($width) && $width ? $width : "");
$cobj->compose_comment($table, $action, $field, $width, $subject, $rate=FALSE);
/*
if(isset($pref['trackbackEnabled']) && $pref['trackbackEnabled'] && $table == 'news')
{
if($sql->select("trackback", "*", "trackback_pid={$id}"))
@@ -597,7 +597,7 @@ if(isset($pref['trackbackEnabled']) && $pref['trackbackEnabled'] && $table == 'n
{
echo "<div style='text-align:right'><a href='".e_PLUGIN_ABS."trackback/modtrackback.php?".$id."'>".COMLAN_317."</a></div><br />";
}
}
}*/
//if (!strstr(e_QUERY, "poll"))