By BinYaprak on Friday, 05 February 2016
Posted in Technical Issues
Replies 7
Likes 0
Views 581
Votes 0
How can I get the last reply or last 3 replies under the question title in mod_recentdicussions module?
I already checked latest-replies module but in this module, I couldn't find a function in order to get replies by question itemid..

Also I couldn't find an API documentation for easydiscuss like easysocial documentation.

So, can you suggest me a simple way to pull last reply of each question post?
(I'm going to use it in my public homepage)
Thank you.
Hey there,

In the mod_recentdiscussions module, it's sole purpose is to only fetch recent discussions. It does not fetch replies. You might want to take a look at the code mod_easydiscuss_recentreplies
·
Friday, 05 February 2016 23:16
·
0 Likes
·
0 Votes
·
0 Comments
·
I already duplicated/installed mod_recentdiscussions with a new name in order to handle its management differently and to change layout.. (I tried to add an another layout file in tmpl directory but I couldn't pick that layout file in module's advanced tab at backend. So I prefered to duplicate.)

Here, all I need is to get last reply of a post by using post/item id.
I'm going to use it like a testimonial in public homepage to give the guests an idea about the question & answer page. So I need to display a question with a reply, at least for now.

I guess recent replies module is displaying the recently replied question posts only, not the reply. I'm going to check it again.
·
Friday, 05 February 2016 23:38
·
0 Likes
·
0 Votes
·
0 Comments
·
To find replies for a post, it's pretty simple:

·
Friday, 05 February 2016 23:42
·
0 Likes
·
0 Votes
·
0 Comments
·
OK thank you

Btw, I have an another question related to this.
As I said before, I duplicated mod_recent_discussions and I'm taking this warning when I first visit discussions page after login:

Unable to load stylesheet for mod_recentdiscussions_publichome.

I tried a solution which is resolved in another support post but It doesn't work for me. I wonder whether there is an another necessity to prevent this or not. Can you check pls?
·
Monday, 08 February 2016 19:27
·
0 Likes
·
0 Votes
·
0 Comments
·
Try setting the environment to development mode and then purge the cache in EasyDiscuss. After that re-enable static mode.
·
Monday, 08 February 2016 21:38
·
0 Likes
·
0 Votes
·
0 Comments
·
Just tried but didn't work. I set the environment to development mode, purged the cache of easydiscuss and saved as static again.

Then I tried to do same steps and also compiled admin/site/module and cleared joomla cache but still didn't work..

Any idea?
·
Monday, 08 February 2016 22:04
·
0 Likes
·
0 Votes
·
0 Comments
·
To be honest, I really have no idea since you have duplicated the module, you should also modify the module files.
·
Monday, 08 February 2016 22:57
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post