Page 2 of 2

Re: Add extra fields to guest book 1.7

Posted: Sun Nov 04, 2018 10:17 pm
by Valerie
Everything works well except one thing for me.... it is not showing the name of the extra field on the left when displaying the comments. Their response is showing, just no title, like ie... Name: Paul, etc. -- it is only showing Paul

I did add the lines to the language-inc. php file and changed each one to show my question. What am I missing to make that show up? (Also there was no ?> at the end of the file and I added it.. no difference though)


Open the file language.inc.php
Add the following code before the ?> at the end of the file:
CODE: SELECT ALL

/* Language strings for modifications by Henrie */
$lang['hl06_t01']='<b>Your extra field 1:</b>'; // used for field name on sign page
$lang['hl06_t02']='Extra field 1:'; // used for field name in E-mail and guestbook page
$lang['hl06_e01']='Please enter your name extra field 1:';


Thank you

Re: Add extra fields to guest book 1.7

Posted: Mon Nov 05, 2018 8:00 pm
by Klemen
You probably need to modify the comments template (templates/default/comments.php) to include the new text in the HTML?

Whatever you do, make 101% sure you backup all the files, including any existing entries (entries.txt), because messing with the data file structure can cause display errors if not done perfectly.