Page 1 of 1

Help with small modification to v1.6 script

Posted: Sun Jul 12, 2009 5:32 pm
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.

Posted: Sun Jul 12, 2009 10:26 pm
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

Thank you thank you thank you

Posted: Mon Jul 13, 2009 12:05 am
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