Not executing PHP code

Current Version: 1.0.6
Released: 09.01.10
Forum rules
Before creating a new support thread, please take a look in the board3 Portal FAQ and use the search!
Many questions have already been answered.
Locked

Topic author
xTz
Active Member
Posts: 11
Joined: 11. January 2010 01:02

Not executing PHP code

Post by xTz »

Your Portal Version: 1.0.5
Your phpBB Type: Standard phpBB3
MODs installed: Yes
Your knowledge: Basic Knowledge
Boardlink: http://Techn0.eu

MySQL Version: MySQL(i) 5.0.37-log

What have you done before the problem was there?


What have you already tryed to solve the problem?


Description and Message
Hi guys,

I am trying to implement a modification in the portal and for that - I need a PHP script to fill me a table in the center of the portal. I am trying to modify the following file:
portal_root/styles/acidtech/template/portal/block/announcements.html
But it doesn't want to execute ANY PHP script inside. It executes the HTML part and just does not run the PHP one. The script is tested and it's working correctly. But that's not the issue, id doesn't want to execute even phpinfo(); for testing purposes. No PHP code is executed from this file. Does anyone know why?
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: Not executing PHP code

Post by Marc »

That's because phpBB does not execute PHP code inside HTML files. Maybe this helps you:
viewtopic.php?f=21&t=310

Topic author
xTz
Active Member
Posts: 11
Joined: 11. January 2010 01:02

Re: Not executing PHP code

Post by xTz »

Oh, okay, thanks. I got it already fpr the block, this just helps me create it the right way. But, it still does not solve the issue with the PHP code :(
Any way to override that?
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: Not executing PHP code

Post by Marc »

I updated the article for Board3 Portal 1.0.5:
knowledge/kb_show.php?id=51

Topic author
xTz
Active Member
Posts: 11
Joined: 11. January 2010 01:02

Re: Not executing PHP code

Post by xTz »

Wouldn't do me any good, I've already done that the updated way, but thanks for the efforts anyway.
It appeared, that what I needed is described here:
http://www.velvetblues.com/web-developm ... templates/
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: Not executing PHP code

Post by Marc »

Did you take a look at the bottom part where I tell you how you execute PHP code for your block?

Anyhow, if the PHP Code writes the table and you don't know how to write it for phpBB, it's probably better if you do it the way it is described in that link.

Topic author
xTz
Active Member
Posts: 11
Joined: 11. January 2010 01:02

Re: Not executing PHP code

Post by xTz »

Yes, I did. And yes - the PHP code writes the table. I guess it is possible to be done in your way, but then it has to be done the phpBB way - setting template variables etc., which seems to be a lot of work for what I need to be done :mrgreen:
Locked

Return to “board3 Portal 1.0.x - English Support”