List/Grid Monthly Archives: February 2012

Show Top Comments or Commentators In WordPress Without A Plugin

Show Top Comments or Commentators In WordPress Without A Plugin

Here is a simple code snippet to show the top commentators or comments in the wordpres without any plugin. The code are given blow. function top_comment_authors($amount = 5){ global $wpdb;… Read more »


Get current URL in PHP

Get current URL in PHP

Sometime, you need to get a current page URL that is shown in the browser address bar. Here is a small code to get the current url. $url = (!empty($_SERVER['HTTPS']))… Read more »


Change iframe url using javascript

Change iframe url using javascript

If you want to change the iframe url from the iframe window, you can use this small function to change the url of the iframe. <script type=”text/javascript”> $(document).ready(function() { $(‘#clickToClose’).click(… Read more »


Open link in parent from child window or iframe using javascript

Open link in parent from child window or iframe using javascript

If you want to control parent window’s URL from the child frame or child window you can use “window.parent” to control the parent window. The complete solution is: <script type=”text/javascript”>… Read more »


Find latitude and longitude using google map API

Find latitude and longitude using google map API

Find coordinates by moving around the map 1. Drag and drop the map to broad location. 2. Zoom in for greater accuracy. 3. Drag and drop the marker to pinpoint… Read more »


© 2012 Sumit Bansal. All rights reserved. XHTML / CSS Valid.