Kunena 1.6.3 + Kunena Discuss 1.6.2
hwdVideoShare 2.2.2 Revision 623
Делаю все как написано на форуме hwdVideoShare
Kunena 1.6
If you are using Kunena 1.6, you can use the original version however, you will need to modify the file called kunenadiscuss.php.
Around line 74, edit this:
function enabled() {
if ($this->_app->scope == 'com_content')
return true;
if ($this->_app->scope == 'com_kunena')
return true;
return false;
}
To this:
function enabled() {
if ($this->_app->scope == 'com_content')
return true;
if ($this->_app->scope == 'com_kunena')
return true;
if ($this->_app->scope == 'com_hwdvideoshare')
return true;
if ($this->_app->scope == 'com_hwdphotoshare')
return true;
return false;
}
Around line 372, edit this:
$fields ['message'] = "[article]{$row->id}[/article]";
To this:
global $option, $Itemid;
if ($option == "com_hwdvideoshare")
{
$url = JRoute::_('index.php?option=com_hwdvideoshare&task=viewvideo&Itemid='.$Itemid.'&video_id='.$row->id);
$title = stripslashes($row->title);
$fields ['message'] = "Discuss video: [url=".$url."]".$title."[/url]";
}
else if ($option == "com_hwdphotoshare")
{
$url = JRoute::_('index.php?option=com_hwdphotoshare&task=viewphoto&Itemid='.$Itemid.'&photo_id='.$row->id);
$title = stripslashes($row->title);
if (empty($title)) { $title = "photo"; }
$fields ['message'] = "Discuss photo: [url=".$url."]".$title."[/url]";
}
else
{
$fields ['message'] = "[article]{$row->id}[/article]";
}
Then, go to your Joomla plugin manager, and edit the Content - Kunena Discuss plugin. In the parameters, enter the following into your Category Mapping field:
5551,A;5552,B;5553,C;5554,D
Where A is the Kunena category you wish to discuss hwdVideoShare videos.
Where B is the Kunena category you wish to discuss hwdVideoShare groups.
Where C is the Kunena category you wish to discuss hwdPhotoShare photos.
Where D is the Kunena category you wish to discuss hwdPhotoShare groups.
То есть на сколько я понял надо заменить два куска кода в kunenadiscuss.php.
Далее надо сопоставить видео для категории форума, как это сделать я не совсем понял.

При открытии видео получаю ошибку
Fatal error: Access to undeclared static property: plgContentKunenaDiscuss::$botDisplay in /home/x/xxxxx/xxxxxx/public_html/components/com_hwdvideoshare/hwdvideoshare.class.php on line 3249