Greetings,

If you visit our site http://help.untci.org/, you find that all links – individual question link, ask a question, vote, etc. ALL simply refresh the page.

Help 🙂

I want to setup the Anspress search widget on my homepage, while the main Anspress section is displayed further in. The nice suggested questions drop down that appears on the main Anspress page doesn’t display with the widget. Is there a way to enable to enable the search scripts to display sitewide, or on other pages other than the main Anspress section?

Hi,

As I have told you, I have a separate database of questions, from which I am importing contents to AnsPress.

My Question-Database has following relevant columns –

	Question (Text)

	Option1 (Text)

	Option2 (Text)

	Option3 (Text)

	Option4 (Text)

	isOption1Correct (0 or 1)

	isOption2Correct (0 or 1)

	isOption3Correct (0 or 1)

	isOption4Correct (0 or 1)

At present (in my localhost), I am storing all of the above info into “AnsPress Question Content”, and these are separated by using “|||” as separator, in the following manner –

Question|||Option1|||Option2|||Option3|||Option4|||0000

…and then while viewing the Question in Anspress, I am exploding the whole content with the mentioned separator, and then assigning relevant divs on client-side (by overriding your default theme).

But, before going live, I wanted to finalize, what should I use as a separator?

I am using separator, in place of normal method like one would suggest –

Question
<br>A. Option1
<br>B. Option2
<br>C. Option3
<br>D. Option4
<br>Correct Answer

Because, in your pre-release version, I successfully modified AnsPress, with my custom onclick function, which was used just to check weather or not user answered this multiple choice question correctly (if its correct answer is already stored in database), with some other custom functions. Basically I modified AnsPress into additional Quiz portal. But, since AnsPress has evolved a lot since then, I will have to re-create my functions from scratch. and I hope I will do that eventually.

But, to get onclick even on options, I will have to assign Questions and Options to different divs and also read their respective isCorrect values (0 or 1).

One way to do this is by adding some separator like I am using “|||” so far.

Another way is I add relevant div info for each element into the database itself. This will relative increase my Db size, because in this case I will have to store each option’s iscorrect value as separate hidden input type.

One more way I could think of, was to use short-codes to my Question-Id, and display the question content directly from my original Question-Database. But, this will cause problems if user search Question from AnsPress. (So, I had to drop this Idea).

Lastly why I am sticking to my custom Question-Database – Its because it’s currently serving in my custom made Quiz program (GUI of which, is nowhere near your Themes), and all the fellow medicos come to my site, just for the quiz (acc. to google analytics, ~5,000 visits in past 30 days to the quizzes themselves). My users are Not interested in simple Q&A participation right now. To engage them here, I will have to customize Quiz in Anspress. It’s a very long and hard process for me, but so was understanding PHP and AnsPress code. So I think it’s worth trying.

My question to you is relatively simple, which approach/separator should I use to insert My multiple choice questions into AnsPress Database?

(Sorry for the long post, but I think it was necessary to make you understand my situation correctly)
Regards,
Dr. Atul

Hi Rahul,

one last question: is it possible to set the user pages example.com/questions/user/… to “noindex,follow” in the head-area?

I don’t want these pages in google’s index and google itself recommends besides the use of robots.txt to set meta name robots to noindex to prevent from indexing.

Maybe with a if-condition in my themes header.php?

I do similiar for WordPress pagination and search results:

<?php if (is_paged() or is_search()) { ?>
<meta name="robots" content="noindex,follow" />
<?php } ?>

Kind regards,
Manuel

Hi Rahul,

the permalink structure is fine, but in my case i wonder if it is possible to add the .html extension to the permalinks for questions?

Maybe hardcoded in the plugin and not as feature, if no one else is interested in that possibility.

Kind regards,
Manuel

Hi Rahul,

is it possible to automaticly add the rel=”nofollow” attribute to each link in questions, answers and comments?

This could prevent a lot of seo spam.

Kind regards,
Manuel

Hi,

I think there should be a Read-only mode, using which posting new questions/answers/comments can be disabled.
(can be used when in maintenance mode)

Also, it would be good, if there are following settings for “Ask New Question”
– Option to disable – ask new question temporarily
– and, limit who can ask new question by user points

I know these features may not be useful for most of the Anspress-Users. But these would be one the most useful features in my case.

What do you think Rahul?

Regards,
Dr. Atul

Hi Rahul,

I am just testing around with your AnsPress plugin and really like it.

But I have some trouble with the social login form. It does not appear and I don’t know why.

I thought it was a jquery problem, but the problem still exists even after I have updated my WordPress. I have also compared your jquery version here with mine and there are no differences. And I have also checked if it works, if I take out the jquery versions of my theme. Also does not work.

Do you have any ideas?

Manuel

Hi Rahul,

I was thinking if there is a way to sync both local and remote wordpress.

As I had earlier mailed you, I am looping through external database (which contains multiple choice questions with answers), to create AnsPress Questions (custom wordpress post). So it would be easier for me to create them on localhost and then somehow send these Questions on live site.

(sorry for the off-topic question)

Regards,
Atul

Hello! Thank you for a great plugin!

But I have one question: how can I make WP-author user allow to moderate questions?

Now only WP-administrator can do it.