as a follow up i think that there might be another issue with received votes : i suggest to change the whole about block <div class="ap-about-block"> <h3><?php echo ap_icon('reputation', true); ?> <?php _e('Reputation', 'ap'); ?></h3> <div class="ap-about-block-c"> <div class="ap-about-rep clearfix"> <div class="ap-pull-left"> <span class="ap-about-rep-label"><?php _e('Total', 'ap'); ?></span> <span class="ap-about-rep-count"><?php ap_user_the_reputation(); ?></span> </div> <div class="ap-about-rep-chart"> <span data-action="ap_chart" data-type="bar" data-peity='{"fill" : ["#8fc77e"], "height": 45, "width": "100%"}'><?php echo ap_user_get_28_days_reputation(); ?></span> </div> <div class="ap-user-rep"> <?php if(ap_has_reputations(array('number' => 5))){ while ( ap_reputations() ) : ap_the_reputation(); ap_get_template_part('user/reputation-content'); endwhile; } ?> </div> </div> </div> </div> with this <div class="ap-about-block"> <h3><?php echo ap_icon('thumbs-up-down', true); ?> <?php _e('Votes', 'ap'); ?></h3> <div class="ap-about-block-c"> <div class="ap-about-votes row"> <div class="col-md-6"> <span class="ap-about-vote-label"><?php printf(__('%d votes received', 'ap'), ap_user_total_votes_received()); ?></span> <?php $upVoteReceivedPercent=0; if(ap_user_total_votes_received()>0) $upVoteReceivedPercent=ceil((ap_user_get_the_meta('__up_vote_received')/ap_user_total_votes_received())*100); ?> <span data-action="ap_chart" data-type="donut" data-peity='{ "fill": ["#9087FF", "#eeeeee"], "innerRadius": 20, "radius": 25 }'><?php echo $upVoteReceivedPercent; ?>/100</span> <span class="ap-vote-count"><b><?php ap_user_the_meta('__up_vote_received'); ?></b><?php _e('up', 'ap'); ?></span> <span class="ap-vote-count"><b><?php ap_user_the_meta('__down_vote_received'); ?></b><?php _e('down', 'ap'); ?></span> </div> <div class="col-md-6"> <span class="ap-about-vote-label"><?php printf(__('%d votes casted', 'ap'), ap_user_total_votes_casted()); ?></span> <?php $upVoteSentPercent=0; if(ap_user_total_votes_casted()>0) $upVoteSentPercent=ceil((ap_user_get_the_meta('__up_vote_casted')/ap_user_total_votes_casted())*100); ?> <span data-action="ap_chart" data-type="donut" data-peity='{ "fill": ["#9087FF", "#eeeeee"], "innerRadius": 20, "radius": 25 }'><?php echo $upVoteSentPercent; ?>/100</span> <span class="ap-vote-count"><b><?php ap_user_the_meta('__up_vote_casted'); ?></b><?php _e('up', 'ap'); ?></span> <span class="ap-vote-count"><b><?php ap_user_the_meta('__down_vote_casted'); ?></b><?php _e('down', 'ap'); ?></span> </div> </div> </div> </div>
hello, on /wp-content/plugins/anspress-question-answer/theme/default/user/about.php try to change the line 48 which is currently like this : <span data-action="ap_chart" data-type="donut" data-peity='{ "fill": ["#9087FF", "#eeeeee"], "innerRadius": 20, "radius": 25 }'><?php echo ceil((ap_user_get_the_meta('__up_vote_casted')/ap_user_total_votes_casted())*100); ?>/100</span> to <?php $upVotePercent=0; if(ap_user_total_votes_casted()>0) $upVotePercent=ceil((ap_user_get_the_meta('__up_vote_casted')/ap_user_total_votes_casted())*100); ?> <span data-action="ap_chart" data-type="donut" data-peity='{ "fill": ["#9087FF", "#eeeeee"], "innerRadius": 20, "radius": 25 }'><?php echo $upVotePercent; ?>/100</span>
Hello, You can easily translate AnsPress to your own language. Use the tool found here: poedit.net and open anspress-question-answer/languages/ap.pot Then translate it to your own language and save with proper name and you are done.
There is an option in AnsPress general option
I’m also getting the same issue. Title shows ANSPRESS_TITLE now.
Zoker use: Restrict Widgets for that.
Yes, question and answer are CPT. Just disable Disqus for question and answer CPT. Try this: add_filter( 'comments_template' , 'my_block_disqus', 1 ); function my_block_disqus($file) { if ( 'question' == get_post_type() || 'answer' == get_post_type() ) remove_filter('comments_template', 'dsq_comments_template'); return $file; }
Yes I am aware of this bug. Will be fixed soon. BTW: please use a proper title, this will be helpful to other having same issue.
Will add a filter to user menu.
Nothing will be lost, until you check “clear database” option. Last time I seen there was a JS error on your site which was causing this issue.