PHP

Using Phing to build your Joomla package!

Are you losing your time to build your Joomla package?

For me, it’s a pain! Some thing have to be done each time we want to release a new version. And I really don’t like to repeat thing again and again!

Step example :
- export from svn,
- change version number,
- edit manifest to setup free or pro version,
- delete some file for free version
- zip subpackage for pro version and free version for J1.5 and J1.6
- create package installer for pro version and free version for J1.5 and J1.6
- upload file on ftp
- upload api documentation on ftp
- test package on online test website to see if it work.

And I am sure to forgot some steps. Lot of these manipulation can be automated!
Continue reading “Using Phing to build your Joomla package!” »

Tags : , , , , ,

Your host block PHPInfo function?

If your host has block the access to the information given by the PHPInfo() function, you can try this userfull code to fix this issue.
Continue reading “Your host block PHPInfo function?” »

Tags : , ,

JTable and composed primary key

JTable on 1.5 and 1.6 actually doesn’t support to have multiple keys as Primary Key. It doesn’t help when it’s time to make more complex database design. So I decided to make a parallel class to JTable to use any number of of column as Primary key (PK) that you need.
Continue reading “JTable and composed primary key” »

Tags : , , , ,

Joomla unified SITE and ADMIN session

For a Joomla installation, I have to merge SITE and ADMIN session to be able to switch between them without reconnect. We have to transform Joomla into a content manager for Mailing List and it was not use for website. So the SITE client is just a preview part for the ADMIN.

Here is a small hack to merge you SITE and ADMIN session together.
Continue reading “Joomla unified SITE and ADMIN session” »

Tags : , , , , , ,

Howto setup Smarty3 Engine in Joomla!


First of all, you would probably ask me why I want to integrate Smarty3 Template engine in Joomla!

The answer is simple. I want to easily parse email template to send personalized notification! Smarty3 is all designated to do this! With Smarty, email templates now have just no limit! You can do some very well designed email template!
Continue reading “Howto setup Smarty3 Engine in Joomla!” »

Tags : , , , , ,

Joomla PHPInfo component

phpinfo()I have looking arround for an administration componant showing PHPinfo and I didn’t find anything. So just for fun, I have decided to build my own PHPInfo component else just printing phpinfo() function in a single php file.
Continue reading “Joomla PHPInfo component” »

Howto make a simple progress bar in PHP

If you are looking for a Progress Bar in PHP. Here is a simple one.

In some situations you might need to display a progress bar. There are many methods for doing this, using php, or/and JavaScript, CSS, Ajax, and more. I will give you an example with pure html and css to display to a user the step they are before finish to feed a form for example.

This progress bar can show tip for progress % or a step by step message.
See use cases at the bottom of the page.

progressbar use case

Continue reading “Howto make a simple progress bar in PHP” »

Tags : , , , ,

Expression: FileMaker to PHP

Common FileMaker calculation expressions and their PHP equivalents

I dont remember where I found this but it was helpful to found some PHP equivalence for field that are validated by Filemaker when using the PHP Filemaker API.

Continue reading “Expression: FileMaker to PHP” »

Tags : , , , , ,

Joomla : How to show Menu to Guest Only

This is a simple tutorial on how to show a Menu Item only to Guest user on Joomla. Because actually, it’s not include in the basic ACL of Joomla.

We have to hack a little the Administration component of the Menu and the Module Mainmenu but it’s simple to do. It’s not fully tested so if you have a best solution or find error, post it in the comment.
Continue reading “Joomla : How to show Menu to Guest Only” »

Tags : , , ,

How to use Flickr with Zend Framework?

Zend Framework have a good API to play with Flickr Service. You will find it in the service API of Zend Framework.
Continue reading “How to use Flickr with Zend Framework?” »

Tags : , , , , , ,