Hi all, I have added a new text filed in comments modules called as 'Designation'. So now I am having Name, Designation, Subject and Comments fields for commenting.
I am able to insert the new text filed 'Designation' into the comment table in DB.
But how to display it?
I have added print $designation in comment.tpl.php, but it is not displaying.
I have selected this field from the table in 'function comment_render' in comment.module.php.
Where else do i have to select it?
where should i declare it a variable? How to display it in comments?

I am using drupal 5.

Thanks in advance..

Comments

matslats’s picture

However if you have added a new field in the function which builds the comments form, you probably need to pre-render it in a preprocessing function.
In drupal 6 it is
http://api.drupal.org/api/function/template_preprocess_comment/6
but something different in Drupal 5

deepti’s picture

Yes thanks matslats for that, but i already saw this earlier for Drupal 6 and i wanted in Drupal 5. That is why I specifically mentioned it as Drupal 5 in my question.
I tried finding those variables in Drupal 5 but I could not find. Please let me know where to declare the variables so that I can call this variable in comment.tpl.php

Thanks for the response