Monthly Archives: January 2011

Joomla – User Authentication Using External Database (MySql)


Yesterday it was my first experience in working on a Joomla website. I was asked to develop a new site in Joomla for an existing site which had many existing registered users. So the first challenge for me was to allow those existing registered user to be able to login & use the new website with their existing credentials.

After a lot of search on Google, I found very useful plug-in MySql Auth Plugin for Joomla 1.5 which I thought I should share with you all.

MySql Auth Plugin for Joomla 1.5 let authenticate users against an external MySQL database and is fully configurable from Admin area. You can configure the host, port, database name, user data table, username column, password column, first name column, last name column and email column from the Manage Plugin section in the admin.

Below are the screen shot of MySql Auth Plugin administration panel

Screen shot 1

MySql Auth Plugin for Joomla 1.5

Screen shot 2

MySql Auth Plugin for Joomla 1.5

If you have a similar requirement, I would 100% recommend this plugin to you.

Hope this post saves you time ūüôā

Google Maps Javascript API V3 Example

Google Maps – one of the best resource available on the web that brings the world on your computer screen. With google maps distant places are just a few clicks away from you.

Google maps javascript api is amongst the most widely used api on the web as it easily lets you embed Google Maps in your own web pages. Version 3 or V3 as its called of this API is especially designed to be faster and more applicable to mobile devices, as well as traditional desktop browser applications.

New Features

1. You can now specify the inclusion of optional libraries for specialized functionality in the Maps API!

2. Add animations to your markers! Make your markers drop or bounce when placed on the map.

3. The Google Maps API no longer requires a Maps API key!

4. The Google Static Maps service now supports custom styled maps!

Google Geocoding/Reverse Geocoding Service

Geocoding is the process of converting addresses (like “Taj mahal Agra, Tajganj, Agra, Uttar Pradesh 282001, India“) into geographic coordinates (like latitude¬†27.173006 and longitude 78.042086), which you can use to place markers or position the map.

The Google Geocoding API provides a direct way to access a geocoder via an HTTP request. Additionally, the service allows you to perform the converse operation (turning coordinates into addresses); this process is known as “reverse geocoding.”

I have created a sample application¬†“Map My Address”¬†for those those who want to start using Google Maps on the web pages.

Sample URL:

Download Source:

Please feel free to download and use the source code or contact me if you have any queries.

Asp.Net User Control and Telerik ToolTip

Hi friends,

Another great day has ended let me share a new thing I learnt today. I have been using a lot of Telerik Asp.Net Ajax Controls these days and I must say they really help achieving complex goals by making your work simple. Telerik Asp.Net Ajax Controls is a set of useful controls like RadGrid, RadListview, RadAjaxPanel, RadProxyManager, Rad ToolTip Manaager and many more.

In this post I will share a solution to a problem which most of the user face when using Asp.Net UserControl with Telerik ToolTip.

The Telerik Tooltip control can display rich content like text, images and even standard ASP.NET and user controls. The built-in ASP.NET AJAX mechanism allows loads content after the user hovers with the mouse over the trigger element. It allows you to easily add tooltips to a single or groups of elements, or all elements on the page at once. You can configure the way the ToolTip is displayed ‚Äďside, offset, and relative to the mouse or to a triggering element. Telerik ToolTip control provides several types of animations ‚Äď Fade, Resize, slide, fade in to show hide the tooltip.

But a general problem faced by Telerik Tooltip users is rebinding the usercontrol data when using tooltip control for more then one item without making a page refresh because at time it seems Telerik Tooltip cache the data but this is not the case.

To correctly configure a Telerik Tooltip you should fulfil the following basic criteria:

1) The new values in the user control’s content controls should always¬†be set in the user control’s PreRender event.

If you are using the Telerik Tooltip inside any List control like Grid, ListView or Repeater, you should not that

1) The targets should always¬†be added to the RadToolTipManager’s TargetControls collection in the¬†list control’s¬†OnItemDataBound event.

2) The TargetControls collection should be cleared when the list control is paged and sorted.

3) If you have ajaxified the list control, you should add the tooltip manager to the same settings Рe.g put the tooltip manager in the same update panel or add it to the same ajax settings of ajax manager where the list control is added.

Please feel free to contact me isncase you face any problem ūüôā

