Site title bug.

Dr. GBooky is here to help you with your guestbook problems ...
Post Reply
Fudeba
Posts: 9
Joined: Sat May 09, 2009 8:01 am

Site title bug.

Post by Fudeba »

In line 1067 shows this:

Code: Select all

<title>'.$settings['gbook_title'].'</title>
Corret is:

Code: Select all

<title>'.$settings['website_title'].'</title>
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Nope, actually the

Code: Select all

$settings['gbook_title']
is the correct one, you have this variable in the settings file.
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
Fudeba
Posts: 9
Joined: Sat May 09, 2009 8:01 am

Post by Fudeba »

Why?

From what I understood, the variable $settings['gbook_title'] is used to display the title inside the page, just below where the top is the header.

$settings['website_title'] is the variable is used to display the title bar of the browser.

If not because the language file are the two variables?


The images below explain better.

Image

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

Post by Klemen »

The $settings['website_title'] is the title of your main website and $settings['gbook_title'] is the title of your guestbook. For example in my case
$settings['website_title'] would be "PHPJunkyard" and $settings['gbook_title'] would be "PHPJunkyard guestbook".

The $settings['website_title'] is used in the "Back to yourwebsite" link and the gbook_title is used in the <title> tags and as a heading.

Feel free to edit it to any way you want. But having the guestbook <title> the same as your homepage <title> isn't recommended for SEO purposes, each page/part should have it's own title.
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
Post Reply