Log in

View Full Version : Call an entire template in a new page


Triky
08-22-2007, 09:09 AM
I need to do this.
I have a blank page, and I want call an entire template like the Who's Online, for example.

For example, in my page I call it with something like '$whonline' and then, it apper like this:

http://img255.imageshack.us/img255/899/immaginebu7.th.jpg (http://img255.imageshack.us/my.php?image=immaginebu7.jpg)

http://img255.imageshack.us/img255/899/immaginebu7.jpg

Is this possible?
How can I do it?

Dismounted
08-22-2007, 09:41 AM
You'll have to replicate the procedures for the Who's Online in index.php, right down the bottom.

Triky
08-22-2007, 09:53 AM
So I have to put all the Who's Online code into the .php page, and then call the template, after it?

For example:

Index.php

Who's Online's PHP Code

$whonline


?

Triky
08-27-2007, 07:10 AM
? :p

Dismounted
08-27-2007, 07:12 AM
Do it as you would a normal external page, then add the PHP code and add the template.