<?php $tags = wp_get_post_tags($post->ID); if ($tags) { echo ‘Related Posts’; $first_tag = $tags[0]->term_id; $args=array( ‘tag__in’ => array($first_tag), ‘post__not_in’ => array($post->ID), ‘showposts’=>1, ‘caller_get_posts’=>1 ); $my_query = new WP_Query($args); if( $my_query->have_posts() ) { while ($my_query->have_posts()) : $my_query->the_post(); ?> <p><a href=”<?php the_permalink() ?>” rel=”bookmark” title=”Permanent Link to <?php the_title_attribute(); ?>”><?php the_title(); ?></a></p> <?php endwhile; wp_reset(); } } ?>
Pull any RSS feed, Show link, Title and Date and Shorten Date and Title
This is modified and expanded version of http://net.tutsplus.com/articles/news/how-to-read-an-rss-feed-with-php-screencast. <?php function shorten($string, $length=65){ $truncated_string = ”; foreach (explode(‘ ‘, $string) as $word){ if (strlen($truncated_string) >= $length){ return $truncated_string; } $truncated_string .= (!empty($truncated_string) ? ‘ ‘ : ”) . $word; } return $truncated_string; } function getFeed($feed_url) { $content = file_get_contents($feed_url); $x = new SimpleXmlElement($content); echo “<ul class=’rss-feed’>”; [...]
National Conference- MKCE Confluence February 2011
M. Kumarasamy College of Engineering, Karur proudly organizing National Conference- MKCE Confluence February 2011. Check out the details here, Conference Theme To expound the value and relevance of Emerging Technologies by brining together Academicians, Research Scholars and Delegates from Industry thereby enabling them to come out with innovative concepts and ideas in their fields. Paper [...]
css3 image zoomer
<!DOCTYPE html> <html> <head> <title>CSS3 Image Zoom</title> <meta http-equiv=”Content-Type” content=”text/html; charset=iso-8859-1″> <style> body{ text-align: center; } a{ color: #0077ff; text-decoration: none; } #zoom{ width: 320px; height: 240px; -webkit-transition: 0.25s; } #zoom:target{ width: 640px; height: 480px; } </style> </head> <body> <a href=”#zoom”>Zoom In +</a> | <a href=”#”>Zoom Out -</a> <p> <img src=”images/image.jpg” id=”zoom”> </body> </html> Check [...]
To fight spam, Google Apps adds e-mail signing
Google has made it possible for Google Apps customers to sign their outgoing e-mail using a technology called DomainKeys Identified Mail (DKIM) that makes it easier to ensure a sender is who he or she says he is. Credits: Google Google has been using DKIM since 2008 to show Gmail users when incoming mail really [...]
M. Kumarasamy College of Engineering, Karur Alumni Meet
Education is not only the driving force for a leader to move ahead in life but also the motivation to take an occasional pause and reflect back, connect with one’s alma mater and share the richness of one’s journey. M.Kumarasamy College of Engineering, Karur Organizing 7th alumni meet @ Egmore Chennai on Jan, 8th, 2011 in [...]
Skype / Xampp Port Conflict [Solved]
If you just installed XAMPP, and noticed that it Skype is no longer working for you, here’s why; both are server technologies, which use the same port. This port (port 80) is commonly used for web servers. So what’s happening is that Skype & XAMPP are both listening to, and sending data trough port 80. [...]
Things really clicking for Facebook as social networking giant tops Google
In the latest coup for the world’s largest social network, Facebook topped the list of most visited websites this year, beating out search giant Google for the first time. According to data from Hitwise, which measures Internet data, Facebook accounted for 8.93% of all U.S. visits from January to November. Google.com ranked second with 7.19% [...]


