How can I allow anonymous users access to a members personal contact forms? I know theirs a ton of forum posts on this but i cant make head or tails of any of them!

Am I right in thinking the only solution is to patch Drupal?

I tried this patch but it didn't work, however Ive never patched before so might have done it wrong;
http://drupal.org/node/328214

Is there an official list of patches anywhere or do I just need to browse the forums?

Just out of curiosity, if a patch just makes changes to one file, why cant I download a patched version of the target file?

Im surprised the ability to allow anonymous users access to a members personal contact forms doesn't come as standard. Is there a common work around? Im pulling my hair out over here!
Thanks a lot.

Comments

Imaaxa-Cory’s picture

  • Enable the contact module in the Site building/ Modules: under 'core'
  • Under User management/ Permissions: contact module/ access site-wide contact form: Put a check under 'anonymous user' column
  • Build a view that lists all of the users and rewrite the output as a link that goes to: www.yoursite.com/user/'uid'/contact

This will give anonymous users the ability to use the site wide contact forms.

Step 3 is how ever you want to do it. The main thing is to get the site address with /user/ followed by the id of the person being contacted, ending with /contact.
Also each user has to have "Personal contact form" checked under "Contact Settings" in their user accounts. Alt to that is to modify the "users" table and change every "signature_format" = to 1. But users can un-check the box if they want when they edit their profile information.

Hope that helps

jdln’s picture

Ive done everything except rewrite the output of the view.

I have a user called 'test'. Their profile is at this url;
http://localhost/sitename/users/test

If I type in this url, i get a page not found message;
http://localhost/sitename/users/test/contact

Have I done something wrong?
Thanks

Imaaxa-Cory’s picture

Instead of the user name you have to use the id of the users.

antmanvolpe’s picture

I have read through several posts with various patches for this issue with not success.

I downloaded Drupal 7 alpha 3 and sure enough there is an option under permissions to allow anonymous users to access the personal contact forms.

As for Drupal 6 it looks as if there have been a series of patches made available for the various releases. According to the last post in this thread (http://drupal.org/node/328214) the patch was tweaked to work with 6.15 because the update broke the functionality of the patch. I am running 6.16, and as such I am assuming that 6.16 rendered the patch unusable as well.

Did 6.16 break the patch? Is there another work around. I can't get the patch to work at all.

I am designing a site for a school and it is a desired feature that parents and prospective parents (private school) be able to contact teachers through the website without having to register for an account.

antmanvolpe’s picture

Downgraded to Drupal 6.15 and applied the patch on the post 20 of the thread listed in my original post. Emptied the cache and set the new persmission for anonymous users and it worked.

I think this confirms that the patch does not work on 6.16. That being said I have no idea why. Anyone who can offer help would be greatly appreciated.

Chad_Dupuis’s picture

I currently have the patch in - http://drupal.org/node/328214 - working under 6.16. You are correct in that the other patch is broken under 6.16...

jdln’s picture

Im confused. Which is the patch for the most recent version of drupal?

It looks like you've both linked to the same thread and post number 20 is the most recent version. This didnt work for me but i havnt patched before.

Thanks

jdln’s picture

Anyone? Thanks

jdln’s picture

Please!

Chad_Dupuis’s picture

I'm not able to attach files to comments it seems, so I've created a case here - http://drupal.org/node/773142 with all of my files. It should get you going.....

jdln’s picture

Thanks so much.

gold’s picture

I had this problem too. Couldn't be bothered with all the patch based options out there though. I've just contributed this;

http://drupal.org/project/anonymous_contact

It fills my need. It could use some extra features though. I don't have the time at the moment to add these, but am happy to accept patches. If anyone would like to actively contribute I'm happy to offer co-maintainer access also.

--
Regards
Gold
Drupal Code Monkey