Tag Archive for 'Joomla'

Use patTemplate

I don’t know why but only few {third-part} Joomla! developers use patTemplate variables: this library is available in both Joomla! 1.0.x/1.5.x so I really don’t understand why it’s not widely used (I didn’t use it in my early components but I’ve definitely started using it). A simple example is available on their website. If I’m not wrong, even Joseph LeBlanc didn’t write about it in his book (which I’ve previously described).

If you enjoyed this post, make sure you subscribe to my RSS feed!

DokuWiki passes E_STRICT test, others don’t

Having read that

The Zend Framework codebase must be E_STRICT compliant.

on the latest version of a XAMPP server I’ve tested with E_STRICT the three LA(M)P programs that I mostly use: DokuWiki (2007-06-26b), Joomla! (1.5 RC3) and WordPress (2.3.1). Of course DokuWiki is the simplest of them but I was surprised to discover that it can be installed with error_reporting = E_STRICT without showing any warnings (the others showed long lists of them).

If you enjoyed this post, make sure you subscribe to my RSS feed!

A trivial patch for the Joomla 1.5.x installer

I’m not a fan of safe_mode and open_basedir (even before talking to Zeev Suraski when I learnt that it will be removed in PHP 6). Surprisingly, sometimes an easy to find set of safe_mode related bugs, viewed by thousands of eyes, survives for ages. I’ve just sent this trivial patch for the upcoming Joomla 1.5.

If you enjoyed this post, make sure you subscribe to my RSS feed!

Where JToolBarHelper finds icons

Someday this post could save you an hour: do you need to use JToolBarHelper::custom() within Joomla 1.5.x? The icons that it calls by default are placed in administrator/templates/khepri/images/toolbar/ (substitute khepri with the name of your non standard administrator template if you have one) and if you want to use, for example, icon-32-help.png, you have to write something like
JToolBarHelper::custom('up0', 'help.png', 'help.png', 'up', false);
In other words, you have to pass the filename without the starting icon-32- string. If the previous case is not sufficient for you and you want to pass to custom() your custom icon, read this post.

If you enjoyed this post, make sure you subscribe to my RSS feed!

Learning Joomla! 1.5 Extension Development

One year ago I wrote my first Joomla 1.0.x component using com_dailymessage (the component that Joseph L. LeBlanc describes in his The Daily Message Joomla Component Tutorial): now we can read not a new tutorial but a whole book about the upcoming 1.5.x series… I’ve just started reading it but I’ve already found the precise style that I know is his.

If you enjoyed this post, make sure you subscribe to my RSS feed!

Building Websites with Joomla! 1.5 Beta 1

I’ve just finished reading Building Websites with Joomla! 1.5 Beta 1: waiting for the release of Learning Joomla! Extension Development: Creating Modules, Components, and Plugins with PHP as far as I know it is still the only book available that discusses the 1.5 series and my quick reading was enlightening.

If you enjoyed this post, make sure you subscribe to my RSS feed!

A second patch for Joomla com_media

Once again an easy to fix bug viewed by thousands of eyes has survived for ages. Today I sent this patch to Joomla forge to fix another bug in administrator/components/com_media/admin.media.php.

If you enjoyed this post, make sure you subscribe to my RSS feed!

A patch for Joomla com_media

Once again an easy to fix bug viewed by thousands of eyes has survived for ages. Today I sent this patch to Joomla forge to fix a bug in administrator/components/com_media/admin.media.php.

If you enjoyed this post, make sure you subscribe to my RSS feed!

Joomla Subversion behind a proxy

This is a note about how to checkout the Joomla stable (1.0.x) Subversion repository when you are behind a proxy.

I know there are many sites explaining how to do that but I was not able to find one of them with an out of the box working solution.

This is my recipe.

1) Add the following lines to your ~/.subversion/servers:

[global]
http-proxy-exceptions = *.your_domain
http-proxy-host = proxy.your_domain
http-proxy-port = 80 # 80 or the right port for you

2) The most important thing to do is to use HTTPS. In a working path, type:
svn co --username your_username https://scm.joomla.org/svn/repos/joomla/releases/1.0/ your_folder

If you enjoyed this post, make sure you subscribe to my RSS feed!

Moving and exporting a Joomla MySQL DB via eBackup

This post updates a previous one on the same topic.

If for some reason you need to restore a MySQL dump of an instance of Joomla (made with eBackup) with the extra component JXplorer, well you could find useful this pre import script I wrote.

If you enjoyed this post, make sure you subscribe to my RSS feed!