UPDATES EasyBlog 6.0.11 Released! Update to the latest version now!

Helpdesk

Your Time
Our Time
Response Time
24 — 48 hours
We strive to provide the fastest ever response possible. However, we are not super beings.

Allow at least 24 — 48 hours
  Support is offline
It is currently a public holiday for us from where we are at.

There may be a delay in our responses but rest assured that we will be back at full speed when we are back to the office.
  Support is offline
Hi there !

I want to share a little trick to map discussions categories with articles categories and I hope to find this in a future version.

My idea is simple, just put the same alias in content categories AND easydiscuss categories to map them.

File : plugins/content/easydiscuss/easydiscuss.php

Change line 618


$data['category_id'] = $params->get('category_storage', 1);


To,


// Map discussion category with article category if alias are the same
$db = JFactory::getDbo();
$db->setQuery("SELECT b.id FROM #__categories AS a LEFT JOIN #__discuss_category AS b ON a.alias = b.alias WHERE b.alias = '" . $article->category_alias . "'");
$row = $db->loadRow();
if( !empty($row) ) {
$data['category_id'] = $row[0];
} else {
$data['category_id'] = $params->get('category_storage', 1);
}


Enjoy ;)
The replies under this section are restricted to logged in users or users with an active subscription with us