Add PHP Block to Page Builders

Before, with DeanosTool, it was possible to create PHP Block

Now, it's impossible. This addons is not compatible with 7.3

I am very bored...

Have you an idea ?

Thanks per advance

Quote · 19 Apr 2016

 

yoursite.com/administration/pageBuilder.php?action_sys=addCodeBlock
caredesign.net
Quote · 19 Apr 2016
{"result":"ok"}

OK thanks. I understood

I drag and drop the block, but the block don't display in page.

However, the level is good... (Visible per member and different level)

I forgot anything ?

Quote · 19 Apr 2016

now go to page builder and it show show php block next to html block at the bottom

caredesign.net
Quote · 19 Apr 2016

It's ok, I drag and drop the block, but the block don't display in page.

However, the level is good... (Visible per member and different levels)

Quote · 19 Apr 2016

 

It's ok, I drag and drop the block, but the block don't display in page.

However, the level is good... (Visible per member and different levels)

 Did you actually added something to that block that will be displayed?

so much to do....
Quote · 19 Apr 2016

Yes, TEXT and CODE.  I have make many tests.

I use Dolphin since long time... very curious

Quote · 19 Apr 2016

 

Yes, TEXT and CODE.  I have make many tests.

I use Dolphin since long time... very curious

PHP Blocks won't display if the resulting code does not generate an output.  To test, do a simple php echo.

Geeks, making the world a better place
Quote · 19 Apr 2016

can you post a sample of the code you are adding. if it is javascript then you must close the php tags, and then reopen after javascript. if straight php - DO NOT add that open and closing php tags.

caredesign.net
Quote · 19 Apr 2016

Thanks, that works !

When i type : echo test;     Test display in block.

However, i'd like to display memberNick in form field

If i type echo GET_{memberNick};       GET_{memberNick} display in block

We haven't this problem if we put a variable on a link in menu toolbar

Have you an idea ?

Very thanks per advance

Quote · 20 Apr 2016

try

echo getLoggedId();

caredesign.net
Quote · 20 Apr 2016

It will also depend on where you are placing the block; not all pages have access to the same functions.

Geeks, making the world a better place
Quote · 20 Apr 2016

 

try

echo getLoggedId();

 

getNickName();

so much to do....
Quote · 20 Apr 2016
 
 
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.