logo

Introduction

Core Enhancements

DirectPHP - a plugin that allows direct embedding of PHP commands right inside Joomla content page!

  • Get this
  • Favourite
  • Report

Available for all Joomla versions: Joomla 1.0.x, native 1.5.x, 1.6.x, 1.7.x, 2.5.x and 3.0.x!

VIP: Don't forget to set the Filter Type to "No Filtering" so that you can enter PHP codes in a Joomla 1.6/1.7/2.5/3.0 articles.

Latest Update

v3.0 (for Joomla 3.0)
Released March 21, 2013

v2.5 (for Joomla 2.5)
Released January 25, 2012

v1.7 (for Joomla 1.7)
Released October 10, 2011

Native version of DirectPHP for Joomla 1.7!

Latest version: 1.6 (for Joomla 1.6)
Released Feb 21, 2011
Native version of DirectPHP for Joomla 1.6!

Latest version: 1.06 (for Joomla 1.0) and 1.56 (for Joomla 1.5).
Added one more parameter "Using No Editor". If you're not using any editor when editing content articles, select 'yes' for this parameter. This will allow you to freely use any HTML tags (such as or ).

Latest version: 1.05 (for Joomla 1.0) and 1.55 (for Joomla 1.5).
Main update: Thanks to Salvatore who informed me about some "mysterious" double-byte characters that get inserted into the DirectPHP code by the content editor of some of the non-English Joomla. These double-byte characters will cause error when processing the PHP commands with eval. Have fixed this in this version.

Latest version: 1.04 (for Joomla 1.0) and 1.54 (for Joomla 1.5).
Main update: now works with PHP4!

Background

Like many other PHP programmers who use Joomla, all I wanted is a simple wish: the ability to include PHP in Joomla content page.

I did some research. Looks like currently the best plugin out there with good user feedback is Jumi. I tried. It works. But something is still missing. The problem I have with Jumi is that it only allows you to call or include another .php file. It doesn't allow you to include PHP commands right inside the content page.

What this means is that to run some PHP commands, you have to put them in an intermediate PHP file. You have to have this intermediate file even if all you want is to display the current date and time with "echo date('Y-m-d H:i:s')"! Imagine having hundreds of dynamic content pages. The intermediate files accumulate more and more and become difficult to maintain.

This is the reason I developed DirectPHP - a plugin that allows direct embedding of PHP commands right inside Joomla content page!

Key Features

  • You can write direct PHP statements right inside the content page using the standard the standard php construct.

  • You can freely intermix static contents with php commands.

  • You can edit the php code right inside the default TinyMCE WYSIWYG Editor!

  • You can easily serve different contents for registered and non-registered members.

  • You can use 'include' or 'require' to load in your favorite PHP library and call any of the functions inside the library.

  • Ability to bloc


Functionality

I tested this with the latest version of Joomla 3.7.2 and it is still working great. Used it together with the CodeMirror Editor

Ease of use

Just install, enable and you are ready to insert php code directly to any article.


Functionality

Does not work within modules (custom html) but works in articles. Joomla 3.3.6. Also more people having the same problems (in your site)

Ease of use

Real easy out of the box

Documentation
I used this to: Would be great if the module problem will be fixed, coz its way better to use for php then sourcerer because of its lightweight. Thanks

Been using DirectPHP for so long, I can't remember why I haven't reviewed it till now. It has always worked excellently for my custom code needs. Used to use Jumi, but DirectPHP beats that hands down since you can type your PHP code into Joomla! articles directly. Difficulty level is minimal, instructions are clear and concise, and the steps do not take up to 5 minutes to get you started. I recommend!


Great extension


Posted on 06 August 2014

Great product. I use Joomla in a unique way and without being able to put PHP direct into the article I could not use Joomla. Thanks


I've used other php plugins such as Juni. They work but I always thought it would be nice just to type the php code into Joomla.



I needed to add some php code today and decided to do a quick search and came across this plugin. I was looking for the crazy brackets or special hash tags that it took to make it work and to my surprise there were none. Simply type the php code into you content, WITH YOUR FAVORITE EDITOR TURNED ON!


