Implementing Element.getSiblings() in mootools1.1

Saturday, June 27, 2009 23:43
Posted in category Joomla, Mootools, javascript

I found a nice mootools code in David Walsh’s Blog. This code gathers all the siblings of an element but this code is compatible with mootools1.2 and above. I have modified the code a little to implement it in mootools1.1. Why mootools 1.1? because Joomla1.5 still uses mootools1.1. (Joomla1.6 will have mootools1.2). So here is the little modification of the code as presented by David Walsh.

Element.extend({
    getSiblings: function() {
        return this.getParent().getChildren().remove(this);
    }
});

Yes, this small code gathers all the siblings of the element except for itself. Isn’t it simple? ;)

Ajaxifying Joomla Links with Mootools

Wednesday, June 3, 2009 12:21

Have you ever wanted to automatically ajaxify joomla links? This is to say if you ever wished that all the links would open with ajax request in your main component area! If yes, then read on! This small tutorial will teach you how to automatically implement ajax requests in every link on a joomla page.

To implement Ajax request in every link in a joomla page you need to modify index.php of joomla template. Read the rest of this entry »

Multithreading in PHP

Tuesday, May 12, 2009 1:25
Posted in category PHP, Tutorial

I hear different people saying different things about multi-threading in PHP. Some say it cannot be done, no way and others say yes, it can be done. But I say, it cannot be done purely but we can implement pseudo multithreading. That is we can fake multi threading in PHP.

So how do we do it? This can be implemented with the help of 2 kinds of files. 1) the main file and other 2) the thread file. There can be any number of thread file. The main file calls the thread files and it looks like it is multi-threaded. Read the rest of this entry »

Using jQuery with Joomla!

Friday, May 8, 2009 3:49
Posted in category JQuery, Joomla, Mootools, PHP

Joomla ! (till Ver 1.5.10)  by default supports mootools 1.11. The core is still not updated to use mootools 1.2x version.

Now back to the topic. jQuery and Mootools are known to produce conflicts when used together. jQuery is more reliable and robust than mootools (It is my personal view)  but it is however not provided with core joomla installation. So how to use jQuery with Mootools without any conflicts. 
Read the rest of this entry »

Using Google Chart API in your website

Wednesday, May 6, 2009 2:44
Posted in category Api, PHP, Tutorial

Charts are useful and more informative way of representing data in a website. There are many commercial and opensource components and libraries available to implement charts in a website. Most of them are flash based and very attractive. There may be cases where you don’t want or can’t use flash based charts. So what are the alternatives? Write your own library using gd or any other image manipulation library or Use Google Chart API. Yes, google chart api is here to rescue you from all the tedious coding you will do to create your own library. Read the rest of this entry »

AJAX Cache Problem In IE

Friday, April 17, 2009 14:59
Posted in category PHP, Tutorial

Here comes the pain again! IE6. IE6 is a pain to general user but it has caused greater pain to web developers and web designers. IE6 was released in 2001 and it is almost a decade, we are still using it. Seriously, we need to upgrade. If you please, you can join the stop IE6 campaign at http://www.stopie6.org/

Recently a friend of mine had a problem with IE6 and AJAX. The problem was IE6 caching pages fetched with AJAX. Everyone faces this problem once in a while. If you are an AJAX Developer then you should have noticed it quite often with IE6. In this small tutorial and Tip, I will discuss about the problem and its solution.
Read the rest of this entry »

Building MVC-model-view-controller component in Joomla1.5 - Part 2

Tuesday, April 14, 2009 4:57
Posted in category Joomla, MySQL, PHP, Projects, Tutorial

This tutorial is the continuation of my previous tutorial on Building MVC-model-view-controller component in Joomla1.5 - Part 1. In this tutorial, I will talk about the directory structure of a component.

All components should be created under components folder. This applies to both administrator and user part of Joomla. A component under the root components folder is accessible to general user. This is the part of component that is available to general user. The component under components folder of administrator is available to administrator.
Read the rest of this entry »

Mounting CIFS network share in linux

Monday, April 13, 2009 1:19
Posted in category Fedora, Linux, Tutorial

This is a simple sub-tutorial on mounting network shares in linux - not only fedora. These network shares can be mounted with SMB and CIFS but in this tutorial, I am talking about CIFS mounts. This, Common Internet File System (CIFS) is a proposed standard protocol that lets programs make requests for files and services on remote computers on the Internet. (I got this definition from http://searchcio-midmarket.techtarget.com/sDefinition/0,,sid183_gci213851,00.html).

To mount a network share in linux, make sure you have smbfs daemon running.

The example given below talks about ad-hoc mounting a network share. This is not a permanent mount.

mount -t cifs -o username=username,password=password //192.168.2.18/share_name  /path_to/mount_point

Read the rest of this entry »

What is wrong with Hotmail/Live inbox?

Friday, April 10, 2009 0:11
Posted in category MyUpdates, News

Today morning, I tried to login to my hotmail inbox and this is what I was responded with.

I have been using hotmail for last 9 years and today It says I don’t have the inbox! strange and annoying.

Anyone faced such things!

Happy hotmailing! :(

JoomRSS - The Savior for All

Friday, April 3, 2009 9:22
Posted in category Joomla, News, PHP, Projects, Uncategorized

Do you own a site that needs to be updated regularly? Or Do you want your site to boast of useful tips, news that is scattered all over the internet in various websites? If Yes and you are willing to do less manual work for all those tedious job, then JoomRSS should be your answer. This is a great tool I came across.

JoomRSS is a RSS aggregator that runs on top of One of the finest CMS - Joomla. This wonderful component is built by Joomclan.com and chops off most of the manual work that would generally be needed to do update articles in Joomla. Just save the RSS Url you want the feeds from and leave the rest to JoomRSS. It will periodically pull feeds from the source and puts it nicely in different sections and categories. Yes, without a click to any button anywere you will have your site updated regularly. Read the rest of this entry »