Closed (fixed)
Project:
Anonymous Contact form
Version:
6.x-1.1
Component:
Miscellaneous
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
2 Sep 2010 at 18:22 UTC
Updated:
23 Nov 2011 at 19:20 UTC
Hello,
is any chance to have a link to users contact form from pages generated via Views? I added User Id field and use the following code
<a href="/contact_form/[uid]" title="Contact the author">contact</a>
to rewrite the output of this field, but content authors see this link too, which is no good.
Please advice.
Cheers
Comments
Comment #1
jenyum commentedHave you tried outputting the field as a link instead of rewriting the output? First, make sure you have uid as one of your fields (set to not display) then output the contact field (I just use the username for this) as a link with this link path:
user/[uid]/contact
Haven't tried it with this module yet, but it should work. Let me know if it works for you and I'll mark this closed.
Comment #2
itserich commentedThanks this seems to work great for me!
For any novice users, set up the UID as a field in Views and then it can be used as a replacement token for fields lower down on the field list.
I chose UID and then User Name, changing the output to field as link: contact_form/[uid]
Note @ jenyum the ReadMe states the link path would be user/[uid]/contact_form
Only tried one email so far but thanks it worked! I am also surprised it was not already a module, seems very useful.
Comment #3
Thomas_Zahreddin commentedseems fixed