Add extra fields to guest book 1.7

Everything related to GBook PHP guestbook
Valerie
Posts: 3
Joined: Sun Nov 04, 2018 7:05 pm

Re: Add extra fields to guest book 1.7

Post 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
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Re: Add extra fields to guest book 1.7

Post 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.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Post Reply