Header Code

Make yourself globalize with the help of Seo content writing 31Dec, 2010

Make yourself globalize with the help of Seo content writing

How to directly interact with Search engines eg: (google,yahoo.bing) The more knowledge you have about your product make you more globalize. Write a few lines about what is product or information all about. Followings are the few steps. 1) “Bold” the portion which tells brief about the product. 2) Highlight that portion which is most important. 3) Use some keywords in your text that can help you to achieve high rank on google search engine. Example: If you are talking about the facebook connect write some content about facebook connect in the introduction part like (save your valuable time by direct connect with facebook connect) facebook is most common word hit by the user now a days. If you use…

Posted in: SEO
jQuery validation on create account page in oscommerce 31Dec, 2010

jQuery validation on create account page in oscommerce

Jquery validation contribution for create account page validations in oscommerce.You can download contribution from oscommerce website. JQuery Validation On Create Account Page IF oscommerce-2.2rc2a Freash installation then copy all files otherwise follow follwing instructions. ******************** *** INSTALLATION *** ******************** 1. backup your create_account.php file ******************** 2. Add Following Files:- css/jquery.validate.css js/jquery-1.3.2.js js/jquery.validate.js js/jquery.validation.functions.js ************************** 2. Modified create_account.php :- Add folowing code in head tag-> 3. Find tep_draw_radio_field(‘gender’, ‘m’) changes to tep_draw_radio_field(‘gender’, ‘m’,”,’id=”genderm”‘) 4. Find tep_draw_radio_field(‘gender’, ‘f’) changes to tep_draw_radio_field(‘gender’, ‘f’, ”,’id=”genderf”‘) 5. Find tep_draw_input_field(‘firstname’) changes to tep_draw_input_field(‘firstname’,”,’id=”firstname”‘) 6. Find tep_draw_input_field(‘lastname’) changes to tep_draw_input_field(‘lastname’,”,’id=”lastname”‘) 7. Find tep_draw_input_field(‘dob’) changes to tep_draw_input_field(‘dob’,”,’id=”dob”‘) 8. Find tep_draw_input_field(’email_address’) changes to tep_draw_input_field(’email_address’,”,’id=”email_address”‘) 9. Find tep_draw_input_field(‘street_address’) changes to tep_draw_input_field(‘street_address’,”,’id=”street_address”‘) 10. Find tep_draw_input_field(‘postcode’) changes to tep_draw_input_field(‘postcode’,”,’id=”postcode”‘) 11. Find tep_draw_input_field(‘city’)…

Posted in: OsCommerce
Facebook Connect in Php 30Dec, 2010

Facebook Connect in Php

Facebook Connect in PHP,Just Follow these Steps :- Upload all the files of zip folder on server.(Attached with this post) Step 1 : Just open the file where you have to use facebook connect.(e.g abc.php) Step 2: Just include this javascript file in head :- “<script src=”http://static.ak.connect.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php” type=”text/javascript”></script>”. Step 3: Include the file “facebook.php”(Uploaded with this post). Step 4: To put login button of facebook connect :- <fb:login-button onlogin=’window.location=”http://www.xyz.com/abc.php”;’ size=”medium” background=”white” ></fb:login-button> Step 5: create the object :- $facebook = new Facebook(‘Facebook API key’,’Facebook App Secret Key’,true); Step 6: To get the user id of facebook login person:- “$fUserId = $facebook->get_loggedin_user();” Step 7: To get the session key for the api -> $fc = new FacebookRestClient(‘facebook Api keyApi secret key’,$facebook->api_client->session_key);…

Posted in: PHP
Install Mac on normal machine 28Dec, 2010

Install Mac on normal machine

Introduction There are thousands of Computer Users who would always dream to own a Mac and this is not just for the beautiful looks or the powerful hardware but for the Operating System OS X which is one of the reason Apple is selling their products in large numbers. Now its quite possible for anyone to install a Mac OS X Snow Leopard the latest OS from Apple on their normal computers powered with Windows or Linux. Here are few of the reasons why you would be looking to perform this job. 1.Mac is a operating system which is less prone to viruses. 2.High graphics Steps for installing Mac on a normal Machine. Things you need for starting the installation…

Posted in: Security, Windows
How to make your website password protected using .htaccess? 10Dec, 2010

How to make your website password protected using .htaccess?

How to make a website password protected in just 2 minutes? It’s simple. Here, we will be using .htaccess to authenticate our valuable stuff on the web. Thus to achieve the same follow the below mention 3 simple steps. This whole process, will require us to create two files (.htaccess and .htpasswd) and have to put them on FTP under the folder to which we would like to make password protected. .htaccess – Below is the code for .htaccess file AuthUserFile /home/domains/xyz.com/.htpasswd [path to .htpasswd file] AuthType Basic AuthName “Warning: This is a restricted area…” .htpasswd – In this file, we need to mention the username and password using which one can login to restricted area. Username:passwordPlease note: we must…

Posted in: Apache, Security
How to run a PHP script as Cron job from SSH (Linux shell) 12Nov, 2010

How to run a PHP script as Cron job from SSH (Linux shell)

You can run a PHP script on cron by setting up a crontab For this, first login to your shell using an SSH client such as PuTTY. And on the command line, type the following command (here # means the shell prompt): # crontab -e That will put you in the Vi editor editing your crontab. First press “i” to begin inserting, then type out your cron line following the format below for each line, then press the “escape” key on your keyboard to get out of insert mode, and then type “:wq” and press “enter” to save it. The form of a crontab file is: minute hour day month weekday command For example: 42 4 1 * * /usr/bin/php…

Posted in: Cron, SSH