Great plugin


Posted on 20 February 2014

DirectPHP is turning into one of my most used plugins. This functionality should be part of core Joomla. Excellent.


Only for basic php


Posted on 05 January 2014

Is a good extension but I tried to connect to a remote database using php and it doesn't work (I tested the code outside joomla and it works), so I guess is not suitable for "more complicated" php. For some basic one it worked perfectly. Thanks!


Great!


Posted on 31 July 2013

This plugin was exactly what I was looking for!



Thank you!!


Perfect!


Posted on 29 March 2013

I was looking for a replacement for Sourcerer as the plugin kept showing up in Joomla's error log and it was quite expensive for the Pro version. After downloading this, enabling the plugin, I was able to add the PHP date field to Footer (as in Copyright 2013). It also lets you encode forms so you can have a newsletter signup form for say constant contact. Haven't tested it on JS (for google adsense) but I don't think it will be an issue.



Just be sure to insert your code by clicking the HTML editor button (in TinyMCE and JCE) and placing it there. Click save and Voila! Great plugin, great support, and it's free!


Fantastic! I had embedded PHP working in seconds without any need for configuration. Just remember to enable the plugin after upload / install.

googleMaps by kksou

googleMaps by kksou

Free | Maps & Locations | kksou
3
Score:
98
42 reviews
This plugin allows you to include one or more google maps right inside your content item or article. This is a very light-weight and easy-to-use plugin for displaying googleMaps right inside your Joomla article. You can use this to easily add a map to your company address. Unique features: * uses Google Maps API V3 * You can embed more than one Google Maps within an article * Each Google Map can be of different size, zoom level, map control and map type * Support for kml files * Now works with IE! * With built-in geocoder! i.e. you can specify using standard address instead of longitude and latitude * Built-in street view! * Support for many native languages e.g. Italian, Russian, French * Supports all Joomla versions - 1.0, 1.5, 1.6, 1.7, 2.5 and 3.0! How to Use the googleMaps plugin How to use: http://www.kksou.com/php-gtk2/Joomla-Gadgets/googleMaps-plugin.php#howtouse Tutorials: http://www.kksou.com/php-gtk2/Joomla-Gadgets/googleMaps-plugin.php#tutorials GoogleMaps with Directions This plugin displays the map only. If you want to display the map + driving/walking directions, use the googleDirections plugin: http://extensions.joomla.org/extensions/maps-a-weather/maps-a-locations/map-directions/8487 Latest Version v3.0.30 (for Joomla 3.0 and above) Released Jul 20, 2017 - Added support for responsive design for googleDirections and googleDirections_tohere - Added support for PHP 7 v3.0.28 (for Joomla 3.0 and above) Released Jul 8, 2017 - Added support for Joomla Update System - Tested to work with Joomla 3.7.3 v1.0.26 (for Joomla 1.0), v1.5.26 (for Joomla 1.5), v1.6.26 (for Joomla 1.6), v1.7.26 (for Joomla 1.7), v2.5.26 (for Joomla 2.5), v3.0.26 (for Joomla 3.0 and above) Released Apr 20, 2017 - Support for secured websites (https) - Support for PHP7 v3.0.25 (for Joomla 3.0 and above) Released Nov 16, 2016 As of June 22, 2016, Google now requires everyone to have an API key in order to display Google Maps on your website. Details here. This latest version added support for Google Maps API key. v3.0.23 - for Joomla 3.0 and above Released Dec 20, 2014 Support for Joomla 3.3.6 v3.0.21 - for Joomla 3.0 and above Released Feb 10, 2014 Support for Joomla 3.2.2 v1.0.20 (for Joomla 1.0), v1.5.20 (for Joomla 1.5), v1.6.20 (for Joomla 1.6), v1.7.20 (for Joomla 1.7), v2.5.20 (for Joomla 2.5), v3.0.20 (for Joomla 3.0) Released Apr 21, 2013 Support for Joomla 3.0! Changed onload() to addEvent('load') so that it works with some Joomla templates that also use onload(). v1.0.19 (for Joomla 1.0), v1.5.19 (for Joomla 1.5), v1.6.19 (for Joomla 1.6), v1.7.19 (for Joomla 1.7), v2.5.19 (for Joomla 2.5) Released Mar 24, 2012 Supports zoom and multiple InfoWindows with KML files! v1.0.18 (for Joomla 1.0), v1.5.18 (for Joomla 1.5), v1.6.18 (for Joomla 1.6), v1.7.18 (for Joomla 1.7), v2.5.18 (for Joomla 2.5) Released Feb 4, 2012 added support for Joomla 2.5 add flag w3c=1 => w3c compliant support for IE7! allow googleMaps to display in tabs now allow address to include ' (apostrophe) v2.5.17 (for Joomla 2.5) Released Jan 26, 2012 Native version of the googleMaps plugin for Joomla 2.5! v1.0.17 (for Joomla 1.0), v1.5.17 (for Joomla 1.5), v1.6.17 (for Joomla 1.6), v1.7.17 (for Joomla 1.7) Released Jan 03, 2012 Thanks to feedback from Florian who found out that the reverse geocode lookup by Google sometimes do not gives the right mapping. Have modified the code so that the googleMaps plugin now maps the exact location when latitude/longitude is given. v1.0.16 (for Joomla 1.0), v1.5.16 (for Joomla 1.5), v1.6.16 (for Joomla 1.6), v1.7.16 (for Joomla 1.7) Released Dec 24, 2011 New features: Support for googleDirections multiple stopovers! If no label is specified, will
p
googleSearch (CSE) component

