Dirk, Here is code that I added:
238 <?php 239 /* advertising code */ 240 include ('myPath/config.inc.php'); 241 include ('myPath/view.inc.php'); 242 include ('myPath/acl.inc.php'); 243 244 view("html", 2); 245 ?> This is the error that was returned: "Fatal error: Call to undefined function: view() in /usr/home0/eyecrave/public_html/lib-common.php(859) : eval()'d code on line 244" I tried also adding this {site_url} for myPath with no success. I then get a whole different group of errors. Thanks, Shane -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Dirk Haun Sent: Wednesday, February 05, 2003 3:18 AM To: [EMAIL PROTECTED] Subject: Re: [geeklog-users] PHP in Header.thtml Shane MacDonald <[EMAIL PROTECTED]> wrote: >Everytime I add it I get an error. I assume it's because there's not suppose >to be PHP in the .thtml files. Actually, it should be possible to use PHP in header.thtml (but only there). What did you try? Which errors do you get? >How, can I successfully add this feature to the header?? It might be a better idea to put the includes in the theme's functions.php file and only have the call to the function in header.thtml. bye, Dirk -- http://www.haun-online.de/ http://mypod.de/ _______________________________________________ geeklog-users mailing list [EMAIL PROTECTED] http://lists.geeklog.net/listinfo/geeklog-users