PDA

View Full Version : including php files in header.tpl


mouse
10-05-2005, 05:01 AM
i have been searching but find nothing. im trying to add...

Content visible to registered users only.
i get...

require('path/to/ads/ad_class.php');echo $ads_class->adcode( );'; ?>

above the site title... any help would be appreciated thanks

VSDan
10-05-2005, 09:29 AM
Header.tpl is a template file, and not a PHP file. You need to use Smarty tags. Try the following using {php}{/php} tags:

Content visible to registered users only.