Simple Machines Community Forum

General Community => Scripting Help => Aiheen aloitti: Moif - marraskuu 29, 2007, 03:02:58 IP

Otsikko: Including PHP
Kirjoitti: Moif - marraskuu 29, 2007, 03:02:58 IP
Hi there,

I run a radio station and I'm trying to implement a listener display script onto my index.template.php so it shows the show name etc.

I've actually managed to get it working by copying and pasting the php code into a tabled area at the top of my forum in the index.template.php but I'm getting a shed load of errors:

Use of undefined constant SONGTITLE - assumed 'SONGTITLE'
Use of undefined constant SERVERTITLE - assumed 'SERVERTITLE'

etc etc

I understand there's a way I can upload this php file on it's own into the theme folder and 'call it' into index.template.php and have it display in said tabled area by using includes but I haven't been very successful so far.

Can anyone explain what it is I need to do? I'm very close :)
Otsikko: Re: Including PHP
Kirjoitti: Moif - marraskuu 30, 2007, 03:44:01 AP
I ended up using an iFrame.
Otsikko: Re: Including PHP
Kirjoitti: SleePy - joulukuu 13, 2007, 11:32:11 AP
Those errors usually mean you are using something like $var[text] instead of $var['text'].