General help: Can it be used with User email address?

pamreed - June 11, 2009 - 04:32
Project:Contact Forms
Version:6.x-1.5
Component:Miscellaneous
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed
Description

Hi
I wondering is they away to use user profile emails with this module and site wide contact form or do I need to use Webform. I am trying to minimize duplicate entry of email address and any code. Here is more info to hopefully help understand what I am wanting. I created my users(email address and userid) and each have other profile info (using profile content). Next I created a several pages views, for example Our Staff, list profile information. Note I can get user email if necessary. I now like to get a contact form button/link next to each person using they user email. Do you have any ideas if this can be done? I really like the one on the your example site Athens County Public Libraries. Do you know how the button is being done?

Sorry if this is not the correct place to ask. I am just trying to see if I can use this module for what I like to do for it looks promising. Any help would be greatly appreciated.

Thanks
Pam

#1

behindthepage - June 13, 2009 - 06:06

Hi Pam,

Contact forms cannot do what you are wanting. It only affects the sitewide contact form.

Here are 2 ways that it could be done.

1. Each user already has a contact form which is generated by the core contact module. Usually it is only accessible by authenticated users. I had a look through the modules expecting to find one that would add a permission so that you could expose the user contact forms to anonymous users. I was very surprised not to find one. I am sure someone has done what you are wanting this way before so you may find some info by searching Drupal.org or with Google.

2. Instead of using the profile module use the Nodeprofile module for your user profiles. The advantage of using the Nodeprofile module is that it is based on CCK and therefore your User profiles are proper nodes so it can be accessed by views and other modules. Then you can create a view that lists all your users their details and a link to their user contact page. This sounds similar to what you have done.

I have just realised either way the key is exposing the user contact forms to anonymous users.
Search modules using the word "contact". Their is one called Node author contact you may be able to use it's permission system.

The buttons are normal links that have been formatted using css

THE LINK
<a href="/contact/Owen+Leonard%2C+Web+Developer" class="contact-form"> contact form</a>

THE CSS (the background image is the little envelope)
a.contact-form {
background-color : #8EACCE;
background-image : url(images/email.gif);
background-position : left;
background-repeat : no-repeat;
color : White;
font-size : 90%;
line-height : 2.6em;
padding : 2px 5px 2px 24px;
border : 1px outset #778899;
}

a.contact-form:active {
border : 1px inset #778899;
}

Regards
Geoff

#2

pamreed - June 14, 2009 - 02:57

Thanks for the information and quick response. I found other long posting on allowing anonymous users to access user contact form. It looks like they working on it for D7 and they are options D6. Also, thank very much for the code on the button.
Pam

#3

behindthepage - June 14, 2009 - 03:46

Hi Pam,

Your Welcome. The button code was ripped off er....... I mean an example from the Athens site.

Depending on the size of your site and budget you could get a custom module written to give you the features you want.

All the best with it.
Geoff

#4

behindthepage - October 2, 2009 - 19:49
Status:active» closed
 
 

Drupal is a registered trademark of Dries Buytaert.