Saturday, February 7, 2015

Sunny Leone's 'Ek Paheli Leela' Movie Trailer Launched on Youtube

Sunny leone is Indo-Canadian and American actress she start her Bollywood career in Pooja Bhatt's JISM 2 and from success of that movie she famous in Bollywood and most in India also she becomes most search Indian celebrity on previous year.
Recently Sunny Leone's new movie tailor 'Ek Paheli Leela' lunched on YouTube and in that movie she is new classical look. 
Ek Paheli Leela is upcoming Bollywood movie that release on April directed by Bobby Khan and Produce by  Bhushan Kumar and Krishan Kumar.In that Sunny will perform on triple role and also performs Aishwarya's "Dholi Taro" songs on this movie.To performing this remix song she make most famous in media against Aishwarya.
Ek Paheli Leela's First movie tailor launched on YouTube by T-Series on 5th February.This tailor watched 196,647 times and will get more than 1500 links.Watch movie tailor and see new look of Sunny Leone

'Ek Paheli Leela' Movie Tailor



Friday, February 6, 2015

Reset all Windows Browsers to Default Settings


Windows Browsers is very useful for every person related to web network when you want to search anything or even if see any website than must need browser.There are many windows browser available according to difference country and user friendly.But sometimes lots of virus in Internet and some extension or unnecessary program install in window PC so you must reset Browser and make default settings of your browser.Here describe only reset basic browsers only.

Google Chrome

  1. Click Chrome menu at top right of Chrome Browser
  2. Select Settings
  3. On that page click Show Advanced Settings
  4. Under the section "Reset settings” click Reset settings button
  5. Pop up window open that click on Reset button

Internet Explorer

  1. Select Tools Menu from Internet explore menu bar
  2. Than click on Internet options
  3. In Advance tab click on Reset button
  4. Than dialog box open and click Reset button

Mozilla Firefox

  1. From Firefox menu bar click Help menu
  2. Click on Troubleshooting Information sub menu
  3. Click on Refresh Firefox button on top right page
  4. Than click on Refresh Firefox button of open that pop-up

Apple Safari

  1. From safari menu click on Edit menu
  2. Click on Reset Safari from menu
  3. Click on Reset button on opened dialog box

Opera

  1. Close your Opera Browser
  2. Display all windows hidden fields
  3. Go to C:\Users\USERNAME\AppData\Roaming\Opera\Opera\
  4. Delete Operapref.ini
  5. Restart Opera with default configuration

Get User Location Using PHP

In php many times need to know register user or some visitor location for some functionality improvement in website like if you want to access your website only from USA country than must know visitor is from which country and than display and message or restriction page.so there are two way for fetch current user location which is common or only two way for getting location. one is from IP Address and second from latitude and longitude here discuss how get address,city,country of current user.

Get Current Address From IP

If you get user location from IP address than there are many websites provide API for that. Here http://www.geoplugin.net/ is one of best and most use for provide that services in that only pass IP address and you got all related information about location below describe PHP code.
$ip = $_SERVER['REMOTE_ADDR']; //for get currunt IP
$unarr= @file_get_contents('http://www.geoplugin.net/php.gp?ip='.$ip);   
$AddArr = unserialize($unarr); //get all variable.
From below code you got many parameters related to address and find your needed from them.This method only work on live server because IP address not fetch for localhost.

Get Current Address From Latitude and Longitude

If you want to get address from latitude and longitude that this method is useful in this also pass latitude and longitude variable and you got complete address.PHP code for that describe as below.Here also use JavaScript for get current latitude and longitude.
< script type="text/javascript" >
    function onPositionUpdate(position)
    {
       var latitude = position.coords.latitude;   //get latitude variable
       var longitude = position.coords.longitude; //get longitude variable
       document.cookie = "latitude ="+lat+";path=/";
       document.cookie = "longitude ="+lng+";path=/"; //save in COOKIE
    }
    if(navigator.geolocation){navigator.geolocation.watchPosition(onPositionUpdate);}
    else{alert("navigator.geolocation is not available");}
< /script >

//PHP code for getting address
$json = @file_get_contents('http://maps.googleapis.com/maps/api/geocode/json?latlng='.trim($_COOKIE['latitude']).','.trim($_COOKIE['longitude']).'&sensor=false');
$data= json_decode($json);
$status = $data->status;
if($status=="OK"){echo $data->results[0]->formatted_address}//display complete address
Here using below code you return difference address variable in `$data` so use that according to your use.

Sunday, February 1, 2015

Change all Posts Published Date in Wordpress


