Nicolas Poizot
asked 8 years ago

Hi,
i don’t see my previous question. So maybe a problem.
This is a visual od the problem :

http://exposez-vos-photos.fr/wp-content/uploads/2016/05/Capture-d’écran-2016-05-14-à-16.24.28.png

i give all authorization to all role for answer. I think there is a problem with the css.

I paid for the QR pro after try the free version. But the same problem with two version.

Many thanks for your help.
Nicolas

3 Answers
DominicStaff
answered 8 years ago

I have checked your screenshot and I think it’s some issue with the CSS. Maybe, conflict CSS with your theme, or another plugin. To resolve this issue, you can add the following code to the style.css file:

.single-dwqa-question .dwqa-answer-form pre.CodeMirror-line {

 background: none;

 border: none;

 padding: 0;

 border-radius: 0;

}

.single-dwqa-question .dwqa-answer-form .select-wrap .select {

 width: 10%;

}

Also, when you submit a question, the question need to check and approve by the Administrator, we will public your question after answered it.

Nicolas Poizot
answered 8 years ago

Thanks for your answer. it’s great, it’s ok.

I’va just a last problem with time. I just answer, and but there is a problem with the real hour of my answer. Do you know where i can watch?

Best regards

Nicolas

DominicStaff
answered 8 years ago

To resolve the time issue on your site you can do the following solution:
About list question page, you can open the content-question.php file, find line 17.
Replace it with the following code:
$time = human_time_diff( get_post_time( 'U' ), current_time('timestamp'));
you can open the content-single-question.php file and find the line 19.
Replace the following code:

<?php printf( **( '<span>%s%s %s asked %s ago</span>', 'dwqa' ), dwqa_get_author_link( $user_id ), get_avatar( $user_id, 48 ), dwqa_get_author(), dwqa_print_user_badge( $user_id ), human_time_diff( get_post_time( 'U' ) ) ) ?>**

With new code:

<?php printf( ( '<span>%s%s %s asked %s ago</span>', 'dwqa' ), dwqa_get_author_link( $user_id ), get_avatar( $user_id, 48 ), dwqa_get_author(), dwqa_print_user_badge( $user_id ), human_time_diff( get_post_time( 'U' ), current_time('timestamp') ) ) ?>
Nicolas Poizot
replied 8 years ago

for the second code, i just add –>, current_time(‘timestamp’)<–
because my code was a little different :
<?php printf( __( '%2$s%3$s %4$s asked %5$s ago’, ‘dwqa’ ), dwqa_get_author_link( $user_id ), get_avatar( $user_id, 48 ), get_the_author(), dwqa_print_user_badge( $user_id ), human_time_diff( get_post_time( ‘U’ ) , current_time(‘timestamp’)) ) ?>

Dominic Staff
replied 8 years ago

Yes, you can try with your plugin, if it not works, you can send me username & password of your site for further checking, I will help you resolve it.

Nicolas Poizot
replied 8 years ago

for the second code, i just add –>, current_time(‘timestamp’)<–
because my code was a little different :
<?php printf( __( '%2$s%3$s %4$s asked %5$s ago’, ‘dwqa’ ), dwqa_get_author_link( $user_id ), get_avatar( $user_id, 48 ), get_the_author(), dwqa_print_user_badge( $user_id ), human_time_diff( get_post_time( ‘U’ ) , current_time(‘timestamp’)) ) ?>

Nicolas Poizot
replied 8 years ago

sorry i did a refresh. I think all is good now :).
Tanks for your help 🙂

Powered by DW Question & Answer Pro