Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+3 votes
in Plugins by
I've been using EQF to add the ability to attach files to questions. This works fine. But I want to extend this functionality to answers and comments as well. Like a file upload button below the editor box for answers and comments. I've been trying for well over a month now to get this to work, but I must admit there are to many difficulties (for me).

Anyone else who can see the benefits from this functionality, and who wants to take up the challenge?

1 Answer

0 votes
Use the sceditor plugin and activate the edtior for all fields (questions, answers, comments): http://www.q2apro.com/plugins/sceditor

Check demo here: http://www.q2apro.com/forum/119/new-premium-plugin-sceditor-released-to-the-q2a-community

You find an image upload button below each field.

A few questions to your plugin:

1) can I attach word and pdf to answers/comments or is it only images?
2) if an answer/comment with an attachment is edited by the author, can he/she remove or change the attachment?
3) how are attachments to answers/comments saved in the database?
1) currently it is restricted to images. However, this can be changed in a future version.
2) The attachment is "inline", within the editor. Click on the image, hitting DEL will remove it.
3) As blobs. See your mysql table qa_blobs for details.
I would need requirements 1 + 2 for it to be interesting :)
Hi brinch, I have implemented the file upload feature, see update here: http://www.question2answer.org/qa/36413/new-premium-plugin-sceditor-here-we-go

And yes, the one who is editing the post (author or admin etc.) can change the "attachement", in other words he can remove the image/file and add a new one.