11
skalpa
Re: Does XOOPS ...
  • 2003/11/18 2:58

  • skalpa

  • Quite a regular

  • Posts: 300

  • Since: 2003/4/16


It's a security feature integrated into smarty.
Like this you can ask "template designers" to update your site appearance and they won't mess your site (useful for big companies, boring for most of the people)

Here's the magic word:
(hehe, I'm the only real mage here, not the old guy )

In /class/smarty/Smarty.class.php change
var $php_handling    =  SMARTY_PHP_PASSTHRU;


(in my version it's line 200) and replace SMARTY_PHP_PASSTHRU with SMARTY_PHP_ALLOW

That makes me think there should be a system option for this. I'll try to do it later.
Try it like this.


ajax: It's a forums fault.
The real code (I believe) is this:

include (  ' http: //www.nettendo.com/nav/navbar.php ' );


Skalpa.>

12
gstarrett
Re: Does XOOPS ...
  • 2003/11/18 3:20

  • gstarrett

  • Friend of XOOPS

  • Posts: 174

  • Since: 2002/3/12


I've used PHP in my template successfully, but I used it to calculate and assign the result to smarty variables. I had also tried to go the include route, but it wasn't practical AFAICT. See the thread for more information:

https://xoops.org/modules/newbb/viewtopic.php?topic_id=10817&forum=5#forumpost43374

Login

Who's Online

158 user(s) are online (91 user(s) are browsing Support Forums)


Members: 0


Guests: 158


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits