Custom Block php code?

Current Version: 2.0.2
Released: 2013-10-27
Forum rules
Before creating a new support thread, please take a look at the board3 Portal FAQ and use the search!
Many questions have already been answered.
Locked

Topic author
plague69
Active Member
Posts: 2
Joined: 31. May 2012 22:30

Custom Block php code?

Post 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?
User avatar

Marc
Dev
Posts: 2504
Joined: 17. July 2008 21:08
phpBB.de User: marc1706
phpBB.com User: Marc
Location: Clausthal-Zellerfeld / München
Contact:

Re: Custom Block php code?

Post 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

Topic author
plague69
Active Member
Posts: 2
Joined: 31. May 2012 22:30

Re: Custom Block php code?

Post by plague69 »

Thanks for your reply! Great job on Board3!

ixl
Sponsor
Posts: 83
Joined: 26. October 2009 21:40
phpBB.de User: IXL
phpBB.com User: IXLUKCOM
Location: UK
Contact:

Re: Custom Block php code?

Post 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.
I.X.L

Just because it worked for you, doesnt mean it's right. ;)

http://WWW.TEAMGAMERS.CO.UK
Locked

Return to “Board3 Portal 2.0.x - English Support”