Closed (fixed)
Project:
Drupal core
Version:
4.7.3
Component:
contact.module
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
16 Dec 2005 at 06:02 UTC
Updated:
18 Oct 2006 at 15:30 UTC
Jump to comment: Most recent file
Comments
Comment #1
merlinofchaos commented+1 for the idea
Comment #2
Crell commentedI would probably have called it something like "Default to contactable" rather than "opt out", but this works too.
Code looks good, applies cleanly against CVS HEAD, works as advertised, and does something very very good.
+1, ready to commit.
Comment #3
dries commentedI think the description could use some work. Can't we use something; 'enable the contact form for new users' or something? Also, please don't use tabs.
Comment #4
Steve Dondley commentedDon't know what's up with my text editor. I have it set to use spaces instead of tabs.
Anyway, here's a revised patch per Dries' suggestions. I also forgot to mention that this patch will not actually work until the patch at http://drupal.org/node/41351 is applied to HEAD.
Comment #5
Steve Dondley commentedActually, strike that last sentence. This patch includes the change to the parameter.
Comment #6
Steve Dondley commentedHere's another revision that tweaks the help text some more.
This patch also adds some advisory language (seen only when the opt out feature is turned on) to users sending an email to other users "that the sending of unsolicited, commercial e-mail to other members of this site may be illegal in some countries". Thanks to osinet over in chat for pointing this out.
Comment #7
moshe weitzman commentedi don't think we need to advise people of things that may be illegal. writing slander is illegal too. and so on.
further, that sort of message is best ouput through drupal_set_message() not in the page body directly.
Comment #8
drewish commentedI'm all for this idea, I'll take a look at the patch when I get a minute.
Comment #9
Steve Dondley commentedRemoved advisory about commercial spam.
Comment #10
Crell commentedWell as long as we're nitpicking text... :-)
Functionality looks good, but it would probably be clearer to say "Enable personal contact forms for new users by default" (to make it clear that we're talking about a default setting, not that no one can contact anyone without this checked). Also, the description text should then be prefixed with "If set,", or otherwise clarified.
Comment #11
Steve Dondley commentedComment #12
Steve Dondley commentedDoes not apply cleanly.
Comment #13
Zen commentedSteve's patch re-rolled with some text fixes. Also changed the ifs to elseifs.
Thanks,
-K
Comment #14
Zen commentedForgot to mention: #13 changes the default *admin* setting to 1 as opposed to #9 which was 0. The admin can opt-out as well :) #13 also initialises $edit['contact'] to avoid a PHP notice later on.
-K
Comment #15
dries commentedCommitted to CVS HEAD. Thanks guys!
Comment #16
(not verified) commentedComment #17
robert castelo commentedHere's a module that takes care of this if you need the feature now.
Put this in a 'contact_default' directory in your modules directory.
Comment #18
sym commentedWas this removed? I can't see it in 4.7.3 at all now...