Been looking in issues queue and search for this one; no luck. Any way to add the user contact form tab/link to the member profile page/node without modifying template? If not, any alternative? Custom member profile node template?

And, thank you for this module!

Greta

Drupal 6.15
Content Profile 6.x-1.0-beta4

Comments

glass.dimly’s picture

Hi,

I used the following solution which I got from here:
http://codenewbie.com/forum/php/5639-drupal-contact-node-author.html

i think you would either have to achieve this through a custom node template, or a custom module. i don't think there's a cck type that would automatically make available the author's user id so you could create a contact link.

this would be the easiest way, i think.

1) in your theme directory, create a new file named: node-.tpl.php

i.e. if your content type was 'news_article', then it would be named: node-news_article.tpl.php

2) copy the contents of node.php in that file

3) add the following code where you want the contact link to be displayed:

PHP Code:
<?php print l(t('Contact Author'), 'user/'. $node->uid .'/contact'); ?>
there's probably many ways to accomplish this, but I don't know of one via the UI to do that..

glass.dimly’s picture

One more thing: if you don't want to mess with template files and you want Drupal UI-centered solution to modifying template files, try the module contemplate: http://drupal.org/project/contemplate

greta_drupal’s picture

My theme already uses a custom node template. However, I do not want it to appear in every reference with author name, but only on the Content Profile content type pages. So aside of creating a custom template for the Content Profile pages, I thought perhaps that I had overlooked a Content Profile module solution. (I do include the with my views.)

Thanks for the reply, though.