In Wordpress all blog or post save as current post time or set publish post as own date and time.According to publish date & time all post display as archive label `Publish on`. Also this useful for search result for own Website.
So when you chnage server or upload website from localhost to live server than its necessary to change all post publish date same as upload website on server date.
If you want to change a single post publish date than it's Manage from admin panel but when you want to change publish date for all post than must use PHPMYADMIN.
Here below describe two way for change post publish date.

1. From Admin Panel

  1. Login to your website's admin panel.
  2. Go to all posts page from left menu.
  3. Here display list of post select Quick Edit link which post you want to change date.
  4. Change that date and update post.

2. By Phpmyadmin

If you have Phpmyadmin details than change post publish date directly from database.
All post publish date save as `post_date` & `post_date_gmt` so open `wp_post` table and change that two column value for particular post.

3. By Mysql Query

If you are developer than it is easy for change post date by using SQL query in WordPress as below.

global $wpdb;
$wpdb->query("UPDATE `".$wpdb->prefix."posts` SET 
`post_date` = 'DATE(Y-m-d H:i:s)',
`post_date_gmt` = 'DATE(Y-m-d H:i:s)' WHERE `ID` = 'POSTID'");
 
Here Replace your post or page id instead of POSTID and set date as below format.Here if you want to change all pots publish date that you can do using loop.

Winners of 60th Filmfare Awards 2014

60th Filmfare Award is to be held on January 31st 2015 in Yash Raj studio  Andheri,Mumbai sponsor by Britanni.Filmfare is most popular award in bollywood film industry and this year it complete 60 year of celebrating Award function.
Filmfare award Held annually for give award to all film industries related persons in movies cast,music and action.So Every person related to Bollywood film industry try to give her best performance in own movie for tack this award.
Current Year Filmfare award host by Karan Johar,Alia Bhatt and Kapil Sharma that broadcast on SONY television on 8th February.

Here the list of winners of 60th Filmfare Award

Best Costume: Dolly Ahluwalia (Haider)
Best Cinematography: Bobby Singh & Siddharth Diwan (Queen)
Best Action: Sham Kaushal (Gunday)
Best Playback (Male): Ankit Tiwari (Galliyan - Ek Villain)
Best Playback (Female): Kanika Kapoor (Baby Doll - Ragini MMS 2)
Best Lyrics: Rashmi Singh (Muskurane - CityLights)
Best Music Director:  Shankar Ehsaan Loy (2 States)
Best Actor Debut (Male):  Fawad Khan (Khoobsurat)
Best Actor Debut (Female): Kriti Sanon (Heropanti)
Best Dialogue: Abhijat Joshi and Rajkumar Hirani (PK)
Best Screenplay: Rajkumar Hirani and Abhijat Joshi (PK)
Best Story: Rajat Kapoor (Ankhon Dekhi)
Best Actor in a Supporting Role (Male): Kay Kay Menon (Haider)
Best Actor in a Supporting Role (Female): Tabu (Haider)
Best Director: Vikas Bahl (Queen)
Best Film: Queen
Best Actor (Male): Shahid Kapoor (Haider)
Best Actor (Female): Kangana Ranaut (Queen)

Friday, January 30, 2015

Preventing P and BR Tags in WordPress Posts


In Wordpress when you create new post or page from admin panel and when you write some content and save that post that in fronted auto add <p>..</p> and <br/> tags which display extra spaces and some times it's effect current Wordpress theme. so it must be remove from stop extra spaces in Wordpress.

This happen because of WordPress's `wpautop` function which is use changes double line-breaks in the text into HTML paragraphs.This functionality provide Wordpress for better posting with default template.This function use `wpautop( $foo, $br )` Where
$foo = The text to be formatted.
$br = Preserve line breaks. When set to true, any line breaks remaining after paragraph conversion are converted to HTML <br />. Line breaks within script and style sections are not affected.
So according to theme you want to remove extra
tag that must enter below code for content and expert as use.
remove_filter( 'the_content', 'wpautop' ); 
//Use for Post Content in post detail page
remove_filter( 'the_excerpt', 'wpautop' ); 
//Use for Post Excerpt in post archive page
Use above code in your running theme's function file.If you want to know your current running theme than login to admin panel Appearance->Themes here display all themes which theme is active that display as `Active`. Find active theme function file in Wordpress root directory `wp-content/themes/THEMENAME/function.php`.

Check Current Version of Wordpress

Some times in developing phase when you want to some customization or want to add some plugin or template than it must check version comparability.so every plugin and theme provide supported Wordpress versions
Wordpress has many version till start of it and each version has some improvement better than previous.
Wordpress launched first version 0.7 on 27th May 2003. from that time to now it change more than 50 versions including beta release.currently Wordpress latest version is 4.1
For any developer or beginner who work with wordpress that it must know that version for use any where like for any customer support,error solution or configuration. Here is way for know current version of wordpress.

Using FTP Check Version

Here is first way if you know server FTP detail or you have code of all website that easy see Wordpress version as below
Open `wp-includes/version.php` file in that find `$wp_version` variable value that define Wordpress version.

Using Source Code Check Version

When you run website in browser that easy to check Wordpress version by that source as below
Press CRL+U for view source and in that find `generator` meta value that define Wordpress version.

Using Coding Check Version

If you are developer that it is easy for check version for enter simple code as below
Enter `echo get_bloginfo('version')` anywhere in header or footer file for display version.

Using Admin Panel Check Version

If you have admin details for website than see Wordpress version as below
1. Login to admin panel open `About WordPress` menu than display Wordpress version.
2. Login to admin panel in footer display current Wordpress version.

Using Add Ons Check Version

Another way is check any website version in wordpress as below
Install Browser Add Ons/Extension for Wordpress version Checker and using that you can see Wordpress version

How to Add Custom PHP Page in Wordpress





Wordpress is simple open source for create blogging website that based on PHP.Wordpress provide basic functionality for create new blog and add post in that in that add page,category and other information by using some plugin.SO in Wordpress easy to use create any blog and customize layout and design css only with Wordpress backed admin panel called `wp-admin` When you want to customize Wordpress that you must know some knowledge of it and sometimes you have some PHP file and you want to integrate it in Wordpress than it is easy for beginner.here below process for add costume PHP page in Wordpress

  1. Create new php file in your theme directory like 'demo.php' (`/wp-content/themes/themename/`).If you don't know theme name that see running theme on Wp-admin->Appearance->Themes
  2. Open PHP file and enter below code at top of page.
     <?php
     /*
     Template Name: DEMO
     */
     ?>
  3. Create New page from admin and select 'Template' that you created and save that page
See New created page display in Wordpress.Here in PHP file you can put any custom PHP code its display as you coded in fronted.
If you want to put same header as Wordpress theme than add `get_header()` function at top of page.same for footer and sidebar you can use `get_sidebar()` and `get_footer()` function.

Tuesday, January 27, 2015

Flexslider Conflict With Parallax Scrolling

Now in designing and its HTML integration we always use some banner slider in home page for describe website details by some slider and it is also make website as attractive view for user.
There are lost of slider user in website but now a days mostly use responsive slider so some website also provide use responsive slider that manage by website view.
On of them is Flexslider which is use in development phase or some HTML integration.
When you work with some open source like Wordpress,Drupal,Magento and when you integrate plugin/extension than in that mostly use Flexslider and its like open source and easy to implement.

What is Parallax Scrolling?

Parallax scrolling is a one type of scrolling technique in website design. In that background image move according to screen move.
Some times if you want to use fixed background image that it is set by CSS but when you want to apply many background image with different content or background image move by scroll down than parallax scrolling is best option.

Some times when you use both  parallax scrolling and Flexslider than scrolling not work in some browser like Chrome,Safari than here is solution.
  • Open "flexslider.css" around line 25: .flexslider .slides > li Comment out or remove -webkit-backface-visibility: hidden; (Find Flexslider.CSS according to open source)
  • In the flexslider initialization script: Specify 'useCSS : false' in your slider options (This is set to true as a default by the flexslider JS and tells the browser to use CSS3 3D transforms if they're available.Also its working without this features)

Sunday, January 25, 2015

Top 10 Bollywood Movies Songs 2014

In Indian cinema song is very important for entrainment some times some movies make high gross because of it's songs and some movies songs are ignored by public.
India is entertaining country so its people love music from past times.Music is the main culture of India.In many years ago kings of India listen some music for past some time.
Bollywood cinema is famous of his songs  till the start of Indian cinema its give us many songs for out past time and entrainment. Here even if any marriage function or some even than must include songs of Bollywood even if some payers in temple comes from Bollywood movies songs.

Last year 2014 there are many movies launched in cinemas and many songs for each movies so if you found top 10 than its much hard because all are fine and each user have own choice of song.So here listed some of top 10 songs of Bollywood movies according to movie release. So if you not hear that than must hear and download for your entrainment.

  • Sunny Sunny - Yaariyan

  • Photocopy - Jai Ho

  • Tune Maari Entriyaan - Gunday

  • Aaj Dil Shayarana - Holiday

  • Caller Tune - Humshakals

  • Galliyan - Ek Villain

  • Aaj Phir - Hate Story 2

  • Jumme Ki Raat - Kick

  • Sawan Aaya Hai - Creature 3D

  • India Waale - Happy New Year