Page 1 of 1
add php code in block?
Posted: 16. April 2013 16:28
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?
Re: add php code in block?
Posted: 16. April 2013 18:23
by Kirk
You can in the ACP as many as you want to add your own custom block.
Re: add php code in block?
Posted: 16. April 2013 18:44
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
Re: add php code in block?
Posted: 16. April 2013 21:38
by archivar
Why you removed the Copyrigth of phpBB.com?
Powered by phpBB® Forum Software © phpBB Group
Re: add php code in block?
Posted: 16. April 2013 22:26
by mLgz0rn
i didnt, its removed in the theme im using.
if i swap to another theme its there
Re: add php code in block?
Posted: 16. April 2013 22:46
by mLgz0rn
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?
Posted: 17. April 2013 17:37
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.
Re: add php code in block?
Posted: 17. April 2013 19:01
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