By Jordan Weinstein on Friday, 09 September 2016
Posted in Technical Issues
Replies 3
Likes 0
Views 435
Votes 0
Hello,

I see that you can limit viewing discussions using category ACL. However, is it possible to allow titles of the discussion to display but to hide the content of the discussion unless logged in?

As it is now, if you limit "view discussions" from public users, the forum will appear as an empty list. It would be great if they say the titles only and when trying to view the content, were prompted to login.

Thanks for considering,

Thanks
Sorry, this would effect the post view as well which would show the content of the question. Would be a great option to show the content of the post to logged in users but show the title of the post only in the category/recent view and in the post view.

There are plugins that do this for com_content but can't get the plugin to fire for EasyDiscuss:

http://www.form2content.com/download/joomla-content-restriction-plugin/joomla-2-5-3

Jordan
·
Friday, 09 September 2016 22:31
·
0 Likes
·
0 Votes
·
0 Comments
·
I did a little hack like so in:

com_easydiscuss/themes/wireframe/post/default.php


<?php
$user =& JFactory::getUser();
if($user->get('guest') == 0) : ?>
<?php echo $post->getContent(); ?>
<?php endif; ?>

<?php
$user =& JFactory::getUser();
if($user->get('guest') == 1) : ?>
<?php echo 'Please login to view this discussion' ?>
<?php endif; ?>


But it would be a great option to include as core option.

Jordan
·
Friday, 09 September 2016 22:52
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks for sharing Jordan

It would be best if you can submit a feature request regarding this in our voice page -> http://stackideas.com/voices/easydiscuss, so everyone else could vote for it, the more people request on this, and we will priority consider it.
·
Friday, 09 September 2016 23:41
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post