Php in custom block

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
Delano
Active Member
Posts: 12
Joined: 30. June 2009 23:13

Php in custom block

Post by Delano »

Your Portal Version:
Your phpBB Type: Standard phpBB3
MODs installed: No
Your knowledge: Beginner

What have you done before the problem was there?


What have you already tryed to solve the problem?


Description and Message
Hi, how i can input php code in custom block ?

I try paste this

Code: Select all

openside("www.wsei.edu.pl"); 
echo "<a href='http://www.wsei.edu.pl/'><img src='http://www.esmart.cal.pl/pliki/logowsei.gif'>"; 
echo "<br>"; 
closeside(); 
This is only check code, i wanna paste another code.. But i cant paste php.. I try with <php> but no effect..

Any1 can help ?[/i]
User avatar

Mike
Former Team Member
Posts: 1862
Joined: 3. July 2008 23:59
Location: Schwarzwald / FDS
Contact:

Re: Php in custom block

Post by Mike »

Did you enable php in templates via ACP ?

Also read this: http://area51.phpbb.com/phpBB/viewtopic ... 993#p79993
Check the first Post for the word PHP

There is an explanation about how to use php in template files.

And here you will find a tutorial about this stuff...

;)
kein Support per PN / Messenger
no Support via PM / Messenger

Topic author
Delano
Active Member
Posts: 12
Joined: 30. June 2009 23:13

Re: Php in custom block

Post by Delano »

I enable PHP in security, and paste this code:

Code: Select all

<!-- PHP -->
echo "hello!";
<!-- ENDPHP -->
but at custom block i have this:

Code: Select all

echo "hello!";
No php reading..

BTW theme Black Pearl..
User avatar

Mike
Former Team Member
Posts: 1862
Joined: 3. July 2008 23:59
Location: Schwarzwald / FDS
Contact:

Re: Php in custom block

Post by Mike »

Delano wrote:I enable PHP in security, and paste this code:

Code: Select all

    <!-- PHP -->
    echo "hello!";
    <!-- ENDPHP -->
where did you paste the code?
kein Support per PN / Messenger
no Support via PM / Messenger

Topic author
Delano
Active Member
Posts: 12
Joined: 30. June 2009 23:13

Re: Php in custom block

Post by Delano »

In Administrator Panel, Custom Block..
User avatar

Mike
Former Team Member
Posts: 1862
Joined: 3. July 2008 23:59
Location: Schwarzwald / FDS
Contact:

Re: Php in custom block

Post by Mike »

Did you try to make your own custom block? I use php code too on my Portal, but not at the existing cutom block.... i use my own.
Knowledge Base: Adding Custom Blocks
Maybe this works...
kein Support per PN / Messenger
no Support via PM / Messenger
Locked

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