By okkhalid on Saturday, 15 December 2018
Posted in General
Replies 3
Likes 0
Views 545
Votes 0
Hello,

In easydiscuss, I'm using the module EasyDiscuss - Your Discussions, when the user does not have posted any discussion, it should say: You have not posted any discussion, start now.

Currently, it shows empty.

Please advise, how I can set this value instead keeping it empty.

Thanks,
Not entirely sure why do you need to render such an empty message because most people would want the module to not be displayed if it doesn't contain any contents. This is why the module was developed to not show any contents when there isn't any discussion.

If you want to make it render an empty text, you would need to hack the module file /modules/mod_easydiscuss_your_discussion/mod_easydiscuss_your_discussion.php and remove the codes below at line 36,

[gist]
if (!$posts) {
return;
}
[/gist]

Then, in the module's template file /modules/mod_easydiscuss_your_discussion/tmpl/default.php file, you need to add your own checking if $posts is empty.
·
Saturday, 15 December 2018 15:13
·
0 Likes
·
0 Votes
·
0 Comments
·


I know, I'm old school, I just want my site to be full, I'm dealing with very old school people in my work and they like to see everything upfront. its very challenging to work with them.

Thank you for the help
·
Saturday, 15 December 2018 21:42
·
0 Likes
·
0 Votes
·
0 Comments
·
You're most welcome.
·
Saturday, 15 December 2018 22:27
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post