Webmastersite.net
Register Log In

How to insert/include another php as "notice" in the page of index.php
possible slightest modification

Comments on How to insert/include another php as "notice" in the page of index.php

charles2smart
Member

Usergroup: Customer
Joined: Dec 01, 2003

Total Topics: 5
Total Comments: 11
Posted Dec 21, 2004 - 8:46 PM:

Hi Paul:

As I would like to add up a "NOTICE section" in the index.php where guests first arrive at the site, I tried to look into scripts of index.php but cannot find a line where I can insert a command like include or require to call another self-made notice.php ! Sorry, I am new to php although I have some ideas in HTML or PERL-CGI.

Would you please kindly enlighten me in how to insert another self-made NOTICE.PHP between the [header.tpl] and [main.tpl] in index.php's script! And, how??? Using include or require command? or anything else?

Due to very limited knowledge of php, I assume that the ideal place to insert/include/require the NOTICE.PHP I memtioned may not be far away from Line 61:

if (!$template) $template = new template('main.tpl');

isn't it??? Please kindly give hints!






Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Dec 23, 2004 - 1:26 AM:

You should put the include in the template, not in a php file. just put in the template where you want it shown.
charles2smart
Member

Usergroup: Customer
Joined: Dec 01, 2003

Total Topics: 5
Total Comments: 11
Posted Dec 25, 2004 - 5:12 AM:

I've got it sorted, thanks very much for the kind instructions!!!


Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



This thread is closed, so you cannot post a reply.