Help with small modification to v1.6 script

Dr. GBooky is here to help you with your guestbook problems ...
Post Reply
puniksem
Posts: 47
Joined: Thu Nov 01, 2007 12:25 pm

Help with small modification to v1.6 script

Post by puniksem »

Version of script: 1.6 (best yet)

I have a question about the small modification of the gbook.php script.

Where the comments section of the guestbook contains the word 'Comments;' In version 1.5 I modified it to say {username} said...

I found line 524 in v1.6 which displays the (T16) comment but have failed to work out how to modify the below code to include the users name before t16.

<td class="upper" style="width:65%"><b>'.$lang['t16'].'</b></td>

Do I need to add another variable to $name to display the username before the t16 comment?

Can you help?

Thanks in advance for any help with this.
World's shortest poem: We, see.
Henrie
Posts: 1095
Joined: Sun Aug 14, 2005 8:57 pm

Post by Henrie »

Line 524 is the entry printed when you are looking at a private message.

Is this what you are trying to do?

Line 960 (GBook v1.6), replace

Code: Select all

<td class="upper" style="width:65%"><b>'.$lang['t16'].'</b></td>
with

Code: Select all

<td class="upper" style="width:65%"><b>'.$name.' '.$lang['t16'].'</b></td>
And line 524 would be changed to

Code: Select all

<td class="upper" style="width:65%"><b>'.$name.' '.$lang['t16'].'</b></td>
Greetings,
Henrie
I do not monitor the Gbook forums regularly anymore since I do not use the Gbook script myself anymore for a long time. But it helped me a lot in learning to understand php.
puniksem
Posts: 47
Joined: Thu Nov 01, 2007 12:25 pm

Thank you thank you thank you

Post by puniksem »

Thank you for your reply, I've been banging my head about this one most of the day, I had guessed that the code was correct what I was inserting, but now know that line 524 was indeed the hidden reply and not the public view (line 960).

I'm so glad that you cleared this little puzzler for me, I might have eventually gone over the entire code and seen the error of my ways, but you've saved me much time and frustration.

For that I thank you.

PHPJunkyard ROCKS!!!!!! :D
World's shortest poem: We, see.
Post Reply