plugin: DirectPHP for Section/Category Description
Written by kksou   
Tuesday, 22 April 2008

This plugin allows you to include php commands inside the Section/Category description.

The DirectPHP plugin which I released in March 2008 allows you to include PHP commands in content items only.

With this plugin, you can now include PHP commands right inside the Section/Category description. You can see a live example here.

Note: You might also be interested in another plugin loadmodule for Section/Category Description that allows you to include modules in the Section/Category description.


Important Note: Blocking of PHP commands

By default, I've blocked some of the potentially "risky" commands, e.g. system, fopen, unlink, rmdir, etc.

You can view the entire list of PHP commands that are blocked in the plugin's property page. In there, you can also add, edit or delete this list of commands to suit your needs.

If you need to use any of these commands (e.g. mkdir) from within the content page, put them in one of the library files on your server, do a include() and then call that function. This is a much safer method.

If you insist, you may choose to turn off the blocking in the property page. However, I would strongly advise that you do so only if you're the only one maintaining your Joomla site. If you're opening up the adding and editing of content pages to the public, DO NOT turn off the blocking. It's too dangerous.

Disclaimer

DirectPHP is a simple, yet flexible and powerful plugin. I'm using it on this website. I'm sharing with you here because I think it will be very useful to some of you.

Your use of this plugin is at your own risk. kksou.com makes no warranties or representations, express or implied, as to the functionality or usefulness of this plugin. kksou.com disclaims all warranties, express or implied, including without limitation warranties of merchantability and fitness for a particular purpose. kksou.com disclaims liability for any direct, indirect, incidental, consequential, special, exemplary, punitive or other damages, or lost profits, that may result, directly or indirectly, from your use of this plugin, including without limitation any damage to computer systems, hardware or software, loss of data, or any other performance failures, or any errors, bugs, viruses or other defects that result from or are associated with use of this plugin.

Download

How to install (Joomla 1.0.x)

  1. Download the plugin and unzip it into a folder.
  2. From the Installers menu, select mambots. In the field "Install directory", enter the folder location (where you unzipped the file) and click Install.
  3. From the Mambots menu, select Site Mambots.
  4. Make sure the plugin "DirectPHP for Section/Category Description" is published. If you see a cross in the Published column, just click on it. It will turn into a green tick.
  5. To use this plugin, you need to add a trigger. Please refer to the article How to include PHP commands in Section/Content Description (for Joomla 1.0.x).

How to install (Joomla 1.5.x)

  1. Download the plugin and unzip it into a folder.
  2. From the Extensions menu, select Install/Uninstall. In the field "Install directory", enter the folder location (where you unzipped the file) and click Install.
  3. From the Extensions menu, select Plugin Manager.
  4. Enable the plugin (DirectPHP for Section/Category Description) - make sure there is a green tick in the Enabled column.
  5. To use this plugin, you need to add a trigger. Please refer to the article How to include PHP commands in Section/Content Description (for Joomla 1.5.x).

Tutorials


 
< Prev   Next >

Blog - Forum - Privacy Policy - Contact Us
Copyright © 2006-2012. kksou.com. All Rights Reserved