Hi there!
I´ve tryed in teh past to modify the comment module... with weird and terrifying results.
So, I´m not able to do it again without and help from you my dear fellows ;-)

I want to know if there´s a way to get rid of the "homepage" field in the comment form.
I want annonymous users to be able if they want to insert their email addresses, but I don´t want to ask them for their homepage, nor webpage...
Just name, email, title (optional) and comment.

Is there a way to get rid of the "preview button"?

Thanks in advance!!!

Rosamunda

Comments

Rosamunda’s picture

At the #drupal-support IRC channel I´ve solved this issue, thanks to the good help of HEINE.
Just in case anyone wonders how to solve this... he has pointed me out this page, where he has resolved easily the problem.

For the record, Thanks HEINE!!

Rosamunda
Buenos Aires | Argentina
www.ligadelconsorcista.org

clickdeveloper’s picture

Could you write how to get rid of the Homepage field. Unfortunately, the link to the solution does not work.

Rosamunda’s picture

This is what you got to do:

In template.php

<?php
function phptemplate_comment_form($form) {
   return _phptemplate_callback('comment-form', array('form' => $form));
}

?>

And create a file called comment-form.tpl.php, and put this into that file:

<?php
$form['homepage']['#type'] = 'value';
print form_render($form);
?>

And that´s it.

Rosamunda :-)

clickdeveloper’s picture

Drupal 4.6 displays "Fatal error: Call to undefined function: form_render() in comment-form.tpl.php on line 3" when I am trying to use this. I guess this will work for newer versions. Any recommendations for Drupal 4.6?