Page 1 of 1

Embedding

Posted: Fri Feb 01, 2013 7:21 am
by mehernandez87
Script URL: http://www.hokkaidoseafood.com/guestbook/
Version of script: 1.7
Hosting company: startlogic
URL of phpinfo.php: http://www.hokkaidoseafood.com/guestbook/phpinfo.php
URL of session_test.php: http://www.hokkaidoseafood.com/guestboo ... n_test.php ; http://www.hokkaidoseafood.com/guestboo ... _test2.php
What terms did you try when SEARCHING for a solution: php guestbook embed, php junkyard guestbook embed

Write your message below:
I've been googling around trying to find a way to do this but hard as I try I didn't quite understand the instructions here: viewtopic.php?f=7&t=3619

I essentially want to embed the guestbook into the page:http://www.hokkaidoseafood.com/gb.html

I am still puzzled and confused as to how to go about it, I changed the language to utf-8 but then after that I am so confused :(

Any and all help would be greatly appreciated! I love your guestbook and I can't wait to use it!

Re: Embedding

Posted: Fri Feb 01, 2013 6:07 pm
by Henrie
Hello mehernandez87,

Like it is mentioned in the other post, this is normally out of the scope of the support given here, but because you already found that post, i can easily use it to guide you. So here it goes.

1. Charset
You should set the charset to the same as your other files. In your case iso-8859-1, not utf-8

2. Using your own template folder, make sure you copy all files
Because of the extend of your modifications, you should create your own template folder, for example named hokkaido. Make sure you copy all the files from the default template folder there.
Than in the settings.php file change $settings['template']='default'; to your template folder name, for example $settings['template']='hokkaido';

3. Code added in the <head> ... </head> section of your html file should be placed in the file overall_header.php
This file can be found in your newly created templates\hokkaido folder.
The following code should be added just before the </head> tag in the overall_header.php file.

Code: Select all

<meta name="description" content="Hokkaido Seafood Buffet has something for everyone! From seafood, sushi, steaks, prime ribs, assorted chinese dishes and teppanyaki we're sure to have something for everyone in your family!"> 
<meta name="keywords" content="Asian food, Japanese food, chinese food, teppanyaki, sushi, salad, dessert, steak, prime rib, buffet, catering"> 
<meta name="category" content="Buffet">
<meta name="copyright" content="Hokkaidoseafood.com">
<link href="style.css" rel="stylesheet" type="text/css">
As you can see i did not add the <title>Hokkaido Seafood Buffet</title> and <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> tags because they should be set through the settings.php file of the gbook.
Do not forget to change the link to your stylesheet to an absolute path, to be sure that it will work.
You can now close the overall_header.php file.

4. Code in the top of the <body> ... </body> of your html file should be placed in the file header.txt
This file can be found in the gbook root folder.
The following code until the start of the <div> that will contain the guestbook should be placed in the header.txt file.

Code: Select all

<div id="central">
	<div id="header"></div>
<ul id="navlist">
       <li><a id="n1" href="http://www.hokkaidoseafood.com"><span>Home</span></a></li>
      <li><a id="n2" href="http://www.hokkaidoseafood.com/menu.html"><span>Menu</span></a></li>
      <li><a id="n3" href="http://www.hokkaidoseafood.com/catering.html"><span>Catering</span></a></li>
      <li><a id="n4" href="http://www.hokkaidoseafood.com/locations.html"><span>Locations</span></a></li>
      <li><a id="n5" href="http://www.hokkaidoseafood.com/gb.html"><span>Guestbook</span></a></li>
      <li><a id="n6" href="http://www.hokkaidoseafood.com/about.html"><span>About Us</span></a></li>
      <li><a id="n7" href="http://www.hokkaidoseafood.com/contact.html"><span>Contact Us</span></a></li>
    </ul>
	<div id="content">
		<div id="leftside">
			<div id="picture1"></div>

			<div id="picture2"></div>
&nbsp;&nbsp;

<div id="minicontent"> 
<center><a href="http://www.hokkaidoseafood.com/job%20application%20form.pdf">Employment Application</a><br>
<a href="http://www.hokkaidoseafood.com/cal.html">Holiday Calendar</a>
</center>
			</div>
		</div>
	  <div id="rightside">
You can now close the header.txt file.

5. Code added in the bottom of the <body> ... </body> section should be added to the file footer.txt
This file can be found in the gbook root folder.
The following code starting with the end </div> of the part that contains your guestbook should be placed in the footer.txt file.

Code: Select all

    </div>    
    
		<div id="footer"><p>Hokkaido Seafood Buffet ©2012</p></div>
	</div>
	<div id="imagepreloader"><img src="images/buttonover.gif" alt="mouseover"></div>
</div>
You can now close the footer.txt file.

And that is all.
It is the same description as before, but with contents of your files. I hope this makes it more clear to you (and to others who read this).

Greetings,
Henrie

Re: Embedding

Posted: Tue Feb 05, 2013 2:20 am
by mehernandez87
I feel so stupid for not understanding this....I did all of that except one part that confused me
Do not forget to change the link to your stylesheet to an absolute path, to be sure that it will work.
:( still doesnt look like it...

Re: Embedding

Posted: Tue Feb 05, 2013 6:23 am
by Henrie
With the absolute path i mean that you need to use the full url http://www.hokkaidoseafood.com/style.css instead of just style.css. Like this in your overall_header.php file step 3:
<link href="http://www.hokkaidoseafood.com/style.css" rel="stylesheet" type="text/css">
instead of
<link href="style.css" rel="stylesheet" type="text/css">

And did you change $settings['template']='hokkaido'; in your settings.php file in step 2?

And please also complete steps 4 and 5. These are the steps that change the look. The steps 1, 2 and 3 are just preparations needed for steps 4 and 5 to work.

Greetings,
Henrie

Re: Embedding

Posted: Sat Mar 16, 2013 1:11 pm
by AJsWebCreations
I am looking to do the same thing, to embed the guest book into the site I am re-doing for a client. I have worked with php some so I think I can do this but need a little guidance. The page I want to add it to is here
http://tackshack.ipower.com/jjguestbook.htm I know I will need to make the page php and have a copy of it already in php on my test environment but not online. The guestbook url is here
http://www.jjtackshack.com/guest-book/gbook.php
I installed the guestbook using the simple scripts though my clients hosting. I would be thankful for any help in this matter.

I am updating the site to get rid of all the tables I think the site was created about 7 to 9 years ago.