Archive for the ‘web development’ Category

Today's market is based on 3D and most things are doing by jQuery or Javascript to make fast loading application. Opacity is a part of CSS to make transparent image without PNG format. To set the opacity property to an image you can...

Wordpress is a powerfull tool for blog and it keep all data  in serialize format and user can easily get these values from database by get_option() function. But some time we need to use unserialize function to get some specific value from the string. So...

Joomla 1.5 version provides facility to set page title for each page. But some times we do not need to show this page title on the page or can say that we want to change this page title. To do this process follow below steps: Go to Menu >> Main...

If you are new to Joomla then you will do this silly mistake definitely. because in most cases new user don't aware from all terms of joomla and its admin panel. Joomla created for best content management system and during write the code, developers kept...

Joomla is a best custom management open source tool. It provides many type of functionality regarding theme, module and components. During development time we need to create some special function to use on home page only. or we can say that sometimes we...

In windows we can easily find the any file in the folder and it doesn't matter that how many folders inside that folder.. and it is possible by pressing F3 key on the keyboard. But in the linux we have to use command prompt to find such type of...

In many cases we add content in the database with replacing all html tags into special characters. But it generate problems when we want to show at front side. So here we are giving a best solution to show result as HTML: function...

When you install the phpmotion on your system you will find that captcha code is not showing on registration page. open includes/captcha.php and replace var $font = 'DoradoHeadline.ttf'; by var $font =...

To view any changes in php.ini file or some LAMP server files we should restart the apache server again.  and you can do this by following commands: sudo /etc/init.d/apache2 stop sudo /etc/init.d/apache2 start Above both commands will stop the...

We are assuming that you have installed LAMP on your ubuntu operating system. But you are not getting errors in php files when file has any syntax or fatal error. So you see these errors by following below steps: Open you php.ini file by below...

In many cases we do not want make two buttons to show or hide a same div area. for example expand and collspan method. jQuery provides a simple technique to check div id is already shown or hidden. Create a div are on which you want to do...

In some cases we need to remove old entries from the database or remove entries before specific days. So mysql provides the syntax to delete records: DELETE FROM $table_name WHERE $date_field < date_sub(CURDATE(), $numberOfDays day) If above...

In php we have a function to replace nl2br means new line to break format. but when we need this functionality in our javascript code then what we do? We can do by simply manner: function nl2br(value) { return value.replace(/\n, ""); ...

Joomla provides some basic themes which are already installed in the templates folder. When any developer develop the CMS in the joomla , he use his own template with new design. On the index page $this->baseurl works well but when he want to own module...

Numeric validation require in mostly cases when we want that user enter only numeric value in any text field. For example 'Age' field. Obviously, age can not be in string format. function checkNumericValueValidation() { var enteredValue =...

Are you looking for a regular expression to make clickable url in the string? Yes!, you will get your solutions here: echo preg_replace("/http\:\/\/[a-zA-Z0-9\-\.]+\.[a-zA-Z]{2,3}(\/\S*)?/", "$0", $string); If you want to open url in new tab...

Sometimes we written a code to enter some dynamic entry in the table but did not want to enter duplicate records for same id ( not primary field). and we found that we have entered many records in the table and not it is not possible to delete record...