By Douglas McCarroll on Friday, 23 June 2017
Posted in General Issues
Replies 5
Likes 0
Views 716
Votes 0
Hi,

I would think that it would be easy to find this information in your EasyDiscuss documentation, but I've spent quite a few minutes looking and I'm not finding what I need. Feel free to respond to this question with a URL if one exists that explains all this.

I'd like to set up my site so that only logged-in users can submit a question or response.

Currently, if the user is logged in, everything is fine, i.e. everything works just as I would like.

But if the user isn't logged in they are asked for a name and email address. Instead of this I'd like them to be asked for a user name and password. Is there any way for me to configure EasyDiscuss so that it works this way?

Thanks,

Douglas
Hi Douglas McCarroll,

As I understand you correctly, do you actually want to allow only login user can create a discussion? isn't it? So here, you need to disable guest/public ACL to be able to create a discussion by:
1. Click ACL>public/guest>post>post new question : https://www.screencast.com/t/ZfrCfejUsZ
·
Friday, 23 June 2017 13:00
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks. This is helpful.

The screen that displays an existing post has a login form, which is exactly what I want.

When I click the New Post button I am taken to the Forums view where I get a message that says "Please login in order to start a new discussion". Is there a way to show a login form on this page?
·
Friday, 23 June 2017 18:04
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Douglas,
You are referring to the 'New Post' button in the single category page correct(http://take.ms/dzRmT)? If that's the case, we do not have a login form for ED at the redirection page. On the other hand, you can hide the new post button to guest users by setting the permission in the respective category(http://take.ms/q9dr1).
·
Friday, 23 June 2017 18:21
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Raymond,

Thanks for your response.

Yes, that's the button that I'm referring to. I wouldn't want to hide it as it is important that guests have some easy way to find out how to post. We don't want them scratching their heads and thinking "is there any way to post to this forum?". The current error message at least lets them know what the problem is. I suggest/request that StackIdeas consider, as a new feature request, showing the login form whenever an unregistered user clicks this button. But it's not a big problem - we just need to be sure to have a 'Login' menu item in the upper right corner of the page - then our users will figure out what to do...
·
Friday, 23 June 2017 19:05
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks for your suggestion, perhaps you can request this at our forums page here https://stackideas.com/forums/easydiscuss/feature-requests .

For now, you can modify this file JoomlaFolder/components/com_easydiscuss/views/ask/view.html.php


// LINE 48
if ($this->my->guest && !$this->acl->allowed('add_question', 0)) {
ED::setMessage(JText::_('COM_EASYDISCUSS_PLEASE_KINDLY_LOGIN_TO_CREATE_A_POST'), 'error');
return $this->app->redirect(EDR::_('view=forums', false));
}



return $this->app->redirect("set your login page URL here");


Hope this will help.
·
Friday, 23 June 2017 22:52
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post