Page 1 of 1

How do i get a picture as a Guestbook title

Posted: Wed Dec 14, 2005 2:59 pm
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

Posted: Wed Dec 14, 2005 10:59 pm
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

Tank you

Posted: Thu Dec 15, 2005 10:11 pm
by kor-middel
klemen Henrie.

Thanks for your support!

It works fine now.

Kor Middel

Posted: Thu Dec 15, 2005 10:34 pm
by Klemen
Klemen didn't help here, thanks to Henrie :wink:

flash header

Posted: Tue Dec 20, 2005 9:42 pm
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>

Posted: Tue Dec 20, 2005 10:34 pm
by answerer
you can out absolutely anything in the header or footer.txt file

Posted: Thu Jan 26, 2006 6:49 pm
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

Posted: Thu Jan 26, 2006 7:54 pm
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

Posted: Thu Jan 26, 2006 8:42 pm
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

Re: flash header

Posted: Sat Dec 05, 2009 11:39 pm
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?

Posted: Sat Dec 05, 2009 11:55 pm
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

Posted: Sun Dec 06, 2009 12:35 am
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)

Posted: Sun Dec 06, 2009 12:54 am
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!

Posted: Sun Dec 06, 2009 8:44 am
by Henrie
I am glad you got it figured out.
Good luck with your page.

Greetings,
Henrie