PHP in blocks?

TheBouncyPherret

PHP in blocks?

Posted:09 Feb 2009 (04:34 UTC)
Is it possible to have PHP in blocks? I tried to make a custom block for the right side of my wiki, but the PHP was showing up as text, and not actually doing what I wanted it to do.

Any ideas?

TBP
Kozuch
Profile Picture
Joined: 06 Mar 2006

Re: PHP in blocks?

Posted:09 Feb 2009 (17:12 UTC)
"Blocks" in bitweaver language are "modules". However, I am not competent to give you an answer.
xing
Joined: 07 Mar 2004

Re: PHP in blocks?

Posted:15 Feb 2009 (07:23 UTC)
it is not possible to use the web interface to have php code evaluated. you will have to write your own module to achieve this. it's fairly simple.

all you need to do is create a couple of files in one of the module folders and that's it. if you look at kernel/modules/mod_powered_by.php and kernel/modules/mod_powered_by.tpl, you will get an idea of how to create your own php / smarty module.

x
  Page 1 of 1  1