Home Sign up Features Members Forums Control menu Search
Upsaid templates tutorials

Displaying entries inside an html IFrame

Have you ever wanted to display your journal entries in a separate frame, inside your journal's index page? This is possible thanks to the html inline frames.
Click here to see an exemple of layout using an IFrame.

Step 1:

In order to display your journal entries inside an IFrame, you will need to edit your journal's filenames as follows:

Rename the Main page to: entries.php
Rename the Extra page to: index.php

Finaly, set the page which will be displayed when accessing www.upsaid.com/username to Extra page.

See screengrab:

Step 2:

Now that you have renamed the files, you can edit your Extra page template, which is where the IFrame will be displayed.
The page to be included in this IFrame should be: entries.php

Here is a very basic exemple of what you should type in your Extra page template:

<html>

<head>
    <title>Journal name</title>
</head>

<body>

<table align="center">
<tr><td><iframe name="entries" width="400" height="250" src="entries.php"></iframe></td></tr>
</table>

</body>

</html>
Once this is done, you can check your index page and see the result.
© Upsaid.com, 2001 - 2003 Contact us - Privacy policy - Terms of use