If you are not registered or logged in, you may still use these forums but with limited features. Show recent topics
  [Search] Search   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [FAQ]  FAQ 
[Register] Register / 
[Login] Login 
Advanced poll: php into templates  XML
Forum Index » Support Forum
Author Message
Anonymous



How can I insert php code into templates in advanced Poll???
Anonymous



Many ways. Save code as seperate file and then call it with
<?php include("your/filename")?> at the relevant position in your document.
Anonymous



emptyhead wrote:Many ways. Save code as seperate file and then call it with
<?php include("your/filename")?> at the relevant position in your document.


Hmmm. That doesn't seem to work for me. I created a simple echo statement saved as "snipplet.php". Then wrote <?php include("snipplet.php"); ?> in the result_head. Saves to database, but code is not parsed in preview or poll results.

-fred
 
Forum Index » Support Forum
Go to:   
Based on the open source JForum