I don't know how patches are supposed to be put in as I'm no developer myself, but I can see what this script is doing.
First, copy the file faq_ask.module to a new copy called faq_ask.module.orig
If you screw it up badly, you can delete your edited file and replace it with the .orig file by renaming it back to faq_ask.module
Now edit the faq_ask.module, which is located in your Drupal instance's module folder under in the "faq_ask" subfolder.
Where the script has a "-" in front of a line, remove that line (I commented them out by putting a // at the very beginning of the lines so I could undo if I screwed up just a little and didn't want to trash the whole thing).
Watch carefully. When you get down to the line with a "+" that's a line you add. The remaining code, with no + or - is just left as it is.
My Neanderthal technique does work. I manually installed this patch and my askers now get this message, "Your question has been submitted. It will appear in the FAQ listing as soon as it has been answered."
---------------
I do like the option of being able to use this message instead of the "to the left" message because my block is set visible only to experts who can answer the questions. This protects my child-oriented site from inappropriate questions being displayed to minors by the evil porn spammers. However, because the block is there for some members, the message telling people to look left is showing up. It's confusing to visitors because they can't see the queue of pending questions. So I, too, would like this feature added to this already wonderful module.
Thanks for all the hard work to help code-challenged folks like myself customize some really nice sites.
Comments
Comment #1
Sunshiney commentedNon-developer here. Where do I put this patch?
Comment #2
Kirsten commentedI don't know how patches are supposed to be put in as I'm no developer myself, but I can see what this script is doing.
First, copy the file faq_ask.module to a new copy called faq_ask.module.orig
If you screw it up badly, you can delete your edited file and replace it with the .orig file by renaming it back to faq_ask.module
Now edit the faq_ask.module, which is located in your Drupal instance's module folder under in the "faq_ask" subfolder.
Where the script has a "-" in front of a line, remove that line (I commented them out by putting a // at the very beginning of the lines so I could undo if I screwed up just a little and didn't want to trash the whole thing).
Watch carefully. When you get down to the line with a "+" that's a line you add. The remaining code, with no + or - is just left as it is.
My Neanderthal technique does work. I manually installed this patch and my askers now get this message, "Your question has been submitted. It will appear in the FAQ listing as soon as it has been answered."
---------------
I do like the option of being able to use this message instead of the "to the left" message because my block is set visible only to experts who can answer the questions. This protects my child-oriented site from inappropriate questions being displayed to minors by the evil porn spammers. However, because the block is there for some members, the message telling people to look left is showing up. It's confusing to visitors because they can't see the queue of pending questions. So I, too, would like this feature added to this already wonderful module.
Thanks for all the hard work to help code-challenged folks like myself customize some really nice sites.
Comment #3
nancydruAnd I was so proud of that code... But, alas, region names are not as static as they once were, so it's gone.
Committed to 6.x-2.x-dev.