Hello,
please how to integrate PHP code in a block
and how to integrate iframes or websites
Thank you:))
Hello, |
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.... |
can you explain more please ! PS: you mean via FTP or in administration ? |
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.... |
Thank you
I dont' know why that's not work for me
I past the code
""""" <?php
?>
""""
I see not even the block on my page! |
Do not start php code used in php blocks with the php tags.
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 |
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 |
Thank you
so, I must create a new topic in doplphn 7 ? |
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 |
I don't see "HTML" in func but "Echo" when I change "Echo" to "php", the boc disappears whatever the nature of the content
|
sorry, its ECHO not HTML and what disappear? so much to do.... |
yes I understand but me I found "Echo" loool the Bloc disappers (not boc lol) |
humm!!!! i am still confused. Try clearing the cache. Edit: write PHP in capital letters. so much to do.... |
I don't think that's the problem, I clean cache every time I will upload a picture this evening ( I can't now ) |
It does matter. PHP must be in capital letters. The block types are case-sensitive. https://www.deanbassett.com |
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 """""""""""" """"""""""""
not like this """""""""""" <?php
?>
"""""""""""" C- func must be change to Php not php
for me PHP doesn't function (Php Function well) PHP |