I missed a Login/Register option displaying on that widget when user is not logged in, much better than just a phrase:
‘ Login to see your profile links’.
To do it, as easy as copy that code to user.php, on /plugins/anspress-questions…/widget/user.php
?> <div class="ap-please-login"> <?php printf(__('Please %s or %s.', 'anspress-question-answer'), '<a data-action="ap_modal" data-toggle="#ap-login-modal" href="'.wp_login_url(get_permalink()).'">'.__('Login', 'anspress-question-answer').'</a>', '<a href="'.wp_registration_url().'">'.__('Sign up', 'anspress-question-answer').'</a>') ?> <?php do_action( 'wordpress_social_login' ); ?> </div> <div id="ap-login-modal" class="ap-modal"> <div class="ap-modal-backdrop"></div> <div class="ap-modal-inner"> <div class="ap-modal-header"> <i class="ap-modal-close" data-action="ap_modal_close">×</i> <h3 class="ap-modal-title"><?php _e('Login', 'anspress-question-answer'); ?></h3> </div> <div class="ap-modal-body"> <?php wp_login_form(); ?> </div> </div> </div><?php
substituting it for line 36 that says:
_e( 'Login to see your profile links', 'anspress-question-answer' );
Sure, there are better solutions, just what I’ve done.
Hi !
First of all kudos for your awesome work, this is easily the best plgin by far in its category. 🙂 I am admirative of what you did.
I have a simple question : what php files should I modify if I want to add some content to every answer ? (not to the question, but t all the answers)
Thank you !
Hi, first of all really great script – very clean and easy to use. Just want to finish off my project and need some advice.
How do I change the ‘Ask a question’ text in the red button and change ‘Ans’ in the answers count box? Attached is a screenshot to demonstrate what I mean, thanks!
2.4.4
I, admin, select an answer of a person B as “selected”. I was supposed to get +selecting_answer, but it’s B who received it. I received nothing. Noone received +select_answer (best_answer).
“best_answer” reputation is never getting assigned. It checks “if ( $answer->post_author != $userid )”, but from ajax it’s getting called as userid=answer->post_author, this is always false.
Should probably be called with current_user_id instead of post->author.
Trouble guys… Your post_type question is the same as the post_type for Sensei… So that means both plugins can’t co-exist which is annoying as I need to use both.
Can you please change it to something unmatchable like ap_question or ans_question?
Hey, how do I change the Bug Ask a logo? What is the recommended size?
Thank you!
Heya, I found a conflict using a combination of WooThemes’s Sensei plugin & Anspress.
Since Sensei supports quizes and questions, I think they use the same for their question custom post type as Anspress does.
This makes Anspress questions show up as questions in the Sensei question bank:
https://www.evernote.com/l/AGL9XxAekUpPj7JQ7ROjyXkBM8bB2K4pxE8
Would be great to have this resolved, since this would get really messy real quick when there are lots of questions coming in :p
Cheers,
Nick