Hello, I have Drupal 6. I want to create an input format that allows me to insert PHP code in a web page. Of course, this is only for admin. Anyways, I can't figure out how to do that. When I go to "input formats" and select "add input format" I don't see any option to allow PHP code. Help? Daniel.
Enable the PHP module that comes with core (which is disabled by default). On Fri, Jan 29, 2010 at 4:26 PM, Daniel Carrera < daniel.carrera@theingots.org> wrote:
Hello,
I have Drupal 6. I want to create an input format that allows me to insert PHP code in a web page. Of course, this is only for admin. Anyways, I can't figure out how to do that. When I go to "input formats" and select "add input format" I don't see any option to allow PHP code.
Help?
Daniel. -- [ Drupal support list | http://lists.drupal.org/ ]
Thanks. Blake Hall wrote:
Enable the PHP module that comes with core (which is disabled by default).
On Fri, Jan 29, 2010 at 4:26 PM, Daniel Carrera <daniel.carrera@theingots.org <mailto:daniel.carrera@theingots.org>> wrote:
Hello,
I have Drupal 6. I want to create an input format that allows me to insert PHP code in a web page. Of course, this is only for admin. Anyways, I can't figure out how to do that. When I go to "input formats" and select "add input format" I don't see any option to allow PHP code.
Help?
Daniel. -- [ Drupal support list | http://lists.drupal.org/ ]
El vie, 29-01-2010 a las 23:26 +0100, Daniel Carrera escribió:
Hello,
I have Drupal 6. I want to create an input format that allows me to insert PHP code in a web page. Of course, this is only for admin. Anyways, I can't figure out how to do that. When I go to "input formats" and select "add input format" I don't see any option to allow PHP code.
You need to enable PHP filter (core module) best regards, -- Luciano Rossi gcoop - Cooperativa de Software Libre www.gcoop.coop (0054 11) 4856-7925 Luis. M. Drago 364 3 B
Daniel, if this is only for the site admin then they can select Input format > Full HTML when adding or editing the nodes. Sounds like you want something else, I'm just not following what. Marty At 05:26 PM 1/29/2010, you wrote:
Hello,
I have Drupal 6. I want to create an input format that allows me to insert PHP code in a web page. Of course, this is only for admin. Anyways, I can't figure out how to do that. When I go to "input formats" and select "add input format" I don't see any option to allow PHP code.
Help?
Daniel.
You need to make sure that the PHP Filter module is enabled. It is not by default. When you create a new input format you should see the checkbox for PHP there. -----Original Message----- From: support-bounces@drupal.org [mailto:support-bounces@drupal.org] On Behalf Of Marty Landman Sent: Friday, January 29, 2010 2:49 PM To: support@drupal.org Subject: Re: [support] PHP inside nodes? Daniel, if this is only for the site admin then they can select Input format > Full HTML when adding or editing the nodes. Sounds like you want something else, I'm just not following what. Marty At 05:26 PM 1/29/2010, you wrote:
Hello,
I have Drupal 6. I want to create an input format that allows me to insert PHP code in a web page. Of course, this is only for admin. Anyways, I can't figure out how to do that. When I go to "input formats" and select "add input format" I don't see any option to allow PHP code.
Help?
Daniel.
-- [ Drupal support list | http://lists.drupal.org/ ]
participants (5)
-
Blake Hall -
Daniel Carrera -
Luciano Rossi -
Marty Landman -
Metzler, David