Problem with include file - tpl files

Discussion in 'Programming' started by bozoboy, Dec 7, 2010.

  1. #1
    Hi,

    I need some help with tpl files!

    I have instaled 2 diferent script.

    The main one is on : www.mydomain.com/xx1

    The other is on : www.mydomain.com/xx1/xx2

    I would like to merge these two scripts, basically I want to use only one header ( header from first script)

    I copy all data from : www.mydomain/xx1/tmpl/header.tpl

    to www.mydomain/xx1/xx2/xx3/xx4/header.php

    All images, buttons and style is ok i have only problem with tpl files , for example :

    {include file="xxx.tpl"} ( not show under www.mydomain.com/xx1/xx2 )

    I try to insert a direct link then i try with ( ../ ) but not work

    even this form not work

    <php>include file="xxx.tpl";</php>

    I hope it is written clearly enough ..:confused:

    any help please....
     
    bozoboy, Dec 7, 2010 IP
  2. interprenuer

    interprenuer Peon

    Messages:
    17
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Hi,

    Well for one, it doesn't look like your using the correct PHP code. Also whats the error you are receiving? You may need to enable allow_url-Fopen or openbase_dir protection...

    All the best,

    Mark
     
    interprenuer, Dec 8, 2010 IP
  3. bozoboy

    bozoboy Active Member

    Messages:
    76
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    91
    #3
    Hi and thank you for your answer!

    site normally runs...but there, where the tpl element should be, is just a text ( with code ) ... {include file="xxx.tpl"}

    How can I enable allow_url-Fopen or openbase_dir ? :/
     
    bozoboy, Dec 8, 2010 IP
  4. interprenuer

    interprenuer Peon

    Messages:
    17
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Hello,

    What is the software your running? Also is it using some kind of smart tagging is it?

    All the best,

    Mark
     
    interprenuer, Dec 8, 2010 IP
  5. bozoboy

    bozoboy Active Member

    Messages:
    76
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    91
    #5
    I dont have my own server,..

    Is running on Linux...
     
    bozoboy, Dec 8, 2010 IP