Results 1 to 5 of 5

Thread: V3.1 no php in the templates ?

  1. #1
    Join Date
    Aug 2002
    Location
    Germany
    Posts
    1,180

    Default V3.1 no php in the templates ?

    Hello,
    perhaps you should open a V3.1 forum

    I tried to use a code like this:
    <php>
    include "../galerie/template/galerie/footer.html";
    </php>

    in the header and footer of V3.1.
    In 3.04 it works fine, but here not.
    Did you changed something and if yes, how can I use php in the templates again, specally header, footer and detail ?

    Or did I something wrong ?

    Greetings
    Frank

  2. #2
    Join Date
    Apr 2003
    Location
    Atlanta GA
    Posts
    3,395

    Default

    I also am not able to use php in header/footer...

    I renamed header/footer to php extension. As an example, I renamed modify_form.html to modify_form.php in the themes/default folder. then changed modify.php to call the .php files instead of the .html files for header, modify_form, footer.

    Still does not work.
    esm
    "The older I get, the more I admire competence, just simple competence, in any field from adultery to zoology."

    .

  3. #3
    Join Date
    Aug 2001
    Location
    Indonesia
    Posts
    3,732

    Default

    Yes, I made a few changes in template.lib.php
    If indexu failed to execute php command, then it will show all codes in html / not parsed. Do you get this error?

    Frank, try this, remember one line only.
    PHP Code:
    <php>include "../galerie/template/galerie/footer.html";</php
    esm,
    I renamed header/footer to php extension. As an example, I renamed modify_form.html to modify_form.php in the themes/default folder. then changed modify.php to call the .php files instead of the .html files for header, modify_form, footer.
    It won't work, indexu template files simply do regex to find and replace indexu tag. Somehow my regex failed to examine <php>.......</php> that have multiline.

  4. #4
    Join Date
    Aug 2002
    Location
    Germany
    Posts
    1,180

    Default works

    ops, now it works
    I must test this also in header

    And do you know why we can't use php in detail`.html ?

    Greetings
    Frank

  5. #5
    Join Date
    Aug 2001
    Location
    Indonesia
    Posts
    3,732

    Default

    And do you know why we can't use php in detail`.html ?
    Of course I know. Now in indexu 3.1 you can use php in detail.html. But you can't in detail_link.html

Similar Threads

  1. php include
    By Rob Picken in forum v5.x
    Replies: 6
    Last Post: 07-13-2004, 09:01 AM
  2. Undestanding templates
    By dody in forum Tutorials, Hints & Tips
    Replies: 2
    Last Post: 01-04-2004, 03:37 AM
  3. 2 rows.html templates
    By Rob Picken in forum v5.x
    Replies: 4
    Last Post: 12-28-2003, 08:30 AM
  4. php in templates problem
    By Frank71 in forum v5.x
    Replies: 0
    Last Post: 09-19-2003, 11:04 AM
  5. Need help with 2 hacks that won't work with V3.1
    By Frank71 in forum Help Wanted/Job Request
    Replies: 0
    Last Post: 08-27-2003, 02:15 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •