[geeklog-users] PHP in Header.thtml

Shane MacDonald shane at eyecravedvd.com
Wed Feb 5 17:13:08 EST 2003


OK, I changed the path, now I'm not getting an error. However, the banners
still aren't showing up.

-----Original Message-----
From: geeklog-users-admin at lists.geeklog.net
[mailto:geeklog-users-admin at lists.geeklog.net]On Behalf Of Shane
MacDonald
Sent: Wednesday, February 05, 2003 5:03 PM
To: geeklog-users at lists.geeklog.net
Subject: RE: [geeklog-users] PHP in Header.thtml


I get the same error message with require_once. Believe it or not

-----Original Message-----
From: geeklog-users-admin at lists.geeklog.net
[mailto:geeklog-users-admin at lists.geeklog.net]On Behalf Of Tony Bibbs
Sent: Wednesday, February 05, 2003 9:16 AM
To: geeklog-users at lists.geeklog.net
Subject: RE: [geeklog-users] PHP in Header.thtml


Change those to require_once.  This will cause a fatal error if it can't
find the files in question.  It is obvious that for some reason the
include isn't happening.

--Tony

 On Wed, 5 Feb 2003, Shane MacDonald wrote:

> 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: geeklog-users-admin at lists.geeklog.net
> [mailto:geeklog-users-admin at lists.geeklog.net]On Behalf Of Dirk Haun
> Sent: Wednesday, February 05, 2003 3:18 AM
> To: geeklog-users at lists.geeklog.net
> Subject: Re: [geeklog-users] PHP in Header.thtml
>
>
> Shane MacDonald <shane at eyecravedvd.com> 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
> geeklog-users at lists.geeklog.net
> http://lists.geeklog.net/listinfo/geeklog-users
>
> _______________________________________________
> geeklog-users mailing list
> geeklog-users at lists.geeklog.net
> http://lists.geeklog.net/listinfo/geeklog-users
>

--
------------------------------------------------------------------------|
Tony Bibbs         | "I guess you have to remember that those who don't |
tony at tonybibbs.com | hunt or fish often see those of us who do as       |
                   | harmlessly strange and sort of amusing. When you   |
                   | think about it, that might be a fair assessment."  |
                   | --Unknown                                          |
------------------------------------------------------------------------|


_______________________________________________
geeklog-users mailing list
geeklog-users at lists.geeklog.net
http://lists.geeklog.net/listinfo/geeklog-users

_______________________________________________
geeklog-users mailing list
geeklog-users at lists.geeklog.net
http://lists.geeklog.net/listinfo/geeklog-users




More information about the geeklog-users mailing list