List/Grid Monthly Archives: February 2012
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']))…
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(…
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”>…
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…







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 »