Page 1 of 1

Add PHP file into htm file with template.

Posted: Tue Apr 17, 2007 8:44 am
by Sonicje
Script URL: http://www.ri4a.be/guestbook
Version of script: 1.5
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:

Hi everyone,

my programming isen't that great.
But I have a website for oure sportclub. ( http//www.ri4a.be )
There is a template with a side bar and a menu at every page.
The template is a DWT file.
I need to get the template with the side bar and the menu on the Guestbook page.
So that it seems that the guestbook is inported in a .htm file.

Is there someone that knows of this is possible ?
And so yes .. how do I do this ?

I'm using Gbook v.1.5

Add PHP file into htm file with template.

Posted: Wed Apr 18, 2007 12:00 pm
by jayceegee
Hello Sonicje,

As no one else has answered your query, I will attempt to do so.

The page can be rendered as a frame page with a banner frame (top) and a side frame with the guestbook on the main page. With the frames set to zero and no scroll bars (unless necessary), it would appear as one page with the same background colour.

The only problem would be that with the size of the logos, you would end up with a scroll bar on the left. As you have stated that it is a DWT file, I assume it is created by Frontpage.

If you PM or email me, I will give you an URL that will show what it would look like. I will not place it here as it will be removed after a limited period.

Regards, Jim.

Posted: Thu Apr 19, 2007 10:45 am
by Klemen
Just a though - I don't recommend editing gbook.php file unless you are familiar with PHP and how it works.

Why not just use the header/footer.txt files? Simply paste all the code you want to display BEFORE Gbook table in the header.txt and all code you want displayed after Gbook table in the footer.txr

Add PHP file into htm file with template.

Posted: Fri Apr 20, 2007 10:43 pm
by jayceegee
Sonicje,

Another way of doing it is to create an iFrame on the page within a div, this would give you exactly what you are looking for.

After inserting your banner and side divs (your template), create a new div on the main section and centre within the div then go to > insert > inline frame (if available – it is in FrontPage, hopefully so in Dreamweaver), then resize it to the maximum width you can get, and set to the desired height. Remove tick in borders on inline frame properties.

Set the iFrame initial page to gbook.php (or foldername/gbook.php) and upload (you will see some information on your computer in relation to the guestbook, but not the entries file). Email me if you require a link for an example page.

The scroll bars can be removed completely, provided you drag the iFrame and div to a length that will accommodate the full page of the guestbook.

Another way is to go to http://www.twinhelix.com/dhtml/divscroll and look at the program which is similar to Klemen’s guestbook (free with a link), but unlike the guestbook, very hard to use.

Hope this helps you and anyone else who needs a similar format.

Jim.

Fixed

Posted: Mon Apr 23, 2007 5:06 pm
by Sonicje
Thanks to Jim everything is fixed !

I have added the PHP page in to the HTML document ^^

Really thx Jim !

Regards

Add PHP file into htm file with template.

Posted: Mon Apr 23, 2007 7:55 pm
by jayceegee
Hello Sonicje,

:D Glad it worked for you. For anyone else who may require a similar page, the code is below. Enter the code between the body tags in the code page, preferably just before the closing body tag, so that it does not interfere with any other code.
<div style="position: absolute; width: 870px; height: 1100px; z-index: 1; left: 124px; top: 130px" id="layer1">
<p align="center">
<iframe name="I1" src="foldername/gbook.php" width="870" height="1070" marginwidth="1" marginheight="1" border="0" frameborder="0">
Your browser does not support inline frames or is currently configured not to display inline frames.
</iframe></div>
If you do not want scroll bars add scrolling="no" after frameborder (with a space between), but remember to make sure the bottom is long enough to show the full page if you use this, and the page is resizeable (Klemen's guestbook is).

The div and iFrame borders can be dragged to suit in the design page. Add your own code to suit your page

The items shown in red will probably need to be changed for your particular layout, this was for Sonicje’s layout.

If you have dropdown menu’s that will go over the guestbook page, select the div and send it backwards.

In design and preview, you should see the code of the guestbook.php not the entries file which will show after you upload. Do not forget to chmod the file.

If you have any problems, please feel free to email me.

Regards, Jim.