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

TOPIC: PHP stripped

PHP stripped 22 May 2019 02:20 #52639

Only happens in a PB module. I use the following for my base footer code and modify as needed:
<p><a href="">Home</a> | <a href="contact">Contact</a> | Phoenix Website Design by <a href="http://www.citruskiwi.com" target="_blank" rel=nofollow />CitrusKiwi</a></p>
<p>Copyright © 2005 - <?php echo date("Y"); ?>. Business Name. All rights reserved.</p>

However, despite JCE being set to allow PHP, on save,
<?php echo date("Y"); ?>
is commented out to
<!--?php echo date("Y"); ?-->
. Makes no difference whether Activate Content Plugins is set or not. When using this in a custom module it's fine, though I do have to have the plugin (3rd party) DirectPHP installed and activated.

In the past I've just done a custom module, then brought that into a PB module using the module element. Why would that be OK, but using direct in a PB module isn't?
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 22 May 2019 09:09 #52647

  • ced1870
  • ced1870's Avatar
  • Offline
  • Administrateur
  • Administrateur
  • Posts: 21901
  • Karma: 427
  • Thank you received: 2751
Hi
I have to check this problem

CEd
Joomlack Webmaster and Developer

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

PHP stripped 22 May 2019 10:55 #52656

  • ced1870
  • ced1870's Avatar
  • Offline
  • Administrateur
  • Administrateur
  • Posts: 21901
  • Karma: 427
  • Thank you received: 2751
I'm trying into an article without PBCK, I got exactly the same ...
Joomlack Webmaster and Developer

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

PHP stripped 22 May 2019 12:42 #52658

For an ordinary Joomla article or custom module, you need to have Allow PHP set in JCE, DirectPHP plugin installed and activated and set Prepare Content to "Yes" under the module tab Options. Then the PHP is not stripped..
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 22 May 2019 12:44 #52659

  • ced1870
  • ced1870's Avatar
  • Offline
  • Administrateur
  • Administrateur
  • Posts: 21901
  • Karma: 427
  • Thank you received: 2751
a bit complicated ... no ? :)
what about using Rereplacer or something like that ?
Joomlack Webmaster and Developer

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

PHP stripped 22 May 2019 12:49 #52660

Perhaps. :-) I've been using this method for so many years I'm used to it. And I think you meant Sourcerer from Peter van Western at Regular Labs. I'll give that a go and see if PBCK still does the same.
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 22 May 2019 13:04 #52661

  • ced1870
  • ced1870's Avatar
  • Offline
  • Administrateur
  • Administrateur
  • Posts: 21901
  • Karma: 427
  • Thank you received: 2751
the fact is that I shall test the Direct PHP plugin, because currently I don't know how it works
I think that the problem is there
Joomlack Webmaster and Developer

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

PHP stripped 22 May 2019 17:21 #52662

Just tried it with Sourcerer (disabled the DirectPHP plugin) - same issue. The PHP is being commented out. I've never had Sourcerer code touched before so this was quite a surprise! I have Activate Content Plugins set to Yes (it does the same with it set to No as well).
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 22 May 2019 17:58 #52667

  • ced1870
  • ced1870's Avatar
  • Offline
  • Administrateur
  • Administrateur
  • Posts: 21901
  • Karma: 427
  • Thank you received: 2751
ok, please also remind me next week, I will test this more in deep
Joomlack Webmaster and Developer

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

PHP stripped 29 May 2019 14:17 #52734

Nudge nudge again Ced! :- :-)
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.

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

Fast and powerful creation, customizable and responsive.

Read More

Qui est en ligne

We have 543 guests and no members online