Changing GB "return" link target

Dr. GBooky is here to help you with your guestbook problems ...
Post Reply
evenstephencom
Posts: 56
Joined: Sat Apr 03, 2010 9:04 pm

Changing GB "return" link target

Post by evenstephencom »

Script URL:
Version of script:
Hosting company:
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution:

Write your message below:

The link on my GB at www.theangry.net that refers visitors back to the Angry site directs the reader to the "opening.htm" page and I would like that link to take the visitor to the "index.html" page. I see the link code in the source view but can't find the code in the gbook.php file. Where do I find that code in order to change the url?

Thanks!
Henrie
Posts: 1095
Joined: Sun Aug 14, 2005 8:57 pm

Post by Henrie »

The "Back to ..." link is set in the settings.php file

Code: Select all

$settings['website_url']='http://www.domain.com/';
You can set it to whatever you like.

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.
evenstephencom
Posts: 56
Joined: Sat Apr 03, 2010 9:04 pm

Post by evenstephencom »

Henrie:

I entered the code http://index.html and it went to the "can't find....etc. I also tried http://theangry.net./index.html and theangrynet/index.html to no avail. What am I missing? :(

Thanks!
Henrie
Posts: 1095
Joined: Sun Aug 14, 2005 8:57 pm

Post by Henrie »

The following value should work:

Code: Select all

$settings['website_url']='http://www.theangry.net/index.html';
evenstephen.com wrote:I entered the code http://index.html and it went to the "can't find....etc. I also tried http://theangry.net./index.html and theangrynet/index.html to no avail. What am I missing?
http://index.html is not a valid link to your site, so it will not work. $settings['website_url']='../index.html'; should work though.
http://theangry.net./index.html will return a page not found error because you entered a . (dot) after .net which ofcourse returns an error because it does not exist. $settings['website_url']='http://theangry.net/index.html'; should work though.
theangrynet/index.html does not work because of missing . (dot) between angry and net and a missing http://

Hope you get it to work now.

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.
evenstephencom
Posts: 56
Joined: Sat Apr 03, 2010 9:04 pm

Post by evenstephencom »

You are good-----with a "keen" eye! Thanks again.

Ken
Henrie
Posts: 1095
Joined: Sun Aug 14, 2005 8:57 pm

Post by Henrie »

Over the years I have made to many typing errors myself. So I know what to look for :wink:

I am just glad it was easy to correct it.

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.
evenstephencom
Posts: 56
Joined: Sat Apr 03, 2010 9:04 pm

Post by evenstephencom »

....thanks you!

Ken
Post Reply