php in .tpl files

Register an Account
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 03-17-2007, 05:04 PM
Casual Pligger
 
Join Date: Oct 2006
Posts: 89
is there any way to do this, i read somewhere that you could use

{php} php code in here {/php}

but when i tested it, it didnt work
Reply With Quote
  #2 (permalink)  
Old 03-17-2007, 05:06 PM
Pligg Developer/Admin
Pligg Version: 0
Pligg Template: none
 
Join Date: Jun 2006
Location: Muncie, Indiana
Posts: 3,215
using {php} and {/php} should work. It's used all the time in Pligg.
Reply With Quote
  #3 (permalink)  
Old 03-17-2007, 09:03 PM
Casual Pligger
 
Join Date: Oct 2006
Posts: 89
hmm.... ill keep trying it then. just making sure, its supposer to be

{php}<? ?> {/php}

right?
Reply With Quote
  #4 (permalink)  
Old 03-17-2007, 09:18 PM
Pligg Developer/Admin
Pligg Version: 0
Pligg Template: none
 
Join Date: Jun 2006
Location: Muncie, Indiana
Posts: 3,215
no, you don't have to use <? or ?>, just {php} php code here {/php}
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
/var/log/httpd/error_log messages gr8rcake Questions and Comments 4 06-01-2010 12:25 PM
Pligg Errors tcritic Questions and Comments 4 09-01-2009 10:40 AM
cann't vote in pligg (buliding 802) haxhax Questions and Comments 27 03-10-2007 07:53 AM
dreamhost and validation image problem Xanatos Questions and Comments 17 01-17-2007 02:14 PM
.tpl files & smarty codes explained 3dKiller Questions and Comments 0 04-11-2006 02:52 PM


Pligg Modules and Pligg Templates from Pligg Pro Find support on the Pligg CMS Forum - 24 hours a day! Make a donation to support Pligg CMS development