Print Topic - Archive
E-Blah Community / Mod Requests and Support / Add PHP Code Inside Your Template
Posted by: Sgt_Rumble, February 20, 2007, 5:25am
Is there a way to add php code to your template.
Posted by: 1850 (Guest), February 20, 2007, 7:16am; Reply: 1
You should be able to use:
|
Code
<?php
your php command
?> |
|
Posted by: Justin, February 20, 2007, 11:54am; Reply: 2
Posted by: iCONICA, November 5, 2008, 2:40pm; Reply: 3
Why not justin? Both this and my own forum uses php in the template to add the notification welcome message for guests... :-/
Posted by: BattleMage, November 6, 2008, 2:23am; Reply: 4
I can imagine that it's not that easy to call a php parser from perl. And I don't really see why someone even want's to run php from within perl ;-)
Posted by: iCONICA, November 6, 2008, 8:16am; Reply: 5
Well it's done here, if you log out you'll see a notification welcoming guests. If you go to my forum you'll see a similar welcome. Those are php within the template.
Posted by: BattleMage, November 7, 2008, 4:30am; Reply: 6
Well done then. How did you manage to run php code? I don't see where php would be run when I log out or in :-)
Posted by: iCONICA, November 7, 2008, 7:33am; Reply: 7
That. It's PHP inside the template, Justin posted it in another thread, It's now being used in my forum to achieve similar results.
Posted by: Van_Helsing, November 25, 2008, 12:29pm; Reply: 8
So as much as I get it, it is posible? Then how? It's just so, that it would be much easier to integrate the forum design into my websyte engine.
Posted by: iCONICA, November 25, 2008, 4:01pm; Reply: 9
Not sure I understand? This thread is discussing if it's possible to put PHP code inside the template.html of eBlah. Not if it's possible to run eblah in a php webpage.. If that's what you mean... Maybe I misunderstood?
PS, yes it is possible to run php code inside the template, but aslong as it's at the bottom, but there's a little more to it than that.. martin helped me with mine.
, I'm 95% sure Justin is using it too.. Because it was his code I'm using, posted on another thread somewhere..
Posted by: Justin, November 27, 2008, 12:53am; Reply: 10
That's Perl, not PHP. You are using <? ?>, like PHP uses (if short tags are enabled), but E-Blah just evaluates the perl within those blocks. No PHP is involved.
Print page generated: March 10, 2010, 6:40am