Page 1 of 1
Removing the, "Back To" link so that it does not d
Posted: Sun Mar 09, 2008 4:40 pm
by christmanrd
Script URL:
http://www.christmanfamily.net/guestbook.php
Version of script:1.6
Hosting company:Hosting
URL of phpinfo.php:
http://www.christmanfamily.net/guestbook
URL of session_test.php:
http://www.christmanfamily.net/guestbook
What terms did you try when SEARCHING for a solution:all
Write your message below:
I have the gbook.php opening within an iFrame on my website. I do not need the "Back To" link to be displayed. There is no need for it since, it is in an iFrame and my menu's are available.
Thank you
Dave
Posted: Sun Mar 09, 2008 6:46 pm
by Henrie
Hello Dave,
Find lines 1084,1085,1086 (GBook version 1.6):
Code: Select all
<p style="text-align:center"><a href="'.$settings['website_url'].'">'.$lang['t61'].' '.$settings['website_title'].'</a>
| <a href="gbook.php">'.$lang['t60'].'</a>
| <a href="gbook.php?a=sign">'.$lang['t48'].'</a></p>
and change it to:
Code: Select all
<p style="text-align:center">
<a href="gbook.php">'.$lang['t60'].'</a>
| <a href="gbook.php?a=sign">'.$lang['t48'].'</a></p>
Greetings,
Henrie
Posted: Sun Mar 09, 2008 7:01 pm
by christmanrd
Henrie
That's great and I really appreciate it. What page am I suppose to be editing?
Thanks
Dave
Posted: Sun Mar 09, 2008 7:29 pm
by Klemen
This code is inside gbook.php, open it in a text editor like Notepad or Wordpad.
Posted: Sun Mar 09, 2008 8:26 pm
by christmanrd
Well now that is interesting.
I just looked at the zip file that I downloaded and it reads, gbook16.zip. I assumed by that that I had version 1.6. However, after looking at the code in the gbook.php, I discover that I have version 1.5.
No wonder I could not find (and felt like a dummy) the lines and code you were indicating.
The line number that comes close in v1.5 is line 1060 and it reads:
Code: Select all
<p style="text-align:center"><a href="'.$settings['website_url'].'">Back to '.$settings['website_title'].'</a>
| <a href="gbook.php">View guestbook</a>
| <a href="gbook.php?a=sign">Sign guestbook</a></p>
<div class="centered">
Is this correct? What is the code for v1.5?
Sorry about that,
Dave
[/code]
Posted: Sun Mar 09, 2008 9:20 pm
by Henrie
Hello,
This is the correct code, but in my download of GBook version 1.5 this code is placed on lines 987, 988 and 989.
What version you have of GBook can be found in the first lines of the gbook.php file, these should look like:
Code: Select all
<?php
# PHP guestbook (GBook)
# Version: 1.6
# File last modified: 14th Feb 2008 18:28
# File name: gbook.php
# http://www.PHPJunkYard.com
In gbook.php file version 1.5 replace lines 987,988,989:
Code: Select all
<p style="text-align:center"><a href="'.$settings['website_url'].'">Back to '.$settings['website_title'].'</a>
| <a href="gbook.php">View guestbook</a>
| <a href="gbook.php?a=sign">Sign guestbook</a></p>
with
Code: Select all
<p style="text-align:center">
<a href="gbook.php">View guestbook</a>
| <a href="gbook.php?a=sign">Sign guestbook</a></p>
But i really recommend using GBook version 1.6.
So if you have an older version of GBook you should download version 1.6 and upgrade your GBook.
Greetings,
Henrie
Posted: Sun Mar 09, 2008 9:29 pm
by christmanrd
My error.
I do have v1.6. I was just looking in an older file of this script that I also have. V1.6 is what is installed and your code that you sent me for 1.6 is working nicely now.
Thank you very much
Dave
PS. Sorry about the confusion.
