Clairity please

jaskegreen - March 27, 2007 - 20:22
Project:Advanced Contact
Version:5.x-1.x-dev
Component:Documentation
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed
Description

I'm a bit confused as to how to use this module. The readme file is blank and the example in the help section is a little vague. Could you help fill in the missing blanks for me?

Thanks,
Jason

#1

neclimdul - March 28, 2007 - 14:03

I will

#2

jaskegreen - March 28, 2007 - 21:23

Huh? Again vague. How and when will this happen?

#3

jaskegreen - March 28, 2007 - 23:25

Huh? Again vague. How and when will this happen?

#4

neclimdul - March 29, 2007 - 00:19

That was an uncaffeinated attempt at saying I saw your issue before my work day started. Implying that while I couldn't look at it then I'd take a look later. Sorry it wasn't better.

First, I haven't made a full module because of points like this. The module is lacking some documentation and other features. Since you asked though I'll respond here and then fill in the README.

Here's what the help page provided by the module says:

This module provides extra functionality to the the default drupal contact module.
With it you can:

  • Pass "category" as a GET arguement to set the category of the contact. This coresponds directly to the text of the category.
  • Pass "subject" as a GET arguement to set the subject of the contact form.

An example would be:

l('Provide feedback about our new frontpage', 'contact', NULL, 'category=Website feedback&subject=New frontpage feedback')

With this module the listed code would link to a page("example.com/contact?category=Website feedback&subject=New frontpage feedback") that has the category "Website feedback" selected and hidden and the subject filled in with "New frontpage feedback". So when the form is filled out and submitted all the things that would happen if that form where normally filled out and that category selected will happen.

The reason I release this module was because I commonly found the need to link to specific types of feedback forms without breaking or drastically changing the default contact form provided by Drupal. It doesn't provide a lot of flash but I hope you find it helpful.

James

#5

jaskegreen - March 29, 2007 - 15:57

Thank you, thank you, thank you for making this module. It is exactly what I needed. That's why I've kept prodding you for more. Sorry if I came across a little brash. I guess you can call my last post an over-caffeinated response. : - ) I can't believe someone else didn't need this before.

Again, thank you and good work,
Jason

#6

jaskegreen - March 30, 2007 - 19:44

Sorry to drag this on, but I am getting page errors. I have used your example and modified it with my info but coming up with Not Found errors.

I have also created a link to the contact page with code as follows:
?q=contact?category=LifeDesign&subject=Apologetics Conference
This is resulting in errors as well.

I am using tinyMCE. Is this causing problems? Does the input format matter? As I can tell, there are no options to configure anything on this module. What do I need to do to get this working?

Thanks,
Jason

#7

neclimdul - April 1, 2007 - 07:27

That is because both of my url assumed clean urls. the drupal l() and url() functions take care of figuring out if you have clean urls on automatically so are useful for this.

The problem is you have two "?" in you GET arguements.
?q=contact?category=LifeDesign&subject=Apologetics Conference

& separates GET variables so you should have the following url:
?q=contact&category=LifeDesign&subject=Apologetics Conference

#8

jaskegreen - April 4, 2007 - 08:04

It has all come together now. Thank you for sticking with me on this. I'm still learning about Drupal even though I've been using it for a long time. Also, thanks for making this module, it's going to be very helpful.

Thank you very much,
Jason

#9

jaskegreen - April 18, 2007 - 00:11
Status:active» closed

#10

mrlovecraft - June 17, 2008 - 16:36

How could I send as subject the title of the page that I'm in?

#11

asak - August 16, 2008 - 06:33

mrlovecraft: use the tokenize.module to insert the token ([nid] or anything elese) as part of the link in a cck field.

#12

tanyi - September 1, 2008 - 19:39

Were you able to get the tokenize module to do this?

#13

asak - September 2, 2008 - 19:44

Yes. I'm now using this module with tokenize and CCK to create an automaticlly generated link to a contact form, using a defined catagory and setting the subject of the form to "Regarding: Node-Title-Goes-Here".

This rocks.

#14

neclimdul - September 2, 2008 - 20:34

That is awesome! I'd never thought of using the module that way. Do you think you could open up maybe a forum post discussing how you did it? Maybe we will get a recipe handbook page built or something as I'm sure that would be a handy thing for people to use.

Thanks!

#15

tanyi - September 2, 2008 - 22:19

I agree with your suggestion!

#16

asak - September 4, 2008 - 20:17

Check out This HowTo page.

#17

Onopoc - October 26, 2008 - 16:32

I'm contributing a README.txt file at: http://drupal.org/node/326340

It is base on above comments. Hope this help.

 
 

Drupal is a registered trademark of Dries Buytaert.