Author Topic: Inserting php in my home page  (Read 3688 times)

0 Members and 1 Guest are viewing this topic.

Offline jeddx

  • Pre-Newbie
  • Posts: 8
    • View Profile
Inserting php in my home page
« on: April 07, 2005, 04:24:10 AM »
I downloaded a mini chat php file and I want to insert it under the new images in the home page, i tried to include it in the index.php before the footer but it appeared under it.  is there any beter way to insert the code in any spacefic place i want?

thank you

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Inserting php in my home page
« Reply #1 on: April 07, 2005, 04:31:54 AM »
yes, insert it into home.html template ;)

P.S. please click the first three links below:
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline Chris

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.487
  • Did u ever stop to think and then forget to start?
    • View Profile
Re: Inserting php in my home page
« Reply #2 on: April 11, 2005, 04:37:35 AM »
Also open includes/constants.php and make sure this setting is 1
Code: [Select]
// Allow execution of PHP code in templates
define('EXEC_PHP_CODE', 1);