Yasukawa
asked 3 weeks ago

Thanks for your answer for my previous question!
 
I want to remove \”Your Email\” form and I edit \”question-submit-form.php\”.
but,I remove after 60 line by mistake.
Please teach me to the code of question-submit-form.php\” after 60 line.
 
 
 
 

1 Answers
DominicStaff
answered 3 weeks ago

At the moment, you can not remove the \”Your Email\” form. The anonymous will need to insert the email to submit a question. In this case, you can hide this form, by the way, replace the code in the line 60 with the following code:       

 <p style="display: none;">
            <label for="_dwqa_anonymous_email"><?php _e( 'Your Email', 'dwqa' ) ?></label>
            <?php $email = isset( $_POST['_dwqa_anonymous_email'] ) ? $_POST['_dwqa_anonymous_email'] : ''; ?>
            <input type="email" class="dwqa-question-anonymous-email" name="_dwqa_anonymous_email" value="anonymous@designwall.com" >
        </p>
Yasukawa
replied 3 weeks ago

Thanks for your kindness,

But the code don’t work.

Error message is “Parse error: syntax error, unexpected end of file, expecting elseif (T_ELSEIF) or else (T_ELSE) or endif (T_ENDIF) in question-submit-form.php on line 66 .

My question-submit-form.php on line56-65 is

<input type="text" class="" name="_dwqa_anonymous_name" value="” >

Is it correct?

Yasukawa
replied 3 weeks ago

<input type="text" class="" name="_dwqa_anonymous_name" value="” >

Yasukawa
replied 3 weeks ago

Oh,line 56-65 don’t correctly appeared.

Yasukawa
replied 3 weeks ago

I realized problem.
Thanks.

Dominic Staff
replied 3 weeks ago

Yes, Please let me know if you have any questions or issues.

Yasukawa
replied 3 weeks ago

I downloaded new DWQA one. And I replaced old php file to new php file.

Powered by DW Question & Answer Pro