How to build your own Joomla Adsense Module?

First of all, you don’t need to build your own Joomla Adsense Module you can use a module type already found in the Joomla Core: custom HTML module.  I have seen many people developing AdSense Modules but the issue here is that you don’t need to install nothing additional in order to get Adsense at your site.

Read More »

Prototype, AJAX and PHP

When we build Web 2.0 applications we have to deal, eventually, with some way to update our pages “on the fly” and one of the best solutions I found is to combine Prototype, the javascript framework (http://www.prototypejs.org/), and AJAX.

Read More »

How to download and install free PHP, Apache and MySQL on Windows?

One of the most searched information about PHP is how to install it on a Windows environment.  We’re going to use the following lines to help you understand the procedure, but, firstly, let me talk a bit more about what PHP needs to run.

As you already now, PHP is a server side scripting language that helps you program web sites so you will need to have a web server running in your Windows XP or Windows Vista computer.  If you need PHP to build complex application you will need a database to store your data, here is when MySQL appears on the stage.

So, in this short procedure we’re going to use Apache as a server, MySQL as our database and, off course, PHP as our programming language.

You have two methods to follow on:

Read More »

How to Implement a Clickbank validator script?

One of the problems for any Clickbank marketer is how to validate payments before giving access to her/his Clickbank product download page.

Clickbank guys have given us a useful clickbank script function for PHP to help us deal with this problem.  Firstly let me show you the function and later we will talk a little more about it.

Read More »

PHP Paypal Validator Script

If you want to validate a Paypal payment process before giving access a client to your product or service you just need tu customize this simple script and you will be safe about fraudulent downloads.

The procedure is very simple.

First you need to create your paypal form in a way that it returns to a script on your site.  For example you could create a file named paypal-validator.php on your root site and create your paypal form this way:

Read More »

Joomla 1.5 Super Administrator Password Reset

In order to reset the Joomla admin password, you just need to apply the following steps:

Joomla 1.5

- Open the database using phpMyAdmin and go to the table, jos_users . (replace jos_ with your own table prefix if this is different than the default).

Read More »

How to determine if the user is viewing the Joomla front page

If you're using Joomla! 1.0 then you'll only need to verify the current component with the following command:

PHP:
  1. if ($option == 'com_frontpage' || $option == '') {
  2.   echo 'This is the front page';
  3. }

This task for Joomla! 1.5 could be easily confirmed by the following command:

Read More »

How to display a PHP date some days in the past

This is a very high demand trick, what you need is to print a date but this date must be some days in the past, maybe 2 or 3 days ago.  There is a powerful command for that, let me show you the command and then we'll talk a little more about it.

PHP:
  1. echo date('F j, Y', (time() - 3 * (60 * 60 * 24)) )

Read More »