add php code in block?

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
mLgz0rn
Active Member
Posts: 5
Joined: 16. April 2013 16:17

add php code in block?

Post by mLgz0rn »

Your Portal Version: 2.0.1
Your phpBB Type: Standard phpBB3
MODs installed: No
Your knowledge: Advanced Knowledge
Boardlink: http://195.190.31.250/forum/portal.php

What have you done before the problem was there?


What have you already tryed to solve the problem?


Description and Message
It's really just a question.

Is there anyway to add php code to a custom block?
User avatar

Kirk
Dev
Posts: 1956
Joined: 27. July 2010 18:02
phpBB.de User: Kirk
Contact:

Re: add php code in block?

Post by Kirk »

You can in the ACP as many as you want to add your own custom block.
Gruß Udo

Topic author
mLgz0rn
Active Member
Posts: 5
Joined: 16. April 2013 16:17

Re: add php code in block?

Post by mLgz0rn »

Kirk wrote:You can in the ACP as many as you want to add your own custom block.
hmm, i have enabled php for templates, dunno if that's what i need to do.
But when I try to post a php code in the custom blocks code, the block just shows up the php code in the portal site.
if have tried with both
<!-- PHP -->
code here
<!-- ENDPHP -->

and

<?php
?>

but none of those worked
User avatar

archivar
Portal Professional
Posts: 1960
Joined: 19. April 2009 21:34
phpBB.de User: archivar
phpBB.com User: archivar
Location: Deutschland

Re: add php code in block?

Post by archivar »

mLgz0rn wrote: Boardlink: http://195.190.31.250/forum/portal.php
Why you removed the Copyrigth of phpBB.com?
Powered by phpBB® Forum Software © phpBB Group
V.G. archivar
sorry for my bad english

Topic author
mLgz0rn
Active Member
Posts: 5
Joined: 16. April 2013 16:17

Re: add php code in block?

Post by mLgz0rn »

i didnt, its removed in the theme im using.

if i swap to another theme its there

Topic author
mLgz0rn
Active Member
Posts: 5
Joined: 16. April 2013 16:17

Re: add php code in block?

Post by mLgz0rn »

I think it's the language file that's messed up, in what language file do i find the CREDIT_LINE part?
User avatar

Kirk
Dev
Posts: 1956
Joined: 27. July 2010 18:02
phpBB.de User: Kirk
Contact:

Re: add php code in block?

Post by Kirk »

mLgz0rn wrote:hmm, i have enabled php for templates, dunno if that's what i need to do.
But when I try to post a php code in the custom blocks code, the block just shows up the php code in the portal site.
if have tried with both
<!-- PHP -->
code here
<!-- ENDPHP -->

and

<?php
?>

but none of those worked
The blocks where you have created the ACP, there will only html and bbcode.
If you want a block with php you need to create you one according to these Instructions.
Gruß Udo

Topic author
mLgz0rn
Active Member
Posts: 5
Joined: 16. April 2013 16:17

Re: add php code in block?

Post by mLgz0rn »

Kirk wrote:
mLgz0rn wrote:hmm, i have enabled php for templates, dunno if that's what i need to do.
But when I try to post a php code in the custom blocks code, the block just shows up the php code in the portal site.
if have tried with both
<!-- PHP -->
code here
<!-- ENDPHP -->

and

<?php
?>

but none of those worked
The blocks where you have created the ACP, there will only html and bbcode.
If you want a block with php you need to create you one according to these Instructions.
Alright thanks alot :)

I found out what was wrong with the copyright thingy, when I updated to phpbb 3.0.11 the language file got overwritted somehow, and that messed the whole thing up.
So I just reinstalled the whole thing instead
Locked

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