By George on Thursday, 22 December 2016
Posted in General Issues
Likes 0
Views 724
Votes 0
How to show the easydiscuss group discussions on to easydiscuss forum page?

Please tell me how I could apply this.
Unfortunately that was not possible to show Easysocial group discussion on forums page.

Unless you modify on this file -> JoomlaFolder/components/com_easydiscuss/views/forums/view.html.php .
·
Thursday, 22 December 2016 18:23
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi George,
To add to Arlex's reply, by default, group discussions will have its own tab as shown here(http://take.ms/PCoOb). You also have to install the group discussion app on EasySocial first.
The group discussion tab will not show if the current user is not a part of a discussion group.
·
Thursday, 22 December 2016 18:25
·
0 Likes
·
0 Votes
·
0 Comments
·
Unfortunately that was not possible to show Easysocial group discussion on forums page.

Unless you modify on this file -> JoomlaFolder/components/com_easydiscuss/views/forums/view.html.php .



Thank you so much could you please let me know how to only show the featured items and not any item that is posted. Just featured please.


Thank you both for your help. AWESOME STUFF
·
Sunday, 25 December 2016 15:59
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello George,

Unfortunately this is not possible as we do not have the option to exclude normal posts from appearing under the forums layout. If you really need to hack this, you might want to look in the file /components/com_easydiscuss/views/forums/view.html.php
·
Sunday, 25 December 2016 23:07
·
0 Likes
·
0 Votes
·
0 Comments
·
Could you simplify this for futur version ?
Thank you
·
Monday, 26 December 2016 19:55
·
0 Likes
·
0 Votes
·
0 Comments
·
We'll definitely consider this
·
Monday, 26 December 2016 20:47
·
0 Likes
·
0 Votes
·
0 Comments
·
forums/view.html.php : This change only works for the EasyDiscuss Forum page.

Which files do we need to edit to display questions from Groups on EasyDiscuss's Recent, Categories and Tags pages ?

Thank you
·
Wednesday, 28 June 2017 18:16
·
0 Likes
·
0 Votes
·
0 Comments
·
You can modify on these few files.
Recent view : JoomlaFolder/components/com_easydiscuss/views/index/view.html.php look at this method -> display()

Single Categories view: JoomlaFolder/components/com_easydiscuss/views/categories/view.html.php look at this method -> listing()

Single Tag view : JoomlaFolder/administrator/components/com_easydiscuss/models/posts.php look at this method -> getTaggedPost()

By the way, I am really sorry but unfortunately we cannot accommodate your request currently as it is beyond our support scope's policy as outlined in http://stackideas.com/support

Thanks for understand.
·
Wednesday, 28 June 2017 19:25
·
0 Likes
·
0 Votes
·
0 Comments
·
Your clues helped me a lot, thank you Arlex !
I'm not a developer, but I ended up succeeding to display Groups Questions in Recent View and Single Categorie.

But for Single Tag View, I did not succeed
Could you give me another clue, please ?


To help others, here are the changes that I made and that works :

# Recent View
in components/com_easydiscuss/views/index/view.html.php
REPLACE

'sort' => $sort,
'category' => $cats,
'filter' => $filter,
'limit' => $limit,
'featured' => false
BY

'sort' => $sort,
'category' => $cats,
'filter' => $filter,
'limit' => $limit,
'includeCluster' => true,
'featured' => false

And in components/com_easydiscuss/views/index/view.ajax.php
REPLACE

'sort' => $sort,
'category' => $categoryIds,
'filter' => $filterType,
'limit' => $limit,
'featured' => false
BY

'sort' => $sort,
'category' => $categoryIds,
'filter' => $filterType,
'limit' => $limit,
'includeCluster' => true,
'featured' => false


# Single Categorie
In components/com_easydiscuss/views/categories/view.html.php
REPLACE

'userId' => $this->my->id,
'includeChilds' => $includeChilds
BY

'userId' => $this->my->id,
'includeCluster' => true,
'includeChilds' => $includeChilds

Thank you.
Philippe
·
Wednesday, 28 June 2017 22:15
·
0 Likes
·
0 Votes
·
0 Comments
·
You're welcome, try take a look of my attached screenshot below.
·
Wednesday, 28 June 2017 22:50
·
0 Likes
·
0 Votes
·
0 Comments
·
Thank you very much Arlex !
It works now

For non-experts, here's what to do to include Group Questions Tags :

In administrator/components/com_easydiscuss/models/posts.php
Replace

// Do not include cluster item here.
$query .= ' AND t.`cluster_id` = ' . $db->Quote(0);
By

// Do not include cluster item here.
// $query .= ' AND t.`cluster_id` = ' . $db->Quote(0);


And in administrator/components/com_easydiscuss/models/tags.php
Replace

// Do not include cluster item here.
$query .= ' AND c.`cluster_id` = ' . $db->Quote(0);
By

// Do not include cluster item here.
// $query .= ' AND c.`cluster_id` = ' . $db->Quote(0);
·
Wednesday, 28 June 2017 23:23
·
0 Likes
·
0 Votes
·
0 Comments
·
Ah yes I have one last thing to ask you.

How to force display and access to all EasyDiscuss Questions from Groups to visitors who are not logged in ?

Thank you.
Philippe
·
Wednesday, 28 June 2017 23:24
·
0 Likes
·
0 Votes
·
0 Comments
·
You can comment out these code in this file -> JoomlaFolder/components/com_easydiscuss/views/post/view.html.php


// Determine if user are allowed to view the discussion item that belong to another cluster.
if ($post->isCluster()) {
$easysocial = ED::easysocial();

if (!$easysocial->isGroupAppExists()) {
ED::getErrorRedirection(JText::_('COM_EASYDISCUSS_SYSTEM_INSUFFICIENT_PERMISSIONS'));
}

$cluster = $easysocial->getCluster($post->cluster_id, $post->getClusterType());

if (!$cluster->canViewItem()) {
ED::getErrorRedirection(JText::_('COM_EASYDISCUSS_SYSTEM_INSUFFICIENT_PERMISSIONS'));
}
}
·
Thursday, 29 June 2017 10:33
·
0 Likes
·
0 Votes
·
0 Comments
·
Wow it works is wonderful !!

Everything is very well developed, there are descriptions that explains what it is, as if you had thought of those who do not know how to develop too much.

Thank you very much for your assistance Arlex.
Philippe
·
Thursday, 29 June 2017 16:58
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi there,

You are most welcome. Glad to hear that your issue has been resolved now.

As a gentle reminder, kindly start a new thread if you have any other issue in the future so it will be easier for us to manage your inquiry. I will lock and mark this thread as resolved.
·
Thursday, 29 June 2017 17:21
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post