By Philip on Friday, 15 August 2014
Posted in General Issues
Replies 9
Likes 0
Views 558
Votes 0
Is it possible to display similar discussions from the same subcategory?
Hello Philip,

I have modified the helper.php file for you and it should work fine now
·
Saturday, 16 August 2014 15:22
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Philip,

The similar discussions module will only appear when you view a discussion item in EasyDiscuss. It then takes the title and content to match against any other discussions on the site. Unfortunately right now it's not possible to have similar items based on the category. You can however, hack the file /modules/mod_easydiscuss_similar_discussions/helper.php and at line 53 locate the codes below,


// $query .= ' AND a.`category_id` = ' . $db->Quote( $categoryId );


Replace it with,


$query .= ' AND a.`category_id` = ' . $db->Quote( $categoryId );
·
Friday, 15 August 2014 02:17
·
0 Likes
·
0 Votes
·
0 Comments
·
Uncommenting the line didn't work. Its still pulling posts from other categories. Does it pull discussions from the root category, the category above, or subcategory? If so it may be an issue with how the tree is setup on my site.
·
Friday, 15 August 2014 04:21
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Philip,

By un-commenting the line of code above, it will ensure that it matches the same category the current post is posted in.
·
Friday, 15 August 2014 15:02
·
0 Likes
·
0 Votes
·
0 Comments
·
hmm. What am I doing wrong?


/modules/mod_easydiscuss_similar_discussions/helper.php



A discussion posted in Block 1 Immunology



Number of discussions in same category, some have the same word in the title (I'm assuming it matches text and category after uncommenting)
·
Friday, 15 August 2014 22:19
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Philip,

I am really sorry for the delay of this reply as it is a weekend for us here. Is it possible for you to provide us with the back end and FTP access to your site to check on this issue?
·
Saturday, 16 August 2014 00:50
·
0 Likes
·
0 Votes
·
0 Comments
·
sure thing.
·
Saturday, 16 August 2014 01:29
·
0 Likes
·
0 Votes
·
0 Comments
·
You guys are so awesome. Thank you again!
·
Saturday, 16 August 2014 20:08
·
0 Likes
·
0 Votes
·
0 Comments
·
You are most welcome Philip
·
Saturday, 16 August 2014 22:57
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post