travelI'm on Holidays until the 19th august.

The questions posted during this period will receive no answer, so please be patient and wait before posting in the forum. Thank you

New registrations are suspended during this period

Je suis en vacances jusqu'au 19 aout.

Je ne répondrai à aucune question postée durant cette période. Merci d'attendre mon retour. Merci

Les inscriptions sur le site sont suspendues pendant cette période

 

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: 21382
  • Karma: 427
  • Thank you received: 2702
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

Please Log in to join the conversation.

Joomlack Webmaster and Developer

PHP stripped 03 Jun 2019 16:54 #52765

That's exactly what is happening to me - the code gets commented out every time.

Please Log in to join the conversation.

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

PHP stripped 03 Jun 2019 17:20 #52768

  • ced1870
  • ced1870's Avatar
  • Offline
  • Administrateur
  • Administrateur
  • Posts: 21382
  • Karma: 427
  • Thank you received: 2702
but this has nothing to do with Page Builder CK in my case ...

Please Log in to join the conversation.

Joomlack Webmaster and Developer

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.

Please Log in to join the conversation.

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

PHP stripped 03 Jun 2019 17:37 #52770

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

Please Log in to join the conversation.

Joomlack Webmaster and Developer

PHP stripped 03 Jun 2019 17:58 #52771

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

Please Log in to join the conversation.

Joomlack Webmaster and Developer

PHP stripped 03 Jun 2019 18:22 #52772

Yes, with "Activate content plugins" enabled and Direct PHP both enabled and disabled, it fails.

Please Log in to join the conversation.

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

PHP stripped 03 Jun 2019 18:33 #52773

  • ced1870
  • ced1870's Avatar
  • Offline
  • Administrateur
  • Administrateur
  • Posts: 21382
  • Karma: 427
  • Thank you received: 2702
have you tried with my code ?
as I got it working, you shall also :)

Please Log in to join the conversation.

Joomlack Webmaster and Developer

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!

Please Log in to join the conversation.

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

PHP stripped 03 Jun 2019 19:04 #52775

  • ced1870
  • ced1870's Avatar
  • Offline
  • Administrateur
  • Administrateur
  • Posts: 21382
  • Karma: 427
  • Thank you received: 2702
great ! :)

Please Log in to join the conversation.

Joomlack Webmaster and Developer
  • Page:
  • 1
  • 2
Time to create page: 0.211 seconds

Fast and powerful creation, customizable and responsive.

Read More

Qui est en ligne

We have 582 guests and no members online