PDA

View Full Version : how to make script appear on template


gtcave
07-15-2006, 04:12 PM
Hey, i have a small script that works perfectly standalone.

It basically reads news from my main site database and displays it. It works on the standalone php page fine.

Its a table with 5 rows showing titles of the latest articles and links them.

What i want to do is make this appear just under my navbar.

Im not sure how to put it there. I tried pasteing all the php code in the navbar template but didnt work.

Please help if ya know, i needa get this done.

Regards

Paul M
07-15-2006, 06:30 PM
You cannot put php code in templates.

You would have to create a plugin for the code and build the output into a variable, and add the variable to the navbar template.

gtcave
07-15-2006, 06:48 PM
edited: neva mind found the solution