I can get the form to display in my sidebar but it doesn't send an email. It also doesn't show a confirmation that an email was sent. It just redirects to Home page after "send." I tried both methods above. Three things i have a question about. In both methods it seems that you are saying to add field "(author) User: E-mail", but then what is the purpose of the custom email field? This could be where I'm messing up. I create the email field in my user profile and populate it but it doesn't seem that its never called on. Second, when creating the block what do i select to "show"? I'm assuming i select the content that i want the block to be present. in my case its classified ads which are nodes. Third, contextual filter. Properties of Content: NID...do i just use what is default?
Backgroud of what I'm trying to do. I have a view that displays a list of ads. Users click on an ad which takes them to the main full ad/node. From here i want users to be able to contact the seller referencing the ad they are viewing. IOW I would like the seller/author to receive an email that has the comment/question plus the ad/node title included. I like your module because it appears that if i can get it to work none of the users will have to leave the page/ad/node to send the seller a message. I also would like no redirect. The visitor will stay on the ad/node.
I've tried all the "contact" modules I could find and they all come up short on what i need. Your module is the closest to what I want.
Thank you so much for any assistance. This is the final leg of my project and it's your module that i need. I'm willing to pay for any extensive customization.
Mark
Comment | File | Size | Author |
---|---|---|---|
#11 | views_contact_form-2144153-11.patch | 1.75 KB | sgabe |
Comments
Comment #1
System Lord CreditAttribution: System Lord commentedComment #2
System Lord CreditAttribution: System Lord commentedComment #3
matthieu_collet CreditAttribution: matthieu_collet commentedhello Mark
I have exactly the same problems. did you find an issue ?
thanks
Comment #4
System Lord CreditAttribution: System Lord commentedI'm using /project/privatemsg. I like it b/c it takes email completely out of the equation. The "Send author a message" takes the user away from the page/ad, but once submitted it returns. It also prepopulates the "Subject" field, which is ideal.
Comment #5
matthieu_collet CreditAttribution: matthieu_collet commentedgood idea. in my case I use "contact form on node", wich also prepopulates the subject field
contact_form_on_node
Comment #6
System Lord CreditAttribution: System Lord commentedYes, i reviewed that module and like it. It will be my fall-back if privatemsg fails testing phase.
Comment #7
PolHi there,
Did you succeeded to understand how the module works ?
Comment #8
matthieu_collet CreditAttribution: matthieu_collet commentedno, the other was simpler, sorry
Comment #9
PolComment #11
sgabe CreditAttribution: sgabe commentedI recently ran into the same issue:
#2146119: 'Save' button appears on contact form seems to be a duplicate of this.
I did some investigation and found that the culprit is the
view_form()
function which should not be overridden (at least I did not see this anywhere in the docs), instead the module should override therender()
function.The attached patch removes the
view_form()
function and implementsrender()
instead.Comment #12
PolAmazing ! Nice find, I wasn't able to isolate the problem.
I will try the patch tonight and if everything goes well, commit it and release a new version too.
For the record, I used
views_form()
because someone on IRC (dawehner or berdir, I don't remember) told me to use it.Anyway, thanks a lot !
Comment #13
balajidharma#2144153-11: Not functioning patch not working, display empty views
Comment #14
balajidharmaI changed render function of @sgabe patch
views_contact_form_handler.inc
Comment #15
sgabe CreditAttribution: sgabe commentedAnd how are you displaying the contact form without these lines?
Comment #16
balajidharma@sgabe your patch is working fine. I selected both the options in views (Format views contact form and Link this field as contact form in field configuration). Sorry for this mistake.
Comment #17
balajidharmaComment #18
PolCould you please upgrade to dev version, I just committed a fix for this and a bunch of other things.
Commit: http://cgit.drupalcode.org/views_contact_form/commit/?id=62d37ae
Comment #19
Pol