Modifying Header

Dr. GBooky is here to help you with your guestbook problems ...
Post Reply
TonyOKC
Posts: 2
Joined: Fri Jul 15, 2011 11:53 pm

Modifying Header

Post by TonyOKC »

Script URL: http://livefree-ridehard.com/gbook/gbook.php
Version of script: 1.7
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:

How do I modify the header to show images instead of text for links?

These 3 lines:

<a href="<?php echo $settings['website_url']; ?>"><?php echo $settings['website_title']; ?></a> |
<a href="gbook.php"><?php echo $lang['t60']; ?></a> |
<a href="gbook.php?a=sign"><?php echo $lang['t48']; ?></a>

Thanks,
Tony
TonyOKC
Posts: 2
Joined: Fri Jul 15, 2011 11:53 pm

Re: Modifying Header

Post by TonyOKC »

Please ignore my question, I was "thinking" I needed some magic PHP command, and all it needed was simple HTML

Again, sorry for the post
Henrie
Posts: 1095
Joined: Sun Aug 14, 2005 8:57 pm

Re: Modifying Header

Post by Henrie »

Hello Tony,

No problem that you asked, maybe more people have been thinking about it, but did not dare ask in the forum.

And I know you don't need what I am going to say next, but maybe for others who would like to use the guestbook.

The easiest way is to just edit the text strings in the language.inc.php file
(or make a copy of it like englishimage.inc.php and in the settings.php set $settings['language']='lenglishimage.inc.php'; )

Than just edit the text strings you want changed, like in the part you gave as example.
TonyOKC wrote:<a href="<?php echo $settings['website_url']; ?>"><?php echo $settings['website_title']; ?></a> |
<a href="gbook.php"><?php echo $lang['t60']; ?></a> |
<a href="gbook.php?a=sign"><?php echo $lang['t48']; ?></a>
To change the website title, you have to edit the settings.php file. For example change $settings['website_title']="Your Web site"; to
$settings['website_title']='<img src="templates/default/images/websitetitle.jpg" alt="My Website Title" title="My Website Title" />';
Beware of the usage of single quotes and double quotes.

To change the other text stings change the language.inc.php (or your copy of it) change:
$lang['t60']='View guestbook'; to
$lang['t60']='<img src="templates/default/images/viewguestbook.png" alt="view guestbook" title="view guestbook" />';
and
$lang['t48']='Sign guestbook';
$lang['t48']='<img src="templates/default/images/signguestbook.gif" alt="sign guestbook" title="sign guestbook" />';

The above are just examples, you can use the the type of image and image names you like, and also place them on another path on your server.

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