I don’t know if (and how) it is possible to submit changes to anspress. Is it possible (and recommended) to do that via the github repo ? Do we need to have special rights for that ?
Here’s the changes that I’d like to submit :
In function ap_reputation_get_info() (in /includes/reputation.php), some strings contain a direct post type (like ‘answer’ or ‘question’) which is therefore not translated.
This could be easily fixed by defining the following function :
function get_translated_post_type( $post_id ) { $post_type = get_post_type( $post_id ); switch ( $post_type ) { case 'question': $translated_post_type = __( 'question', 'anspress-question-answer' ); break; case 'answer': $translated_post_type = __( 'answer', 'anspress-question-answer' ); break; default: $translated_post_type = $post_type; break; } return $translated_post_type; }
and then calling
get_translated_post_type( $action_id )
instead of
get_post_type( $action_id )
in ap_reputation_get_info()
Thanks for letting me know if there’s a better way to submit pieces of code like that.
Fred
Hello there. I installed the category for anspress plugin and notice the following :
- http://students.cri-paris.org/questions/?ap_filter%5Bcategory%5D%5B%5D=207 THIS WORKS
- http://students.cri-paris.org/questions/category/week2/ this is 100% blank
Did I forgot to do something ?
Which way to hide the post of a category from question page? Because have something I don’t want to show on home page.
Please think about that.
Commenting anonymously simply says “there aren’t any comments yet”. Would like it to say something inviting like you must be logged in to comment.
Hello – I want to use this theme to have a private question and answer site for my network. Basically I want the person to be able to sign up for free – and post their situation with their debt. I need custom fields as well to show on the ask a question page.
I also want the ability to have a user type where these types of people can only answer or reply to the person asking the question/situation. Is this possible with this theme?
// Update Custom Meta. if ( ! empty( $args['anonymous_name'] ) ) { update_post_meta( $post_id, 'anonymous_name', $args['anonymous_name'] ); }
field for guest (name) is always empty, despite entering that name. Therefore, there is no meta data saved into database, and user display name is always “Anonymous”.
Hello big thanks for this usefull plugin. I need to redirect user to content-list.php after having asked a question
WHen a user changes their password in user settings || account (within anspress) their is:
1/ no on screen confrimation message
2/ it generates “a new user” email, with the message: “To set your password, visit the following address”
Thanks
I can not install this AnswerBox [ deprecated ]
Je n’arrive pas à installé ce AnswerBox [deprecated]
Voici ce que je veux supprimer :