googleSearch (CSE) component

Free | Web Search | kksou
3
Score:
91
8 reviews
This component allows you to add Google's Custom Search Engine (CSE) Search to your Joomla site using the latest Google CSE API. The search results are displayed right inside your Joomla page! No more popup page. No more diversion to other pages. The googleSearch (CSE) Module Note that there is an accompanying googleSearch (CSE) Module that allows you to add a Google search form as a module. This means that you can place the search form in any module position you like. The Google Search Result will be displayed by this component. Latest Version v3.0.7 (for Joomla 3.0 and above) Released Dec 23, 2016 Support for https - resolved one more Mixed Content warning in the "Powered by Google" image Changed the installation method to "Upgrade" so that you now do not need to uninstall before installing the new version. v3.0.6 (for Joomla 3.0 and above) Released Dec 14, 2016 Added new parameter: usehttps. Set this to "Yes" if your site is using https. Default is "No". This resolves the mixed content warning if you are using SSL certificate for your site - "Mixed Content: The page was loaded over HTTPS, but requested an insecure script 'http://maps.googleapis.com/maps/api/js?key=...'. This request has been blocked; the content must be served over HTTPS." Added new parameter: openlinkinsame_window. Set this to "Yes" if you want links to open in the same window. Default is "Yes". If set to "No", links will open in a new window. v3.0.5 (for Joomla 3.0 and above) Released Sep 8, 2016 Support for PHP7 v3.0.4 (for Joomla 3.0 and above) Released Sep 15, 2015 This latest version resolves potential Cross Site Scripting. If you are using this component (any versions, including Joomla 1,0, 1,5, 1.6, 1.7, 2.6 and 3.0 and abvoe), please MAKE SURE you update to the latest version. v3.0.3 (for Joomla 3.0 and above) Released Sep 10, 2015 Support for the latest Joomla 3.4.4! v3.0.2 (for Joomla 3.0 and above) Released Feb 14, 2015 Support for the latest Joomla 3.3.6! v1.6 (for Joomla 1.6), v1.7 (for Joomla 1.7), v2.5 (for Joomla 2.5) Released March 15, 2012 Native version of the googleSearch (CSE) component for Joomla 1.6, 1.7 and 2.5! Live Demo Please click on the demo link above. You can try keywords such as "menu", "joomla", "treeview", etc. Running googleSearch with sh404SEF If you are using the googleSearch component together with sh404SEF: 1. Go to sh404SEF Configuration. 2. Click the "By Component" tab. 3. Look for the component "googleSearch(CSE)", and set the first column as "skip". 4. Don't forget to click "Save". Please also make sure you read the following article: Running googleSearch with sh404SEF: fixing the error 'JFolder::folder: Path is not a folder: /language' http://www.kksou.com/php-gtk2/Joomla/running-googleSearch-with-sh404SEF-fixing-the-error-JFolder-folder-Path-is-not-a-folder-language.php
c
googleDirections

