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
Modifying Header
Re: Modifying Header
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
Again, sorry for the post
Re: Modifying Header
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.
$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
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.
To change the website title, you have to edit the settings.php file. For example change $settings['website_title']="Your Web site"; toTonyOKC 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>
$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.