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');
Comments on How to insert/include another php as "notice" in the page of index.php
Member
Usergroup: Customer
Joined: Dec 01, 2003
Total Topics: 5
Total Comments: 11
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!
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
You should put the include in the template, not in a php file. just put in the template where you want it shown.
Member
Usergroup: Customer
Joined: Dec 01, 2003
Total Topics: 5
Total Comments: 11
I've got it sorted, thanks very much for the kind instructions!!!