Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1
  • 2

TOPIC: PHP stripped

PHP stripped 03 Jun 2019 16:19 #52762

  • ced1870
  • ced1870's Avatar
  • Offline
  • Administrateur
  • Administrateur
  • Posts: 21901
  • Karma: 427
  • Thank you received: 2751
ok, I have now tested by my side with
<?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

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

PHP stripped 03 Jun 2019 16:54 #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.

PHP stripped 03 Jun 2019 17:20 #52768

  • ced1870
  • ced1870's Avatar
  • Offline
  • Administrateur
  • Administrateur
  • Posts: 21901
  • Karma: 427
  • Thank you received: 2751
but this has nothing to do with Page Builder CK in my case ...
Joomlack Webmaster and Developer

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

PHP stripped 03 Jun 2019 17:26 #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.

PHP stripped 03 Jun 2019 17:37 #52770

  • ced1870
  • ced1870's Avatar
  • Offline
  • Administrateur
  • Administrateur
  • Posts: 21901
  • Karma: 427
  • Thank you received: 2751
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

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

PHP stripped 03 Jun 2019 17:58 #52771

  • ced1870
  • ced1870's Avatar
  • Offline
  • Administrateur
  • Administrateur
  • Posts: 21901
  • Karma: 427
  • Thank you received: 2751
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

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

PHP stripped 03 Jun 2019 18:22 #52772

Yes, with "Activate content plugins" enabled and Direct PHP both enabled and disabled, it fails.
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.

PHP stripped 03 Jun 2019 18:33 #52773

  • ced1870
  • ced1870's Avatar
  • Offline
  • Administrateur
  • Administrateur
  • Posts: 21901
  • Karma: 427
  • Thank you received: 2751
have you tried with my code ?
as I got it working, you shall also :)
Joomlack Webmaster and Developer

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

PHP stripped 03 Jun 2019 18:56 #52774

Sorry Ced - you know how it is when you see what you expect to see?!! I didn't notice the curly brackets replacing the <>. Yes it works perfectly - thank you!
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.

PHP stripped 03 Jun 2019 19:04 #52775

  • ced1870
  • ced1870's Avatar
  • Offline
  • Administrateur
  • Administrateur
  • Posts: 21901
  • Karma: 427
  • Thank you received: 2751
great ! :)
Joomlack Webmaster and Developer

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

  • Page:
  • 1
  • 2
Time to create page: 0.251 seconds

Fast and powerful creation, customizable and responsive.

Read More

Qui est en ligne

We have 521 guests and no members online