I want to change some JS for AnsPress, how do I edit main.min.js? What is it compiled from? Are there original scripts (not minified) which I can edit?

Hi!

I have discovered a problem when you disable voting for questions there is a run-time error in AnsPress main.min.js.

There is a part of code which gives an error:

render: function(){
var b=this.$el.find("[ap-vote]").attr("ap-vote");
return this.model.set("vote", a.parseJSON(b), { silent: !0 }),this
}

Using a debugger i’ve figured out that specified element cannot be found which leads to variable ‘b’ become ‘undefined’. After this next line crashes because ‘undefined’ cannot be parsed as JSON.

Apparently, this problem leads to other problems with UI scripts: comments and comment form on answers stop opening.

I tried this on clean AnsPress with my own website template but with no modified AnsPress scripts or templated. AnsPress installed from WP, latest version.

Please, suggest a proper workaround, because I need to disable voting on questions.

Hello,

This plugin is great and everything so far is working as expected with the exception of being able to leave comments anonymously. I saw someone else asked about this a year or two ago, but nothing recently with regards to whether we can allow comments on answers from anonymous users.

I’ve tried all of the various settings within the plugin and within WordPress as well and nothing fixes the red error box appearing “Unable to post comment”. Only when I am logged-in as admin of my website, can I post a comment.

Thanks

When I upgrade from v3 to v4, I lose all my questions and answers. How can I update without losing any content?

Hi, I added the plugin on my website. I could not find how I can manage the questions like an admin page. Also, I set up everything English after clicking the link on my website the page is translated Turkish. I could not find how I can upload the themes on my website as well.

Questions

I have installed anspress but it doesn’t look anything like the demo. I have tried it on different themes including the default theme but it looks the same. This causes a lot of white space between questions. the search and ask question on top of the page are not inline.

Hi Rahul. I have a little translation problem. How can I change this section? I am going to change but i can not find the file.

Thanks in advance for help.

I wish to import some custom set of questions/answers to my AnsPress website. I have a script which can parse my source of data. How do I create new questions programmatically from this script?