Twitter like Message Alerts using JQuery

Hello Reader, 

Today I am here to share a cool way of showing message alerts on you your websites.  

It is very common to show custom message alerts to users/visitors on a website on the occurence of some events like validation errors on login or sign up forms or on data add/update or delete. Most of the times we use the common javascript alert() function to show such message which shows an ugly message box to the users or try to use a ready made third party tools which does similar task but loads your webpages with JS scripts and hampers the speed of your website and somtimes the performace of your web applications too. 

But why should you show those ugly message box or load your webspage with extra JS files when you have easy solutions with jQuery. 

jQuery is a lightweight cross-browser JavaScript library that emphasizes interaction between JavaScript and HTML. Used by over 27% of the 10,000 most visited websites, jQuery is the most popular JavaScript library in use today.

So here goes the code you implement on your webpages to show smart message alerts to visitor of your website. 

Step 1 

Download (if you dont already have) the latest version of jQuery script from and include it on your webpage. 

Step 2 

Include this div at the top inside the body tag of your webpage 

Step 3 

Include the following CSS style in you stylesheet file. This controls the appearance and position of the Message Alert container. 

height:40px;width:99.8%;background-color:#ffffff;color:#000;font-family:”Trebuchet MS”, Tahoma; font-size:18px; text-align:center;display: none;border:1px solid #562c2c; margin:0 0 0 0;padding-top:10px;}

Step 4

Include this javascript function in you webpage

function ShowNotification(message, showwait, hidewait) {
$(“#divSlideMessage”).oneTime(showwait, function() {
}).oneTime(hidewait, “soon”, function() {

Step 5 (Final Step)

Now use ShowNotification(message, showwait, hidewait) function in place alert() or any other function that you were using to show the message alerts.

ShowNotification accepts three arguments

message – your alert message

showwait Рtime in milliseconds, after how long the message should be shown

hidewait Рtime in milliseconds, after how long should it dissappear

Hope this helps, please feel free to contact me in case you find any problem.

Thanks for reading! ūüôā

The Stock Market

The Pig Story

Once upon a time in a village, a man appeared and announced to the villagers that he would buy PIGS for Rs. 10.

The villagers seeing that there were many PIGS around, went out,to the forest and started catching them. The man bought thousands at Rs. 10 and as supply started to diminish, the villagers stopped their effort. He further announced that he would now buy at Rs. 20. This renewed the efforts of the villagers and they started catching PIGS again.

Soon the supply diminished even further and people started going back to their farms. The offer rate increased to Rs. 25 and the supply of PIGS became so little that it was an effort to even see a PIGS, let alone catch it!

The man now announced that he would buy PIGS at Rs. 50! However, since he had to go to the city on some business, his assistant would now buy on behalf of him.

In the absence of the man, the assistant told the villagers.Look at all these PIGS in the big cage that the man has collected. I will sell them to you at Rs.35 and when the man returns from the city, you can sell it to him for Rs.50.‚ÄĚ

The villagers squeezed up with all their savings and bought all the PIGS. Then they never saw the man nor his assistant, only PIGS everywhere!!!

Welcome to the ‚ÄúStock‚ÄĚ Market!

Video Gallery for WordPress WebSite

Happy New Year Readers,

It has been quite a few months since I wrote my last blog post. Last few months I have been busy working on projects using Telerik Ajax Tools and WordPress. Today I am sharing my experience about creating a Custom Video Gallery for your wordpress site.

My projects requirement was a Video Gallery that can have videos from various sites like Youtube, Google, Vimeo, Dailymotion and more as well as videos (flv, swf etc) uploaded on clients server.

Usually you can always find a readymade free plugin for everything you want on your wordpress site but this is not the case everytime. Alter a lot of search on Google, I could find a lot of video related plugins like Vipers Video Quicktags but none directly fulfilled my requirement.

Viper Video Quicktags is a very useful plugin which allows easy and XHTML valid posting of videos from various websites such as YouTube, DailyMotion, Vimeo, and more. So finally we choose to create a Custom Video Gallery using Viper Video Quicktags.

My Video Gallery looks like this

Video Gallery

On the right appears a carousel with a list of video available from which you can select a video to be played.
If you have a similar requirement or you need more information on this feel free to contact me ūüôā