Removing the, "Back To" link so that it does not d

Dr. GBooky is here to help you with your guestbook problems ...
Post Reply
christmanrd
Posts: 7
Joined: Fri Feb 08, 2008 12:31 am

Removing the, "Back To" link so that it does not d

Post 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
Henrie
Posts: 1095
Joined: Sun Aug 14, 2005 8:57 pm

Post 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
christmanrd
Posts: 7
Joined: Fri Feb 08, 2008 12:31 am

Post by christmanrd »

Henrie

That's great and I really appreciate it. What page am I suppose to be editing?

Thanks

Dave
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

This code is inside gbook.php, open it in a text editor like Notepad or Wordpad.
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
christmanrd
Posts: 7
Joined: Fri Feb 08, 2008 12:31 am

Post 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]
Henrie
Posts: 1095
Joined: Sun Aug 14, 2005 8:57 pm

Post 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
christmanrd
Posts: 7
Joined: Fri Feb 08, 2008 12:31 am

Post 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. :roll:
Post Reply