Jump to content

Featured Replies

Posted

I have a notice in my panel that PHP Blocks in Pages will no longer be supported. We utilize these for important site functionality, how do we continue? Thank you for your time and assistance.

6 hours ago, The Britain said:

I have a notice in my panel that PHP Blocks in Pages will no longer be supported. We utilize these for important site functionality, how do we continue? Thank you for your time and assistance.

I think you can do this with HTML blocks. Using IPS format: {{$var="hello";}} and {$var} to show it.

  • Author
4 hours ago, Ibai said:

I think you can do this with HTML blocks. Using IPS format: {{$var="hello";}} and {$var} to show it.

Thank you, would this work for heavily utilized PHP? We have custom PHP applications that access custom mysqli databases.

Probably better to (have someone) create a custom app for your use.

  • Author
20 minutes ago, opentype said:

Probably better to (have someone) create a custom app for your use.

I would ideally prefer to keep using PHP blocks as redoing the work would be a tremendous lift for our little site. I assume there won't be a work-around for this depreciation?

17 hours ago, The Britain said:

I would ideally prefer to keep using PHP blocks as redoing the work would be a tremendous lift for our little site. I assume there won't be a work-around for this depreciation?

Yes, the workaround would be to create an application which adds those PHP blocks. To be honest, if its quite a lot of PHP you are using in custom blocks, you would be better with an application in any case. It will cause you less issues when things go wrong

  • Management

I know it's a little more work but using an application to create complex PHP widgets is a better option long term. Not only can you code these widgets in a proper IDE, you can use version control to rollback changes. In addition, the platform doesn't have to use eval to turn strings into PHP code on the fly which is fairly slow and not very secure.

It's a different way of working, but you can achieve the same outcome.

  • 3 months later...

Can someone confirm if this basic

{{$var="true";}}

{if $var}

//html

{else}

//html

{endif}

situation still works?


While we migrated from PHP blocks now in preparation for v5, I still heavily use these in all of my pages...

Recently Browsing 0

  • No registered users viewing this page.