Project:FAQ_Ask
Version:6.x-2.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:stenjo
Status:closed (fixed)

Issue Summary

Some people are using this as a Contact form and it of course has no field to enter your email address.

It'd also be nice to rig it so that when you do answer the question (ie post it to the site) the system sends the asker an email with a link to the website for them to go visit it for the answer. I'd rather NOT have the answer in the email so it drives them back to your site but maybe that can be set as an option in this module's preference.

thanks for listening!

Comments

#1

Assigned to:Anonymous» NancyDru

Please one issue per post.

1) I don't see how you could appropriate this module for that function. There is already a decent contact form. Without a really good use case, I am not inclined to consider this one.

2) I can see how this would be nice. I'll have to see if I can do it. Right now, once the question is selected to be answered, FAQ_Ask is out of the picture - it's up to FAQ then. I suspect this will be much easier in D6.

#2

Title:email address field» Notify Asker on answer

I can add a notification when an expert selects the question, but they may take their time to answer it and the asker could be directed back before the answer is posted. It's a small risk, but it exists nonetheless.

#3

If you don't do #1 (add a return email field), how can you achieve #2?

The thing I like about using FAQ ask is that the question and answer gets incorporated into the FAQs. I don't WANT people to use it as a simple contact form as I like the current contact functionality for that but if you put stuff like this on your site, users will use it (incorrectly). And with no email address listed, you have no way to get back to them to help them.

Many thanks.

#4

Oh, I see, you're allowing anonymous users to ask questions? I don't do that on my sites. That's a benefit of membership. I use the logged in user's email address.

Putting a field on the form is easy - figuring out where to store the address and how to clean it up is the hard part. Are you sure you want to encourage this by supporting it?

#5

lot's of people hate having to sign up for an account on every website they visit these days...I'd like to have some functionality to anon visitors....get their info bit by bit...earn their business....don't force them into 'membership' before doing anything.

Thanks for considering adding it.

#6

Status:active» postponed

I will get back to this when the D6 upgrade is finished. Then I'll have to maintain two branches...

#7

Just to update you. The D6 version is working correctly (at least in my tests) and is now in a beta release to be tested.

As part of that revision, the mail sending needed a major rewrite. That now establishes a platform for more easily doing this. So this feature will be available only in the 6.x version. Hopefully this will be done soon.

#8

Did this ever get implemented in 6.x? I would like this too - an email field so that we can notify a user when their question has been answered. I allow anonymous users to ask questions (with a badass captcha :) because we're an educational institution... and also because people hate logging in :)

#9

Marking #310161: additional fields as a duplicate.

#10

We'd like this too, and may be able to help with sponsorship if needed. We are a college within a university and we need to allow people to submit questions without being logged in. We're still on 5.x.

Meanwhile, we've edited the advice to users in Faq_ask to include a request for people to include their email addresses if they also want a direct response, promising not to post their email or identifying information with the answer.

#11

Version:5.x-1.0-beta2» 6.x-1.x-dev
Status:postponed» active

The module is working great in D6....any progress on implementing this feature?

#12

Status:active» postponed

There are only so many hours in a day and this is one of more than 20 modules I have.

#13

What about going the other way round and make a shortcut from the "Contact us" reply backend to the "Create FAQ" ? This way, after answering a support request, you can decide that this question is worthy to put in the FAQ. You would click a link, and ideally some of the FAQ creation form would be pre-filled with text from the support request / reply.

Obviously, this would be totally out of this module's scope..

EDIT: I noticed that there is no such a thing as a "support request reply backend", even though it would be useful to have. As a site maintainer I am supposed to reply to support requests done with the core contact form via email. This means, there is no easy way for other "experts" to see that I have already answered the request. I looked for other Drupal modules offering support tickets, but none of them made me happy.

Bottomline: It can be useful to integrate support requests and FAQ authoring into one workflow.

#14

This would be really great. Just to add an email textfield so the maintainer can notify the person with the question when the answer to his/her question is added/posted. I tried to add a cck field manually, but it didn't work out.

Cheers,
Danny

#15

This is very much needed

People constantluy asking questions need some sort of response thet their question has been answered or deleted

#16

subscribe

#17

???

#18

Version:6.x-1.x-dev» 6.x-2.x-dev
Assigned to:NancyDru» stenjo
Status:postponed» needs review

Hello good people!
I have created a patch that implements the Ask a question form + the option of notifying the asker when the question is published.
Please test the patch. It seems to be working on my testsites.

Do not use on live site!

/Sten

AttachmentSize
faq.module-asker-notify6.2.patch 20.93 KB

#19

OK. I have to admit it: I was unable to contain myself and have added another feature to the notify asker functionality. Now this integrates with the Simplenews module so that if it is installet, the administrator og faq_ask may select a newsletter that the anonymous asker will be added to when he/she submits a question.
This is a very nice feature I think to gather even more newsletter subscribers and stay in touch with the people using your services.
You need Simplenews 6.x-2.x or later for this to work.
Please try it out, but be careful when using on live sites.
The module with this patch is now running on http://parterapeutene.no/faq - a live site that I am managing.
If you have not applied a patch before, give me a hint and I'll be able to ship you the patched files for you.

/Sten

AttachmentSize
faq.module-asker-notify6.2-2.patch 20.33 KB

#20

Just looking at the patch, it looks pretty good. Please run it through the Coder module. I see at least one case where a translate is done with a capital "T." I also prefer no white space immediately following function statements.

