Add a new number/integer field for this content type (require Number module, shipped with CCK): go to admin/content/node-type/NODETYPE/fields (D6) or admin/structure/types/manage/NODETYPE/fields (D7)
Select the format "Selected answer" for this field in the "Display fields" section: admin/content/node-type/NODETYPE/display (D6) or admin/structure/types/manage/NODETYPE/display (D7).
Go to the Q/A settings page (admin/settings/question_answer in D6 and admin/config/question_answer in D7) and select the content type/field name above.
That's all!
Question expiration
You can set the expiration time for each question. After this time, the reply with the most votes will be automatically selected as the answer.
Go to the Q/A content type, create a new field "duration"
Type: Integer (D7: List (Integer))
Widget: Select list
In the configure page, enter prefined time in second, for example (unlimited, 1 day, 7 days and 30 days):
0|No expiration 86400|1 day 604800|1 week 2592000|1 month
Select the format "Remaining time" for this field in the "Display fields" section: admin/content/node-type/NODETYPE/display (D6).
Go to the Q/A setting page, select this field.
Install VotingAPI module and another module, for example, vote_up_down (don't forget to enable "vud on comments").
Go to permissions page, allow anonymous to vote on comments.
question_answer
Installation
Question expiration
You can set the expiration time for each question. After this time, the reply with the most votes will be automatically selected as the answer.
0|No expiration
86400|1 day
604800|1 week
2592000|1 month
- 登录以发表评论
dashan 答复于 永久连接Vote Up/Down field
Vote Up/Down field 只需安装这个字段即可达到想要的投票功能。
- 登录以发表评论
dashan 答复于 永久连接