forked from exstreme/Jcomments-4
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update plugins and readme files. Removed Zoo plugin. Zoo have his own commenting system.
- Loading branch information
1 parent
c344807
commit 5ca1ddf
Showing
12 changed files
with
576 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
<?php | ||
/** | ||
* JComments plugin for Mosets tree (https://www.mosets.com/) support | ||
* | ||
* @version 4.0 | ||
* @package JComments | ||
* @copyright (C) 2006-2016 by Sergey M. Litvinov (http://www.joomlatune.ru) | ||
* @copyright (C) 2016 exstreme (https://protectyoursite.ru) & Vladimir Globulopolis (https://xn--80aeqbhthr9b.com/ru/) | ||
* @license GNU/GPL: http://www.gnu.org/copyleft/gpl.html | ||
*/ | ||
|
||
use Joomla\CMS\Factory; | ||
use Joomla\CMS\Router\Route; | ||
use Joomla\Database\ParameterType; | ||
|
||
defined('_JEXEC') or die; | ||
|
||
class jc_com_mtree extends JCommentsPlugin | ||
{ | ||
public function getObjectInfo($id, $language = null) | ||
{ | ||
/** @var \Joomla\Database\DatabaseInterface $db */ | ||
$db = Factory::getContainer()->get('DatabaseDriver'); | ||
$query = $db->getQuery(true); | ||
|
||
$query->select($db->quoteName(array('link_id', 'link_name', 'user_id'))) | ||
->from($db->quoteName('#__mt_links')) | ||
->where($db->quoteName('link_id') . ' = :id') | ||
->bind(':id', $id, ParameterType::INTEGER); | ||
|
||
$row = $db->loadObject(); | ||
|
||
$info = new JCommentsObjectInfo; | ||
|
||
if (!empty($row)) | ||
{ | ||
$itemid = self::getItemid('com_mtree'); | ||
$itemid = $itemid > 0 ? '&Itemid=' . $itemid : ''; | ||
|
||
$info->title = $row->link_name; | ||
$info->userid = $row->user_id; | ||
$info->link = Route::_('index.php?option=com_mtree&task=viewlink&link_id=' . $id . $itemid); | ||
} | ||
|
||
return $info; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
<?php | ||
/** | ||
* JComments plugin for Phoca Download (https://www.phoca.cz/phocadownload) | ||
* | ||
* @version 4.0 | ||
* @package JComments | ||
* @copyright (C) 2006-2016 by Sergey M. Litvinov (http://www.joomlatune.ru) | ||
* @copyright (C) 2016 exstreme (https://protectyoursite.ru) & Vladimir Globulopolis (https://xn--80aeqbhthr9b.com/ru/) | ||
* @license GNU/GPL: http://www.gnu.org/copyleft/gpl.html | ||
*/ | ||
|
||
defined('_JEXEC') or die; | ||
|
||
use Joomla\CMS\Factory; | ||
use Joomla\CMS\Router\Route; | ||
use Joomla\Database\ParameterType; | ||
|
||
class jc_com_phocadownload extends JCommentsPlugin | ||
{ | ||
public function getObjectInfo($id, $language = null) | ||
{ | ||
$info = new JCommentsObjectInfo; | ||
|
||
/** @var \Joomla\Database\DatabaseInterface $db */ | ||
$db = Factory::getContainer()->get('DatabaseDriver'); | ||
$query = $db->getQuery(true); | ||
|
||
$query->select($db->quoteName(array('id', 'title', 'access'))) | ||
->select('CASE WHEN CHAR_LENGTH(alias) THEN CONCAT_WS(\':\', id, alias) ELSE id END as slug') | ||
->from($db->quoteName('#__phocadownload_categories')) | ||
->where($db->quoteName('id') . ' = :id') | ||
->bind(':id', $id, ParameterType::INTEGER); | ||
|
||
$db->setQuery($query); | ||
$row = $db->loadObject(); | ||
|
||
if (!empty($row)) | ||
{ | ||
$itemid = self::getItemid('com_phocadownload'); | ||
$itemid = $itemid > 0 ? '&Itemid=' . $itemid : ''; | ||
|
||
$info->title = $row->title; | ||
$info->access = $row->access; | ||
$info->link = Route::_('index.php?option=com_phocadownload&view=category&id=' . $row->slug . $itemid); | ||
} | ||
|
||
return $info; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
<?php | ||
/** | ||
* JComments plugin for Phoca Download (https://www.phoca.cz/phocadownload) | ||
* | ||
* @version 4.0 | ||
* @package JComments | ||
* @copyright (C) 2006-2016 by Sergey M. Litvinov (http://www.joomlatune.ru) | ||
* @copyright (C) 2016 exstreme (https://protectyoursite.ru) & Vladimir Globulopolis (https://xn--80aeqbhthr9b.com/ru/) | ||
* @license GNU/GPL: http://www.gnu.org/copyleft/gpl.html | ||
*/ | ||
|
||
defined('_JEXEC') or die; | ||
|
||
use Joomla\CMS\Factory; | ||
use Joomla\CMS\Router\Route; | ||
use Joomla\Database\ParameterType; | ||
|
||
class jc_com_phocadownload_files extends JCommentsPlugin | ||
{ | ||
public function getObjectInfo($id, $language = null) | ||
{ | ||
$info = new JCommentsObjectInfo; | ||
|
||
/** @var \Joomla\Database\DatabaseInterface $db */ | ||
$db = Factory::getContainer()->get('DatabaseDriver'); | ||
$query = $db->getQuery(true); | ||
|
||
$query->select($db->quoteName(array('a.id', 'a.title', 'a.access'))) | ||
->select('CASE WHEN CHAR_LENGTH(c.alias) THEN CONCAT_WS(\':\', c.id, c.alias) ELSE c.id END as catslug') | ||
->select('CASE WHEN CHAR_LENGTH(a.alias) THEN CONCAT_WS(\':\', a.id, a.alias) ELSE a.id END as slug') | ||
->from($db->quoteName('#__phocadownload', 'a')) | ||
->join('LEFT', $db->quoteName('#__phocadownload_categories', 'c'), 'c.id = a.catid') | ||
->where($db->quoteName('a.id') . ' = :id') | ||
->bind(':id', $id, ParameterType::INTEGER); | ||
|
||
$db->setQuery($query); | ||
$row = $db->loadObject(); | ||
|
||
if (!empty($row)) | ||
{ | ||
$itemid = self::getItemid('com_phocadownload'); | ||
$itemid = $itemid > 0 ? '&Itemid=' . $itemid : ''; | ||
|
||
$info->title = $row->title; | ||
$info->access = $row->access; | ||
$info->link = Route::_('index.php?option=com_phocadownload&view=file&catid=' . $row->catslug . '&id=' . $row->slug . $itemid); | ||
} | ||
|
||
return $info; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
<?php | ||
/** | ||
* JComments plugin for Phoca Gallery (https://www.phoca.cz/phocagallery) | ||
* | ||
* @version 4.0 | ||
* @package JComments | ||
* @copyright (C) 2006-2016 by Sergey M. Litvinov (http://www.joomlatune.ru) | ||
* @copyright (C) 2016 exstreme (https://protectyoursite.ru) & Vladimir Globulopolis (https://xn--80aeqbhthr9b.com/ru/) | ||
* @license GNU/GPL: http://www.gnu.org/copyleft/gpl.html | ||
*/ | ||
|
||
defined('_JEXEC') or die; | ||
|
||
use Joomla\CMS\Factory; | ||
use Joomla\CMS\Router\Route; | ||
use Joomla\Database\ParameterType; | ||
|
||
class jc_com_phocagallery extends JCommentsPlugin | ||
{ | ||
public function getObjectInfo($id, $language = null) | ||
{ | ||
$info = new JCommentsObjectInfo; | ||
|
||
/** @var \Joomla\Database\DatabaseInterface $db */ | ||
$db = Factory::getContainer()->get('DatabaseDriver'); | ||
$query = $db->getQuery(true); | ||
|
||
$query->select($db->quoteName(array('id', 'title', 'owner_id'))) | ||
->select('CASE WHEN CHAR_LENGTH(alias) THEN CONCAT_WS(\':\', id, alias) ELSE id END as slug') | ||
->from($db->quoteName('#__phocagallery_categories')) | ||
->where($db->quoteName('id') . ' = :id') | ||
->bind(':id', $id, ParameterType::INTEGER); | ||
|
||
$db->setQuery($query); | ||
$row = $db->loadObject(); | ||
|
||
if (!empty($row)) | ||
{ | ||
$itemid = self::getItemid('com_phocagallery'); | ||
$itemid = $itemid > 0 ? '&Itemid=' . $itemid : ''; | ||
|
||
$info->title = $row->title; | ||
$info->access = 0; | ||
$info->userid = $row->owner_id; | ||
$info->link = Route::_('index.php?option=com_phocagallery&view=category&id=' . $row->slug . $itemid); | ||
} | ||
|
||
return $info; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
<?php | ||
/** | ||
* JComments plugin for Phoca Gallery (https://www.phoca.cz/phocagallery) | ||
* | ||
* @version 4.0 | ||
* @package JComments | ||
* @copyright (C) 2006-2016 by Sergey M. Litvinov (http://www.joomlatune.ru) | ||
* @copyright (C) 2016 exstreme (https://protectyoursite.ru) & Vladimir Globulopolis (https://xn--80aeqbhthr9b.com/ru/) | ||
* @license GNU/GPL: http://www.gnu.org/copyleft/gpl.html | ||
*/ | ||
|
||
defined('_JEXEC') or die; | ||
|
||
use Joomla\CMS\Factory; | ||
use Joomla\CMS\Router\Route; | ||
use Joomla\Database\ParameterType; | ||
|
||
class jc_com_phocagallery_images extends JCommentsPlugin | ||
{ | ||
public function getObjectInfo($id, $language = null) | ||
{ | ||
$info = new JCommentsObjectInfo; | ||
|
||
/** @var \Joomla\Database\DatabaseInterface $db */ | ||
$db = Factory::getContainer()->get('DatabaseDriver'); | ||
$query = $db->getQuery(true); | ||
|
||
$query->select($db->quoteName(array('a.id', 'a.title'))) | ||
->select('CASE WHEN CHAR_LENGTH(c.alias) THEN CONCAT_WS(\':\', c.id, c.alias) ELSE c.id END as catslug') | ||
->select('CASE WHEN CHAR_LENGTH(a.alias) THEN CONCAT_WS(\':\', a.id, a.alias) ELSE a.id END as slug') | ||
->from($db->quoteName('#__phocagallery', 'a')) | ||
->join('LEFT', $db->quoteName('#__phocagallery_categories', 'c'), 'c.id = a.catid') | ||
->where($db->quoteName('a.id') . ' = :id') | ||
->bind(':id', $id, ParameterType::INTEGER); | ||
|
||
$db->setQuery($query); | ||
$row = $db->loadObject(); | ||
|
||
if (!empty($row)) | ||
{ | ||
$itemid = self::getItemid('com_phocagallery'); | ||
$itemid = $itemid > 0 ? '&Itemid=' . $itemid : ''; | ||
|
||
$info->title = $row->title; | ||
$info->access = 0; | ||
$info->userid = $row->owner_id; | ||
|
||
// Comment is displayed in popup window so we must create link to category view | ||
// Because of possible pagination only this one image will be displayed not all | ||
|
||
$info->link = Route::_('index.php?option=com_phocagallery&view=category&id=' . $row->catslug . '&cimgid=' . $row->slug . $itemid); | ||
} | ||
|
||
return $info; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
<?php | ||
/** | ||
* JComments plugin for RSEvents!PRO (https://www.rsjoomla.com/joomla-extensions/joomla-events.html) objects support | ||
* | ||
* @version 4.0 | ||
* @package JComments | ||
* @author Webcanyon (www.webcanyon.be) - based on work of Oregon | ||
* @copyright (C) 2014 by Webcanyon | ||
* @copyright (C) 2006-2016 by Sergey M. Litvinov (http://www.joomlatune.ru) | ||
* @copyright (C) 2016 exstreme (https://protectyoursite.ru) & Vladimir Globulopolis (https://xn--80aeqbhthr9b.com/ru/) | ||
* @license GNU/GPL: http://www.gnu.org/copyleft/gpl.html | ||
*/ | ||
|
||
defined('_JEXEC') or die; | ||
|
||
use Joomla\CMS\Factory; | ||
use Joomla\CMS\Router\Route; | ||
use Joomla\Database\ParameterType; | ||
|
||
class jc_com_rseventspro extends JCommentsPlugin | ||
{ | ||
public function getObjectInfo($id, $language = null) | ||
{ | ||
/** @var \Joomla\Database\DatabaseInterface $db */ | ||
$db = Factory::getContainer()->get('DatabaseDriver'); | ||
$query = $db->getQuery(true); | ||
|
||
$query->select($db->quoteName(array('id', 'name', 'owner'))) | ||
->from($db->quoteName('#__rseventspro_events')) | ||
->where($db->quoteName('id') . ' = :id') | ||
->bind(':id', $id, ParameterType::INTEGER); | ||
|
||
$db->setQuery($query); | ||
$row = $db->loadObject(); | ||
|
||
$info = new JCommentsObjectInfo; | ||
|
||
if (!empty($row)) | ||
{ | ||
$itemid = self::getItemid('com_rseventspro'); | ||
$itemid = $itemid > 0 ? '&Itemid=' . $itemid : ''; | ||
|
||
$info->title = $row->name; | ||
$info->userid = $row->owner; | ||
$info->link = Route::_('index.php?option=com_rseventspro&view=rseventspro&layout=show&id=' . $row->id . $itemid); | ||
} | ||
|
||
return $info; | ||
} | ||
} |
Oops, something went wrong.