Author Topic: PHP files in 4images templates  (Read 8552 times)

0 Members and 1 Guest are viewing this topic.

Offline abdoh2010

  • Jr. Member
  • **
  • Posts: 96
    • View Profile
    • Racing 4 Education
PHP files in 4images templates
« on: March 31, 2005, 09:25:47 PM »
hello every one

i have a problem here and i asking you for help

i have a php file i would like to insert it in 4images templates as {php_file_name}

i tryed my best i couldnt do it

so any one can help me ?

Offline martrix

  • Hero Member
  • *****
  • Posts: 755
    • View Profile
    • overlord.cz
Re: PHP files in 4images templates
« Reply #1 on: March 31, 2005, 09:30:12 PM »
why don't you insert it like this:

Code: [Select]
<?php include(ROOT_PATH.'yourfilename.php'); ?>
?
MAяTRIX


Offline abdoh2010

  • Jr. Member
  • **
  • Posts: 96
    • View Profile
    • Racing 4 Education
Re: PHP files in 4images templates
« Reply #2 on: March 31, 2005, 09:36:14 PM »
becouse i want it in the medile on the page not above the header as
Quote
<?php include(ROOT_PATH.'yourfilename.php'); ?>
give me

Offline martrix

  • Hero Member
  • *****
  • Posts: 755
    • View Profile
    • overlord.cz
Re: PHP files in 4images templates
« Reply #3 on: March 31, 2005, 09:46:13 PM »
then you just have to insert that code on the place, where you want to have it - if on the homepage, then home.html if on the categories page, then categories.html...

give me
yes?
MAяTRIX


Offline abdoh2010

  • Jr. Member
  • **
  • Posts: 96
    • View Profile
    • Racing 4 Education
Re: PHP files in 4images templates
« Reply #4 on: April 01, 2005, 12:21:12 AM »
THE THING IS HOW CAN I SHOW PHP FILE INSIDE 4IMAGES HTML TEMPLATES ? IN THE center AND middle OF THE HOME.HTML TIMPLATE ?

Offline martrix

  • Hero Member
  • *****
  • Posts: 755
    • View Profile
    • overlord.cz
Re: PHP files in 4images templates
« Reply #5 on: April 01, 2005, 12:35:54 AM »
1) back-up your files
2) play around with home.html - add for example the string 123 on different places until you find out, where the right place is

That's all I can tell you now as long as I don't know if you use the default 4images template or not...

if it is the default template of 4i 1.7.1, then find this in home.html

Code: [Select]
{if categories}and you may for example insert your php-file ABOVE that:

Code: [Select]
<table width="100%" border="0" cellspacing="0" cellpadding="3">
                          <tr>
                            <td class="row2" valign="top"><?php include(ROOT_PATH.'yourfilename.php'); ?></td>
                          </tr>
                        </table>

Yes, "yourfilename.php" has to be replace by the filename of the php-file you want to insert...
MAяTRIX


Offline abdoh2010

  • Jr. Member
  • **
  • Posts: 96
    • View Profile
    • Racing 4 Education
Re: PHP files in 4images templates
« Reply #6 on: April 01, 2005, 04:56:43 AM »
that is new infomation for me  :o

that's really what i want thanx man you made a big help for me

i will try it and reply to you for checking

Offline abdoh2010

  • Jr. Member
  • **
  • Posts: 96
    • View Profile
    • Racing 4 Education
Re: PHP files in 4images templates
« Reply #7 on: April 01, 2005, 05:28:04 AM »
i try it and its work  :D

thank you man

Offline martrix

  • Hero Member
  • *****
  • Posts: 755
    • View Profile
    • overlord.cz
Re: PHP files in 4images templates
« Reply #8 on: April 01, 2005, 08:55:51 AM »
wonderful. :)

That was just one out of thousands of ways how to insert it there...

Have fun
MAяTRIX