olegator1
Forum Replies Created
-
Forum: Plugins
In reply to: [DW Question & Answer] How to add tags with ENTER or write a prompt in formIn line 59 i have <input type=”text” class=”” name=”_dwqa_anonymous_name” value=”<?php echo $name ?>” >. Should i change it to <input type=”text” class=”dwqa-question-tags” name=”question-tag” value=”<?php echo $tags ?>” placeholder=”Your string” > ? If so, i still does not work
Forum: Plugins
In reply to: [DW Question & Answer] How to delete visibility point?It does not work. Maybe there is another one way?
Forum: Plugins
In reply to: [DW Question & Answer] How to translate into russian “Comment” on answer page<?php
/**
* The template for displaying answer submit form
*
* @package DW Question & Answer
* @since DW Question & Answer 1.4.3
*/
?><div class=”dwqa-answer-form”>
<?php do_action( ‘dwqa_before_answer_submit_form’ ); ?>
<div class=”dwqa-answer-form-title”><?php _e( ‘Your Answer’, ‘dwqa’ ) ?></div>
<form name=”dwqa-answer-form” id=”dwqa-answer-form” method=”post”>
<?php dwqa_print_notices(); ?>
<?php $content = isset( $_POST[‘answer-content’] ) ? sanitize_text_field( $_POST[‘answer-content’] ) : ”; ?>
<?php dwqa_init_tinymce_editor( array( ‘content’ => $content, ‘textarea_name’ => ‘answer-content’, ‘placeholder’ => ‘Ответ’, ‘id’ => ‘dwqa-answer-content’ ) ) ?>
<?php dwqa_load_template( ‘captcha’, ‘form’ ); ?><?php if ( dwqa_current_user_can( ‘post_answer’ ) && !is_user_logged_in() ) : ?>
<p>
<label for=”user-email”><?php _e( ‘Your Email’, ‘dwqa’ ) ?></label>
<?php $email = isset( $_POST[‘user-email’] ) ? sanitize_email( $_POST[‘user-email’] ) : ”; ?>
<input type=”email” class=”” name=”user-email” value=”<?php echo $email ?>” >
</p>
<p>
<label for=”user-name”><?php _e( ‘Your Name’, ‘dwqa’ ) ?></label>
<?php $name = isset( $_POST[‘user-name’] ) ? esc_html( $_POST[‘user-name’] ) : ”; ?>
<input type=”text” class=”” name=”user-name” value=”<?php echo $name ?>” >
</p>
<?php endif; ?><select class=”dwqa-select” name=”dwqa-status”>
<optgroup label=”<?php _e( ‘Who can see this?’, ‘dwqa’ ) ?>”>
<option value=”publish”><?php _e( ‘Public’, ‘dwqa’ ) ?></option>
<option value=”private”><?php _e( ‘Only Me & Admin’, ‘dwqa’ ) ?></option>
</optgroup>
</select><input type=”submit” name=”submit-answer” class=”dwqa-btn dwqa-btn-primary” value=”<?php _e( ‘Submit’, ‘dwqa’ ) ?>”>
<input type=”hidden” name=”question_id” value=”<?php the_ID(); ?>”>
<input type=”hidden” name=”dwqa-action” value=”add-answer”>
<?php wp_nonce_field( ‘_dwqa_add_new_answer’ ) ?>
</form>
<?php do_action( ‘dwqa_after_answer_submit_form’ ); ?>
</div>Forum: Plugins
In reply to: [DW Question & Answer] How to resize comment windowSorry, previous comment should not be here, i can not delete it
Forum: Plugins
In reply to: [DW Question & Answer] How to resize comment window<?php
/**
* The template for displaying answer submit form
*
* @package DW Question & Answer
* @since DW Question & Answer 1.4.3
*/
?><div class=”dwqa-answer-form”>
<?php do_action( ‘dwqa_before_answer_submit_form’ ); ?>
<div class=”dwqa-answer-form-title”><?php _e( ‘Your Answer’, ‘dwqa’ ) ?></div>
<form name=”dwqa-answer-form” id=”dwqa-answer-form” method=”post”>
<?php dwqa_print_notices(); ?>
<?php $content = isset( $_POST[‘answer-content’] ) ? sanitize_text_field( $_POST[‘answer-content’] ) : ”; ?>
<?php dwqa_init_tinymce_editor( array( ‘content’ => $content, ‘textarea_name’ => ‘answer-content’, ‘placeholder’ => ‘Ответ’, ‘id’ => ‘dwqa-answer-content’ ) ) ?>
<?php dwqa_load_template( ‘captcha’, ‘form’ ); ?><?php if ( dwqa_current_user_can( ‘post_answer’ ) && !is_user_logged_in() ) : ?>
<p>
<label for=”user-email”><?php _e( ‘Your Email’, ‘dwqa’ ) ?></label>
<?php $email = isset( $_POST[‘user-email’] ) ? sanitize_email( $_POST[‘user-email’] ) : ”; ?>
<input type=”email” class=”” name=”user-email” value=”<?php echo $email ?>” >
</p>
<p>
<label for=”user-name”><?php _e( ‘Your Name’, ‘dwqa’ ) ?></label>
<?php $name = isset( $_POST[‘user-name’] ) ? esc_html( $_POST[‘user-name’] ) : ”; ?>
<input type=”text” class=”” name=”user-name” value=”<?php echo $name ?>” >
</p>
<?php endif; ?><select class=”dwqa-select” name=”dwqa-status”>
<optgroup label=”<?php _e( ‘Who can see this?’, ‘dwqa’ ) ?>”>
<option value=”publish”><?php _e( ‘Public’, ‘dwqa’ ) ?></option>
<option value=”private”><?php _e( ‘Only Me & Admin’, ‘dwqa’ ) ?></option>
</optgroup>
</select><input type=”submit” name=”submit-answer” class=”dwqa-btn dwqa-btn-primary” value=”<?php _e( ‘Submit’, ‘dwqa’ ) ?>”>
<input type=”hidden” name=”question_id” value=”<?php the_ID(); ?>”>
<input type=”hidden” name=”dwqa-action” value=”add-answer”>
<?php wp_nonce_field( ‘_dwqa_add_new_answer’ ) ?>
</form>
<?php do_action( ‘dwqa_after_answer_submit_form’ ); ?>
</div>Forum: Plugins
In reply to: [DW Question & Answer] How to resize comment windowhttps://robotbro.ru/questions/vopros-tolko-chto/
If you want to see comment form, you should be registered
Forum: Plugins
In reply to: [DW Question & Answer] How to translate into russian “Comment” on answer pageI replaced line but nothing happens.https://imglink.ru/show-image.php?id=d5f7ca5efb4fb12b450699252bbbfcdd
Forum: Plugins
In reply to: [DW Question & Answer] How to translate into russian “Comment” on answer pageI did it! Can i ad the same placeholder to the answer form, that is below?
https://imglink.ru/show-image.php?id=3c748b367dfcf5032b963c8c92140c6eForum: Plugins
In reply to: [DW Question & Answer] How to delete “anonymouse submit”If you mean disables all check of last line, i did it. But i can do it just for questions and answers not for comments (when i save settings everything become default). https://imglink.ru/show-image.php?id=85e7b871d3265cb5919dc55d65f97e15
But if i desable questions and answers for anonymouse “anonymous submit” still be in form
Спасибо!Настроил.
Сделал, но всё равно данная категория не по умолчанию, то есть, если пользователи её не выберут, то пост будет без рубрики. Можно как-то сделать, чтобы всегда стояла галочка в этой категории или выбор категории вообще опустить?
Thank for your answer, it is very useful. But i met wtih another problem: all new users have author status,but then they try to upload mediafile it is no permission for file attachment. How to solve it?