Topic: Editing main.tpl with PHP

Hi

I have been trying to edit the main.tpl file to incorporate the forum into my current website though Im having a bit of trouble. 

I have a (top logo and navigation) and (left menu) which I want to add to my main.tpl file whcih are PHP files.  How do I do this.  I have tried the <pun_include "header.php"> but it doesnt seem to work because the header.php and leftmenu.php are in my root directory and my forum is in a different folder.  I have tried to change it to <pun_include "http://www.anxietyforums.org/header.php"> as well but this doesnt work either.

Any ideas/help would be appreciated!!!!

Thanx

Re: Editing main.tpl with PHP

try <pun_include ". ./header.php"> without the space between the dots

Re: Editing main.tpl with PHP

Thanks heaps mate it works!!!!

4 (edited by jzmcminn 2005-01-07 23:45)

Re: Editing main.tpl with PHP

Sorry I take that back..... it works.. but the images dont come up and it doesnt fit into my webste template properly.  Ive zipped up my code into a rar file   http://www.anxietyforums.org/webcode.rar   If anyone has any spare time is it possible to look at it and tell me how to place the forum into the third php include..????

Thanks again

5 (edited by lament 2005-01-10 06:18)

Re: Editing main.tpl with PHP

it's the same principal with your images as it is with your include files, assuming you have an /images/ folder in the root of your home directory.

so on your .tpl page, either make the links to the images an absolute url:

http://www.your.site.com/images/image.jpg

or relative to the site root where the images folder is:

../images/