Advertisement:

Including PHP

Aloittaja Moif, marraskuu 29, 2007, 03:02:58 IP

« edellinen - seuraava »

Moif

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 :)



Moif

I ended up using an iFrame.



SleePy

Those errors usually mean you are using something like $var[text] instead of $var['text'].
Jeremy D ~ Site Team / SMF Developer ~ GitHub Profile ~ Join us on IRC @ Libera.chat/#smf ~ Support the SMF Support team!

Advertisement: