Crystals Palace

Search This Blog

Friday, January 6, 2012

how to embed a website in to a website for dolphin

how to embed a website in to a website for dolphin



How to create a simple IFRAME
10.21.2008 00:00 Categories: Dolphin

Basically in simple terms an iframe is loading another page within a page. This can sometimes be rather convenient for Dolphin.

Maybe you want to load a .html page into your Dolphin site? Maybe you want to load a secondary site into your Dolphin? There are a number of possibilities.

This makes the content, external site or other html page load inside your Dolphin making it look like it is still your Dolphin site and content.

There are several ways to accomplish this. One of the fastest and easiest ways I will describe here as simple and detailed as possible.

The following file will work for Dolphin 6.1x, and should work for others too.

First download this file which is going to be called iframe.php for demo purposes. You can simply rename it to anything you want, mypage.php, cool.php, whatever really. Just make sure you don't call it something that Dolphin already uses and accidently overwrite a Dolphin file that allready exists. You wouldn't want to call it chat.php as Dolphin already has a page called chat.php.

You can edit this file as described below for your content.

You will have to create the page you want to include in the iframe, such as yousite.com/mypage.html. If you are going to link it to an external site or other sites page, then just simply edit the link described below.

I have set this to youtube.com for demo purposes. So if you upload the iframe.php file to your Dolphin site then enter yoursite.com/iframe.php into your address bar it will load youtube.com up inside your Dolphin site. This is easy to change and include almost any other page or site.

Open iframe.php with any text editor then:

Change the following to describe your page, which will appear in the header and page title.

goto link below for code


1. Make the edits/changes to header and header_text ares in iframe.php explained above. Rename iframe.php to something else if you so desire.
2. Upload it to your main Dolphin directory like yoursite.com/iframe.php
3. If linking to another .html page on your site be sure to specifiy the exact location in the iframe src=""
4. Visit yoursite.com/iframe.php and verify. Make height and width changes specified above if necessary.
5. Create a link somewhere on your site to yoursite.com/iframe.php, maybe your top navigation area or similar so visitors can find it.

This sounds a little longer than what it really is. This entire process can be completed in a few minutes in most cases.

And there is no database changes or edits, only file/files so no need to worry about messing up your database.

***As a simple test you can upload iframe.php as is to your root Dolphin directory, like yoursite.com/iframe.php then visit yoursite.com/iframe.php and it will load up youtube.com within your Dolphin site. This is just to give you an example of what it will do, then simply make changes specified above.












cited

http://www.dialme.com/m/articles/view/How-to-create-a-simple-IFRAME