How do I make it so people get a message to login before being able to ask or answer a question? Right now, it asks for a name and email to ask a question and there is nothing to answer one if you are not logged in.
You can change the Permission of the Q&A settings and disable the post check-box of all the Role user.
how can i bring the registration link a the top of my website?
You can find the solution in my answer under this comment Or you can create a new private question and send me username password of your site, I will check and help you resolve it.
I did that, but there is no message instructing people to register.
At the moment, we have disable temporary this option in the latest version. If you want to display the login/register link in the single question, you can open the single-question.php file in the templates folder and add the following code under line 20.
<?php
if ( dwqa_current_user_can( 'post_answer' ) ) {
dwqa_load_template( 'answer', 'submit-form' );
} else { ?>
<?php if ( is_user_logged_in() ) { ?>
<div class="alert"><?php _e( 'You do not have permission to submit answer.','dwqa' ) ?>
<?php } else { ?>
<h3 class="dwqa-title">
<?php
printf( '%1$s <a href="%2$s" title="%3$s">%3$s %4$s', **( 'Please login or', 'dwqa' ), wp_registration_url(), **( 'Register', 'dwqa' ), __( 'to Submit Answer', 'dwqa' ) );
?>
<div class="login-box">
<?php wp_login_form( array( 'redirect' => get_post_permalink( $question_id ) ) ); ?>
<?php
}
}
?>
If you still face their issue, you can send me username & password of your site for further checking, I will help you resolve it.
Hope this helps!
I want to be able to have a message on the archive telling them they need to register in order to ask a question — and in the question so they know to register to answer a question.
I get an error on this line, and it doesn’t pull anything up on that page now:
printf( ‘%1$s <a href="%2$s" title="%3$s">%3$s %4$s’, ( ‘Please login or’, ‘dwqa’ ), wp_registration_url(), ( ‘Register’, ‘dwqa’ ), __( ‘to Submit Answer’, ‘dwqa’ ) );
HELLO… PLEASE HOW WAS THIS FINALLY FIXED??? I’M HAVING THE SAME ISSUE.
please refer to this question : https://www.designwall.com/question/you-do-not-have-permission-to-submit-a-question-2/
If you want to put a message on the archive, I think you should put your message in the page editor, you can put it before the shortcode or you can use HTML in the archive-question.php file.
If you want, you can let me the message that you want to display on the archive page, and username & password of your site, I will help you resolve it.
I sent the user and pw to hi@. Do you know why the syntax is wrong in that line of code?
I will check the email and check your site.
Please login or Register to submit your answer