By Anil Passi on Monday, 16 March 2015
Posted in General Issues
Replies 5
Likes 0
Views 1.1K
Votes 0
Hi,
I have a requirement wherein I want only registered users of my website to be able to ask questions and respond to discussions etc.,
Therefore, I want the ASK button to be disabled/hidden from the public and want it to be enabled/shown only when user logs into the forum.
Can you please suggest me a way to achieve the same?
Please find the attachments which gives a hint about my problem.
Thanks.
Hello Anil,

I am really sorry for the delay of this reply as it is a weekend for us here. It's actually as simple as disabling the acl to post new questions for the public user group. Go to the ACL at the back end of EasyDiscuss and click on the public group.
·
Monday, 16 March 2015 03:28
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Mark, Thanks for your response! I agree that the public is not allowed to post a question unless they are registered. My requirement is, I don't want the ask button to be seen in the forum for public view - as on the click of ask button takes the user to user registration form. Can you please tell me a way to either hide the button from public or stop redirecting to user registration form on ask button click?
Thanks.
·
Monday, 16 March 2015 22:38
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Anil,

Here I have attached to you a file, please download it and put it here: .../components/com_easydiscuss/themes/simplistic/searchbar.php . Hope this helps.

Please update us back.
·
Monday, 16 March 2015 23:14
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Mohd Yasser! Thanks for your response! Before I can do this.. Can I please get an explanation on what this file does?
Thanks.
·
Monday, 16 March 2015 23:22
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Anil,

Here I have attached to you a new file, please download this and put this in your site here: ../components/com_easydiscuss/themes/simplistic/searchbar.php . Please ignore the previous attached file. What does this file do as it responsible for displaying the ask question button. I have apply some fix based on your requirement where if the user is not allowed to ask question (ACL settings for guest), it will not display the ask button. It only display the button when the user login to the site (ACL for registered user). You can find the settings here: backend > Components > EasyDiscuss > ACL > (guest/public/registered) > Add new question.

Hope I have explained this well.
·
Tuesday, 17 March 2015 00:14
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post