Page 1 of 1

Custom Block php code?

Posted: 31. May 2012 22:41
by plague69
Your Portal Version: 2.0.0b1
Your phpBB Type: phpBB 3.0.10
MODs installed: Yes
Your knowledge: Soso
Boardlink: http://www.aimclan.net

PHP Version: 5.2.17
MySQL Version: 5.0.95-community

What have you done before the problem was there?
Googled for answers but found none

What have you already tryed to solve the problem?
I have tried using the Custom Block normally, also by editing it's template and the data value in mysql. The board seemed to ignore the SQL value, and shows blank outputs if I just included the PHP code.

Description and Message
I have a php script that outputs some match information and I wish to include it on the main page of the site for select member groups only. I have used iFrames but the dynamic nature of the output makes it look very ugly. I wish to use a simple php "include" function and embed the data. Is this doable?

Re: Custom Block php code?

Posted: 1. June 2012 23:02
by Marc
You can't add PHP code in a custom block. You would have to create one yourself:
knowledge/kb_show.php?id=54

Re: Custom Block php code?

Posted: 2. June 2012 11:33
by plague69
Thanks for your reply! Great job on Board3!

Re: Custom Block php code?

Posted: 5. June 2012 21:24
by ixl
Could you not add the code into a php file, then create an iframe set of code with a link to that php file into a custom block.

Its what I use for 2 blocks on ours.