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?
add php code in block?
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.
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.
Re: add php code in block?
You can in the ACP as many as you want to add your own custom block.
Gruß Udo
Re: add php code in block?
hmm, i have enabled php for templates, dunno if that's what i need to do.Kirk wrote:You can in the ACP as many as you want to add your own custom block.
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
-
- 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?
Why you removed the Copyrigth of phpBB.com?mLgz0rn wrote: Boardlink: http://195.190.31.250/forum/portal.php
Powered by phpBB® Forum Software © phpBB Group
V.G. archivar
sorry for my bad english
sorry for my bad english
Re: add php code in block?
i didnt, its removed in the theme im using.
if i swap to another theme its there
if i swap to another theme its there
Re: add php code in block?
I think it's the language file that's messed up, in what language file do i find the CREDIT_LINE part?
Re: add php code in block?
The blocks where you have created the ACP, there will only html and bbcode.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
If you want a block with php you need to create you one according to these Instructions.
Gruß Udo
Re: add php code in block?
Alright thanks alotKirk wrote:The blocks where you have created the ACP, there will only html and bbcode.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
If you want a block with php you need to create you one according to these Instructions.
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