PHP stripped

Replied by ced1870 on topic PHP stripped

Posted 4 years 10 months ago #52762
ok, I have now tested by my side with
Code:
<?php echo date("Y"); ?>
+ JCE => allow PHP = yes
the code is saved but in front end in the article, I don't see anything and in the source code :

<!--?php echo date("Y"); ?-->


currently , without PBCK at all, I'm not able to execute the PHP code like you

Joomlack Webmaster and Developer

by ced1870

Please Log in or Create an account to join the conversation.

Replied by trogladyte on topic PHP stripped

Posted 4 years 10 months ago #52765
That's exactly what is happening to me - the code gets commented out every time.

A good landing is one you can walk away from.
A great landing is one where you can reuse the aircraft!

Please Log in or Create an account to join the conversation.

Replied by ced1870 on topic PHP stripped

Posted 4 years 10 months ago #52768
but this has nothing to do with Page Builder CK in my case ...

Joomlack Webmaster and Developer

by ced1870

Please Log in or Create an account to join the conversation.

Replied by trogladyte on topic PHP stripped

Posted 4 years 10 months ago #52769
I have lots of sites using this code successfully in a Custom Module, with DirectPHP activate and Options | Prepare Content set to Yes. Nothing is stripped or commented out. Only when I use a CKPB module does this happen. Not even Sourcerer keeps the code from beign commented out in a CKPB module.

A good landing is one you can walk away from.
A great landing is one where you can reuse the aircraft!

Please Log in or Create an account to join the conversation.

Replied by ced1870 on topic PHP stripped

Posted 4 years 10 months ago #52770
no, I'm explaining you that in my test I was into an article, without Page Builder CK. I can not make it work
I finally got it working, because I did not enable the directphp plugin ! now checking in page builder ...

Joomlack Webmaster and Developer

by ced1870

Please Log in or Create an account to join the conversation.

Replied by ced1870 on topic PHP stripped

Posted 4 years 10 months ago #52771
in the page builder ck module, have you enabled "Activate content plugins" in the advanced options ?
works fine, and using

{?php echo date("Y"); ?}

this avoid the editor filtering and works with DirectPHP

Joomlack Webmaster and Developer

by ced1870

Please Log in or Create an account to join the conversation.

Time to create page: 0.643 seconds

Fast and powerful creation, customizable and responsive.

Read More

We have 799 guests and no members online