Php code

Hello,

please how to integrate PHP code in a block
 
and how to integrate iframes or websites

Thank you:))

Quote · 12 Jan 2012

Hi!

You can add php code in block by changing "Func" column in sys_page_compose table to "PHP" from "HTML" for your block.

and i frame can also be inserted in the block through the same table.

Good luck.

so much to do....
Quote · 12 Jan 2012

can you explain more please !

PS: you mean via FTP or in administration ?

Quote · 12 Jan 2012

1. create a html block in admin panel.

2. Open your dolphin database in phpmyadmin

3. open sys_page_compose and go to last page and edit your html block.

4. change Func field from "HTML" to "PHP".

5. Paste your code inside Content field.

6. hit "Go" in the bottom of the page.

7. clear your database cache and done.

enjoy.......:)

so much to do....
Quote · 12 Jan 2012

Thank you

 

I dont' know why that's not work for me

 

I past the code

 

"""""

<?php
exit();
?>

""""

 

I see not even the block on my page!

Quote · 12 Jan 2012

Do not start php code used in php blocks with the php tags.

Just this.

exit();

You also most likley cannot do that anyway. header redirects in a page block do not work. It creates a error headers already sent and thus the block cannot be displayed. You can only redirect within a page block using a javascript redirect call.

I recommend you just try this to make sure your php block works.

echo 'It Works';





https://www.deanbassett.com
Quote · 12 Jan 2012

Moderator may want to move this topic. It does not belong in the General and Presale forum. Should be in the Dolphin 7 forum.

https://www.deanbassett.com
Quote · 12 Jan 2012

Thank you

 

so, I must create a new topic in doplphn 7 ?

Quote · 12 Jan 2012

 

Thank you

 

so, I must create a new topic in doplphn 7 ?

No, that would only make me unhappy.

 

Moved. 

BoonEx Certified Host: Zarconia.net - Fully Supported Shared and Dedicated for Dolphin
Quote · 12 Jan 2012

I don't see "HTML" in func

but "Echo"

when I change "Echo" to "php", the boc disappears whatever the nature of the content

 

 

 

Quote · 13 Jan 2012

sorry, its ECHO not HTML

and what disappear?

so much to do....
Quote · 13 Jan 2012

yes I understand but me I found "Echo" loool

the Bloc  disappers (not boc lol)

Quote · 13 Jan 2012

humm!!!! i am still confused. Try clearing the cache.

Edit: write PHP in capital letters. 

so much to do....
Quote · 13 Jan 2012

I don't think that's the problem, I clean cache every time

I will upload a picture this evening (  I can't now )

Quote · 13 Jan 2012

It does matter. PHP must be in capital letters. The block types are case-sensitive.

https://www.deanbassett.com
Quote · 13 Jan 2012

Thank you,

the method is :

A-

1. create a html block in admin panel.

2. Open your dolphin database in phpmyadmin

3. open sys_page_compose and go to last page and edit your html block.

4. change Func field from "HTML" to "PHP".

5. Paste your code inside Content field.

6. hit "Go" in the bottom of the page.

7. clear your database cache and done.

B-

the code php must be for example

like this

""""""""""""

exit();

""""""""""""

 

not like this

""""""""""""

<?php
exit();
?>

""""""""""""

C-

func must be change to Php not php

 

for me PHP doesn't function (Php Function well)

PHP

Quote · 13 Jan 2012
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.