googleDirections

Free | Maps & Locations | kksou
3
Score:
75
5 reviews
This is an easy-to-use and light-weight plugin that allows you to include one or more driving or walking directions provided by Google Maps right inside your content item or article. If you need to display driving or walking directions to your company, or from one place to another, this is the plugin. If you only want to display a Google Map, use the googleMaps plugin: http://extensions.joomla.org/extensions/maps-a-weather/maps-a-locations/maps/8213 If you want to allow users to find ways to your office or some designated place, use the googleDirections - To Here - plugin http://extensions.joomla.org/extensions/extension-specific/extensions-specific-non-sorted/8682 Unique features Uses the latest Google Maps API v3 Support for mobile and responsive design! Support for different transportation mode - DRIVING / BICYCLING / TRANSIT / WALKING You can embed multiple Google Directions within an article Each Google Direction can be of different size, map control and map type Support for kml files You can specify the starting, ending and stopover points using real address or longitude/latitude points Built-in street view! Support for multiple waypoints or stopover points Support for many native languages e.g. Italian, Russian, French Available for all Joomla versions: Joomla 1.0.x, native 1.5.x, 1.6.x, 1.7.x and 2.5.x! How to Use the googleDirections plugin How to use: http://www.kksou.com/php-gtk2/Joomla-Gadgets/googleDirections-plugin.php#howtouse Tutorials: http://www.kksou.com/php-gtk2/Joomla-Gadgets/googleDirections-plugin.php#tutorials Latest Version v3.0.20 (for Joomla 3.0 and above) Released Jul 23, 2017 Display warning message when Google returned zero results for directions. This could happen when Google cannot decode the address, or Google cannot find a valid route from Point A to Point B. v3.0.19 (for Joomla 3.0 and above) Released Jul 20, 2017 Support for responsive design! v3.0.16 (for Joomla 3.0 and above) Released Apr 20, 2017 Support for secured websites (https) Support for PHP7 Support for different transportation mode - DRIVING / BICYCLING / TRANSIT / WALKING v3.0.15 (for Joomla 3.0 and above) Released Nov 16, 2016 As of June 22, 2016, Google now requires everyone to have an API key in order to display Google Maps on your website. This latest version added support for Google Maps API key. v3.0.14 (for Joomla 3.0 and above) Released Dec 20, 2014 Support for the latest Joomla 3.3.6 v1.0.12 (for Joomla 1.0), v1.5.12 (for Joomla 1.5), v1.6.12 (for Joomla 1.6), v1.7.12 (for Joomla 1.7), v2.5.12 (for Joomla 2.5) Released Feb 4, 2012 added support for Joomla 2.5 add flag w3c=1 => w3c compliant support for IE7! allow googleMaps to display in tabs now allows address to include ' (apostrophe) v2.5.11 (for Joomla 2.5) Released Jan 26, 2012 Native version of the googleDirections plugin for Joomla 2.5! v1.0.11 (for Joomla 1.0), v1.5.11 (for Joomla 1.5), v1.6.11 (for Joomla 1.6), v1.7.11 (for Joomla 1.7) Released Jan 03, 2012 Thanks to feedback from Florian who found out that the reverse geocode lookup by Google sometimes do not gives the right mapping. Have modified the code so that the googleDirections plugin now maps the exact location when latitude/longitude are given for the starting, ending and stopover points. v1.0.10 (for Joomla 1.0), v1.5.10 (for Joomla 1.5), v1.6.10 (for Joomla 1.6), v1.7.10 (for Joomla 1.7) Released Dec 24, 2011 New Features: Support for multiple stopovers! Support for vertical alignment Added 3 more tags: stopover, vertical and mapfullwidth Added unit: metric / imperial v1.09 (for Joomla 1.0), v1.59 (for Joomla 1.5), v1.69 (for Joomla 1.6), v1.79 (for Joomla 1.7) Released Nov 15, 2011 Now uses Google Maps API v3! Key advantages in Google Maps API v3 includes: Built-in
p
To Here for googleDirections

