On my comments page(s) I have an additional field in my form called location. When a new user who is not logged in fills in a comment they may complete the non-required field ‘location’ and it displays this field ok. You can see this in action here, except I manually changed the database to backdate these comments and therefore their location too.
However when the user is logged in the additional field is not part of the displayed fields, only the comments field is displayed. How, or where, do I include this additional field in my comments.php file so that it either displays in the form or is automatically recognised when the user is logged in and therefore displays their location against their comment?
Your help would be very much appreciated.
Regards
The topic ‘Display additional field automatically in comments form’ is closed to new replies.
(@demonboy)
17 years, 4 months ago
Hi all,
On my comments page(s) I have an additional field in my form called location. When a new user who is not logged in fills in a comment they may complete the non-required field ‘location’ and it displays this field ok. You can see this in action here, except I manually changed the database to backdate these comments and therefore their location too.
However when the user is logged in the additional field is not part of the displayed fields, only the comments field is displayed. How, or where, do I include this additional field in my comments.php file so that it either displays in the form or is automatically recognised when the user is logged in and therefore displays their location against their comment?
Your help would be very much appreciated.
Regards