Using <?php includ ?> in the tpl files... Possible?
blacksburgpoker
Joined: 2005-11-26
Posts: 108 |
![]() |
Hey, I'm trying to use <php include> inside the theme.tpl As a matter of fact I've customized it too http://www.blacksburgpoker.com/gallery/main.php but i want it to be with <php include> so that it is easier for me to modify everything. I know that I cant simply use <?php include("......");?> I'm trying to add the following php files to the layout of Gallery: <?php include("../common_head.php"); ?> [GALLERY] <?php include("../left_menu.php"); ?> Thanks for your help. ================================== |
|
floridave
![]()
Joined: 2003-12-22
Posts: 27300 |
![]() |
blacksburgpoker
Joined: 2005-11-26
Posts: 108 |
![]() |
Thanks, This is what I did right now: on the main.php page, I added the following lines to the very top of the code: <?php include("../common_head.php"); ?> and the following lines to the very bottom of the code: <?php include("../left_menu.php"); ?> it sort of worked but there are still couple big problems. (other than CSS style) some pictures disappear, when you click refresh it takes for ever to load (and when it does load it's all wrong)... Can you take a look please? Thanks, ================================== |
|
blacksburgpoker
Joined: 2005-11-26
Posts: 108 |
![]() |
I need some help here guys, To use the smarty tags in the theme.tpl, how do I point to a php file??? {include file="$../../../header.php"} ?????? Please help. [EDIT]: I didn't want to post a new post, but I noticed this thread was coming up a lot on Google and i have changed the pages listed here since. So I am changing them all to the new pages for reference. And Dave's suggestion worked great. ================================== |
|
floridave
![]()
Joined: 2003-12-22
Posts: 27300 |
![]() |
Dave |
|
rizwan6feb
Joined: 2008-03-15
Posts: 1 |
![]() |
I have used this But i get the same printed on the web page instead of header.php being included |
|
floridave
![]()
Joined: 2003-12-22
Posts: 27300 |
![]() |