How do i get a picture as a Guestbook title

Dr. GBooky is here to help you with your guestbook problems ...
Post Reply
Kor Middel

How do i get a picture as a Guestbook title

Post by Kor Middel »

Script URL: ?
Version of script: 1.34 (henrie)
Version of PHP:
Hosting company: ?
Have you searched THIS FORUM for your problem: Yes
(if not please do before posting)
If so, what terms did you try:

Write your message below:

I like to use the guestbook for my site lesboulesfleuries.nl site. So I like to implement the logo in the guestbook in the header and change the background colour of the page.
Can you give me a clue?

Thanks in advance

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

Post by Henrie »

Hi Kor,

To insert an image in the header of the page, open the header.txt file.
Add the code you want to insert at the top of the page.
For an image it would probably look like

Code: Select all

<img src="../logo.gif" alt="logo" title="logo" />
If you want to remove the guestbook title at the top of the page, you can open the settings.php file and change $settings['show_title']=1; to $settings['show_title']=0;

To give the page a backgroundcolor, open the style.css file.
Add the following line to the body {...} section"

Code: Select all

background-color: #FFFFCC;
For more information about css styling you can look at this site http://www.w3schools.com/css/css_intro.asp or for dutch info you can look here http://www.mijnhomepage.nl/csscursus/cs ... rzicht.php

Greetings,
Henrie
kor-middel

Tank you

Post by kor-middel »

klemen Henrie.

Thanks for your support!

It works fine now.

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

Post by Klemen »

Klemen didn't help here, thanks to Henrie :wink:
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
olli

flash header

Post by olli »

Image

Can I put flash(swf) in my header using this code:

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://active.macromedia.com/flash4/cab ... on=4,0,0,0" width="981" height="107">
<param name="movie" value="file:filename.swf">
<param name="play" value="true">
<param name="loop" value="true">
<param name="quality" value="high">
<embed src="file:filename.swf" play="true" loop="true" quality="high" pluginspage="http://www.macromedia.com/shockwave/dow ... kwaveFlash" width="981" height="107"></embed>
</object>
answerer

Post by answerer »

you can out absolutely anything in the header or footer.txt file
Junefly
Posts: 20
Joined: Mon Jan 16, 2006 7:33 pm

Post by Junefly »

Henrie wrote:Hi Kor,

If you want to remove the guestbook title at the top of the page, you can open the settings.php file and change $settings['show_title']=1; to $settings['show_title']=0;
Greetings,
Henrie
Henrie,

I would like to remove the Guestbook title from the settings.php so that just the header.txt is shown. However I find no refrence to what you have quoted above. There is not anything in the settings.php on my end like $settings['show_title']=1; Is there a way to get this done, (or can it be done).

Thank you!
Junefly
http://www.rampbbs.net/gbook/gbook.php
Henrie
Posts: 1095
Joined: Sun Aug 14, 2005 8:57 pm

Post by Henrie »

Hello Junefly,

Kor is using my modified Xhtml version (downloaded form the GBook - guestbook add-ons forum) in which i have also added a lot of modifications (like the show_title setting).

In the standard GBook 1.34 version there are two ways to remove the title:

1. Change the following in the settings.php file.

Code: Select all

$settings['gbook_title']="My lovely website - guestbook";
to

Code: Select all

$settings['gbook_title']="";
Just don't give a title :D .

2. Edit the gbook.php file.
Find the following (starting at line 631)

Code: Select all

echo '<h3 align="center">'.$settings['gbook_title'].'</h3>
<p 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 align="center">
<center>
';
and change it to this

Code: Select all

echo '<p 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 align="center">
<center>
';
The part that displays the title is now removed :wink: .

Hope this helps.

Greetings,
Henrie
Junefly
Posts: 20
Joined: Mon Jan 16, 2006 7:33 pm

Post by Junefly »

Henrie wrote:Hello Junefly,

Kor is using my modified Xhtml version (downloaded form the GBook - guestbook add-ons forum) in which i have also added a lot of modifications (like the show_title setting).

In the standard GBook 1.34 version there are two ways to remove the title:

1. Change the following in the settings.php file.

Code: Select all

$settings['gbook_title']="My lovely website - guestbook";
to

Code: Select all

$settings['gbook_title']="";
Just don't give a title :D .

2. Edit the gbook.php file.
Find the following (starting at line 631)

Code: Select all

echo '<h3 align="center">'.$settings['gbook_title'].'</h3>
<p 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 align="center">
<center>
';
and change it to this

Code: Select all

echo '<p 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 align="center">
<center>
';
The part that displays the title is now removed :wink: .

Hope this helps.

Greetings,
Henrie
Great.. For some reason when I just removed the title in settings I got an error.. After looking at this quote, I think I had the quotes with a space between which probably caused the error.. Anyway removing the title all together worked great..

Thank you very much!!!
Junefly
http://www.rampbbs.net/gbook/gbook.php?a=sign
Nightwing308
Posts: 4
Joined: Sat Dec 05, 2009 11:33 pm

Re: flash header

Post by Nightwing308 »

olli wrote:Image

Can I put flash(swf) in my header using this code:

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://active.macromedia.com/flash4/cab ... on=4,0,0,0" width="981" height="107">
<param name="movie" value="file:filename.swf">
<param name="play" value="true">
<param name="loop" value="true">
<param name="quality" value="high">
<embed src="file:filename.swf" play="true" loop="true" quality="high" pluginspage="http://www.macromedia.com/shockwave/dow ... kwaveFlash" width="981" height="107"></embed>
</object>
Okay, I managed to get my swf (Flash) title showing up with a code like the above embedded into the header.txt file, BUT I can't get the size adjusted.
The inserted Flash animation has a width of 410px and a height of 70px, but no matter what size I imput in the code it always just shows up very small (about 100px width and maybe 50px height). Any suggestions what I need to edit where, to get the embedded Flash animation to display in its correct size?
Henrie
Posts: 1095
Joined: Sun Aug 14, 2005 8:57 pm

Post by Henrie »

Hello Nightwing308,


If changing width="981" height="107" to the actual size twice in the code you gave is not working, than please post a link to (a demo of) your guestbook with the flash movie, so i can take a look.
Hard to say what is wrong with only the info you provided.

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.
Nightwing308
Posts: 4
Joined: Sat Dec 05, 2009 11:33 pm

Post by Nightwing308 »

Sorry Henrie, I had been just experimenting with this locally, so it wouldn't interfere with anything on the site I'm creating.
But I've uploaded the sample with the embedded swf header here
http://www.nightwingsgraphics.com/EPSGu ... /gbook.php

The "Testimonials" text should be 400px by 70px but I can't get it to display in the correct size (also had it centered on the page at one time, but then played around with the settings and now can't remember what I did to center it. Go figure! LOL)
Nightwing308
Posts: 4
Joined: Sat Dec 05, 2009 11:33 pm

Post by Nightwing308 »

Never mind! I must have had a serious "Blonde moment", because I had input the wrong dimensions into the header.txt
It didn't need to be 400x70, it needed to be 410x173
and that fixed it too. Geesh!
:oops:

We need a "Duuuuhh!" Smiley!
Henrie
Posts: 1095
Joined: Sun Aug 14, 2005 8:57 pm

Post by Henrie »

I am glad you got it figured out.
Good luck with your page.

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