It would be nice if we could get this to integrate well with advanced forum. For example, having a section where people can post questions and voting/selecting answer buttons.

Comments

a.ross’s picture

I will probably create a patch for this since I need this feature, are you willing to include this feature?

jcisio’s picture

It depends on how the patch is. But in general, I'm open ;-)

a.ross’s picture

Well, it already "works". But what I'm thinking of, is placing an option in Advanced Forum's settings, where you can select which forum regions (General discussion etc.) have question/answer enabled. So not ALL forum type nodes will be question/answer. It allows for creating a FAQ section in a forum. Does that sound interesting?

jcisio’s picture

Yes it sounds interesting. For it to be extensible, I think a hook mechanism can be used. Like hook_question_answer_enable($nid) (or hook_qa_enable in short, as the "qa" namespace is not used now ;-) ) that returns FALSE if we don't want Q/A on that node.

a.ross’s picture

Are you thinking of moving question_answer to qa? Anyway, I will see what I can come up with in the coming days.

jcisio’s picture

Are you thinking of moving question_answer to qa?

No, but such pratice is not rare, like the cck project is in fact shipped with a few modules that are not "cck" but content...

a.ross’s picture

I have done some research, and full integration consists of a few parts. One is integration with the core Forums module, which handles the forum structure. I'm working on that now. Another is making sure the css classes are applied to Advanced Forum (which uses Views). Perhaps there are others, but as far as I can tell these two are the most important.

As for a hook, this can be implemented separately from Forums integration. It should still work when forums aren't enabled. Maybe we can separate this issue in parts. For now, I'll make sure Forum integration works.

jcisio’s picture

I don't think we need many CSS stuffs. A minimal CSS is enough.

About the hook, I've just gone ahead and create this issue #1203694: Provide a hook_question_answer_enable() to limit Q/A feature to only a certain number of nodes.