To Here for googleDirections

Free | Extensions Specific Non-sorted | kksou
3
Score:
73
3 reviews
This plugin is an easy-to-use and light-weight plugin for displaying Google directions from user-specified address to your designated place (e.g. your company or office). You specify a designated place to be the destination, and let the user enter the address he or she is coming from. Google will then provide the driving or walking directions from the user-specified address to your designated place. Unique Features Uses the latest Google Maps API v3 Support for mobile and responsive design! Support of mobile / laptop GPS to access Current Location Support for different transportation mode - DRIVING / BICYCLING / TRANSIT / WALKING You can embed multiple Google Directionstohere within an article Each Google Direction can be of different size, map control and map type Support for kml files You can specify the "home position" using real address or longitude/latitude points Built-in street view! Support for many native languages e.g. Italian, Russian, French Available for all Joomla versions: Joomla 1.0.x, native 1.5.x, 1.6.x, 1.7.x and 2.5.x! Mobile GPS For mobile GPS to work for Current Location, your website must be using HTTPS (secured server). The client must also allow access to its current location. Latest Version v3.0.15 (for Joomla 3.0 and above) Released Jul 23, 2017 Support of mobile / laptop GPS to access Current Location NOTE: to use this feature, your website must be using https. The client must also allow access to its current location. v3.0.14 (for Joomla 3.0 and above) Released Jul 20, 2017 Support for responsive design! v3.0.11 (for Joomla 3.0 and above) Released Apr 20, 2017 Support for secured websites (https) Support for PHP7 Support for different transportation mode - DRIVING / BICYCLING / TRANSIT / WALKING v3.0.10 (for Joomla 3.0 and above) Released Nov 16, 2016 As of June 22, 2016, Google now requires everyone to have an API key in order to display Google Maps on your website. Details here. This latest version added support for Google Maps API key. v3.0.9 (for Joomla 3.0 and above) Released Dec 20, 2014 Support for the latest Joomla 3.3.6 v1.0.8 (for Joomla 1.0), v1.5.8 (for Joomla 1.5), v1.6.8 (for Joomla 1.6), v1.7.8 (for Joomla 1.7), v2.5.8 (for Joomla 2.5) Released Feb 4, 2012 added support for Joomla 2.5 add flag w3c=1 => w3c compliant support for IE7! allow googleMaps to display in tabs now allows address to include ' (apostrophe) support for vertical alignment v2.5.7 (for Joomla 2.5) Released Jan 26, 2012 Native version of the googleDirections - To Here - plugin for Joomla 2.5! v1.0.7 (for Joomla 1.0), v1.5.7 (for Joomla 1.5), v1.6.7 (for Joomla 1.6), v1.7.7 (for Joomla 1.7) Released Jan 03, 2012 Thanks to feedback from Florian who found out that the reverse geocode lookup by Google sometimes do not gives the right mapping. Have modified the code so that the googleDirections_tohere plugin now maps the exact location when latitude/longitude is given when specifying the "home position". One other new feature for this new version is that: the user can now press the Enter key (as oppose to pressing the "Get Directions" button) to get the directions to your home position. v1.0.6 (for Joomla 1.0), v1.5.6 (for Joomla 1.5), v1.6.6 (for Joomla 1.6), v1.7.6 (for Joomla 1.7) Released Dec 24, 2011 Support for multiple stopovers! v1.0.5 (for Joomla 1.0), v1.5.5 (for Joomla 1.5), v1.6.5 (for Joomla 1.6), v1.7.5 (for Joomla 1.7) Released Nov 15, 2011
p

DirectPHP

Version:
3.0
Developer:
kksou
Last updated:
Jan 08 2015
Date added:
Mar 27 2008
License:
GPLv2 or later
Type:
Free download
Includes:
Compatibility:
Download

This extension does NOT implement the Joomla! Update System

Demo Support Documentation
  • Overall
  • Functionality

  • Ease of use

  • Documentation

  • Support