By Rukaiya on Friday, 22 May 2015
Posted in General Issues
Likes 0
Views 548
Votes 0
Hi,

I want guests on my site to be able to post anonymously. I have managed to hide the email field from the "start new discussion" and "reply" forms.

Guests are now able to start a new discussion without using their email. However, I'm stuck when it comes to the reply form. I have hidden the email field, but it asks for the email address when you click submit.

So far, I have edited these files;
/components/com_easydiscuss/themes/simplistic/form.new.php
/components/com_easydiscuss/themes/simplistic/form.reply.php
/components/com_easydiscuss/controllers/posts.php

I assume there's a code in the below file that needs to be modified, but I can't figure it out;
/components/com_easydiscuss/views/posts/view.ajax.php

Would you be able to help?

Thanks
Hello Rukaiya.

You need to change this code in ...\components\com_easydiscuss\views\post\view.ajax.php at line 1013

if( empty($post['poster_name']) || empty($post['poster_email']) )


to this

if( empty($post['poster_name']))


Hope this help
·
Friday, 22 May 2015 11:29
·
0 Likes
·
0 Votes
·
0 Comments
·
Thank you!!
·
Friday, 22 May 2015 15:09
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Rukaiya.

You are welcome
·
Friday, 22 May 2015 15:19
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post