Other than that, I would love to see others testing this, especially the Simplenews parts.

#21

Wouldn't it be wise to have the simplenews integration in a separate submodule? Or is that not necessary?

#22

I've now run the coder module on the changes and it now passes as it should do. New patch attached.

Considering how little code I needed to add for the Simplenews feature, I'd say the overhead of this being in a separate module to be very large. Strictly though, maybe it should be in a separate module. If the Simplenews module is not found - nothing will really happen. If it is found, all it does is call a function in the simplenews module to add the email address to the selected newsletter. The integration is very light and implemented with very little code as I said.

/Sten

AttachmentSize
faq.module-asker-notify6.2-3.patch 25.66 KB

#23

Nice. Will it also be possible to connect it with other email modules, such as campaignmonitor etc?
(I don't want to slow down the patch, I'm just asking)

#24

Have not considered that yet. Maybe that would be a good Idea?
Currently I've only added features I need for my site ;-)

How would you want that to work? (maybe better suggest that in a different thread).

#25

I am not actively working with Campaign Monitor at the moment, so I won't spend much time on this. Let's postpone this.

#26

One big problem with any email program is that an unanswered question is not published, so most of those programs just won't touch them.

Let's try this one and maybe we can generalize the solution later.

#27

subscribe

#28

I have enclosed a patched module here for download and use by anyone who whishes to try this out.
Known errors:

  1. A notification entry is created even if the e-mail field is empty. This causes no practical problem as it at most will generate an error in the log that the e-mail address was missing when a notification was created.
  2. Anyone able to ask a question must be given the create faq permission.
  3. When an expert is sent a notification that a question is waiting for them the title of the question is not included in the e-mail.
  4. Using the ask a question block form, the possibility to disable the user selecting taxonomy is not available. The taxonomy field will be available for anonymous users
  5. The Ask Faq form page (http://example.com/node/add/faq?ask=true) the Answer fileld is available for anyone with the ask a question permission

Would anyone be able to help me out fixing the latter problem? Seems like faq_ask module code function faq_ask_form_faq_node_form_alter() is run before the whole ask a question form is completely built, so my attempt to disable the taxonomy field and remove the answer field to anonymous users is not possible at the point of function calling because the fields are not added to the form yet. Must admit that I have not tried the original more general hook_form_alter() if this maybe is being called later than the specific hook_form_FORM_ID_alter() used in this patch. I see that this is specifically mentioned in the hook_form_FORM_ID_alter() documentation at http://api.drupal.org/api/function/hook_form_FORM_ID_alter/6.
On my site I need anonymous users to be able to post a question and have applied the following workaround for the second issue above: Given anonymous users the create faq permission. This displays the Create content menu item to be available to anonymous users as well, so I have disabled the Create content menu item totally. Not the best solution but a usable one for me anyway. Until we create a version 3.x of this module where the actual faq ask is based on a separate content type rather than on the faq content type this will probably not be fixed.

AttachmentSize
faq_ask_patched_module.tar_.gz 33.32 KB

#29

I have worked a little on the issues in the previous post and have managed to remove all issues from the patch apart from the need to enable create faq permission to anyone asking a question using the block form or the page form.
Enclosed is both a patch to the current version 6x-2.x-dev and also a patched module gzipped and tar'ed so that anyone not able to patch their files may test the module out.
The module is running on a live site I'm managing, so it should be fairly safe, but I would not recommend using this on a live site without testing it thoroughly using your own configurations first, unless you are able to debug modules your self.
Please test this out and let's fix bugs!

AttachmentSize
faq.module-asker-notify6.2-4.patch 26.36 KB
faq_ask-asker-notify6.2-4-patched.tar_.gz 28.74 KB

#30

Adding a screenshot of how the form looks for anonymous users when enabled.
Note that the Create content link is active for anonymous users. You can deactivate the create faq link in http://example.com/admin/build/menu-customize/navigation deselecting the faq submenu. This will however not remove the Create content link on the Navigation menu, but will remove the link on the create content page. To remove the Navigation menu all together, deselect the Create content menu item. All users will now have to use direct url's like http://example.com/node/add to create content.

AttachmentSize
faq_ask_a_question_form.png 70.86 KB

#31

subscribe

#32

subscribing

#33

For some reason when I try to unpack this module in comment 29 I get the tar file and can not unpack that, usually it all just unpacks, how is this packaged differently then a normal module? never had this problem on this site with unpacking anything before.

#34

PeaZip may help you out with this one: http://peazip.sourceforge.net/index.html
The file is TAR'ed and then GZipped. I think drupal.org renamed it to .tar_ for security reasons.
Maybe unzipping and then changing the extension from .tar_ to .tar and the use PeaZip to unpack the Tar file.

#35

I will try this in a few days, I'm quite under the weather to be installing something on the computer. Thank you for the prompt reply.

#36

The patch in #29 fixes the problem I reported in #651922: Error while entering "Ask FAQ question" form in panel pane. But in the panel where I include the faq_ask blok, the textarea of the text is too long or does not adjust to the pane. See the screenshot.

AttachmentSize
faq_ask_question_textarea.png 64.72 KB

#37

What Theme are you using?
Unable to recreate using Garland...

#38

Status:needs review» fixed

Patch now committed

#39

I'm using bluemarine, I adapted the Drupal 5 version to use it in Drupal 6.

#40

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

nobody click here