SmashinGeeks | Geeks In Action | |
- The All New Mac OS X Lion Overview | Features and Rumors
- 40 Cool, Unique and Inspirational Business Cards
- Display the Number of Retweets for a Post Using PHP
The All New Mac OS X Lion Overview | Features and Rumors Posted: 14 Mar 2011 08:17 PM PDT Apple, after success products like iPad and iPhone 4, is now going to publish Mac OS X Lion officially. A preview of OS X Lion was publicly unveiled at Apple’s “Back to the Mac” event on October 20, 2010. As said by the Apple site, it will be commercially available in Summers,2011. It will bring many developments made in Apple’s iOS, such as an easily-navigable display of installed applications, to the Mac, and will include support for the Mac App Store, as introduced in Mac OS X Snow Leopard version 10.6.6. Lets see what had changed around the Mac OS Network for Lion version. System Requirementsx86-64 processor (Macs with an Intel Core 2 Duo or later CPU). SpecificationsAccord. to the “Back To The Mac” event, some new features are added to Mac OS X Lion. More features may be expected as the date approaches. Address Book now uses an iPad-like user interface RumorsFront Row is totally removed from Mac Lion. Screenshots |
40 Cool, Unique and Inspirational Business Cards Posted: 14 Mar 2011 03:15 AM PDT We have posted a too much collection of Business cards that will inspire your mind. Each and every card here will be different and Unique and has its own theme. We have gathered such cool and inspirational Business Cards for our readers. You would also like our previous gatherings of Business Cards 100 Awesome Hand Crafted Business Cards for Inspiration. |
Display the Number of Retweets for a Post Using PHP Posted: 13 Mar 2011 10:50 AM PDT Tweeting is what we do after publishing posts. To place some minimal text that jumps upon the Tweet on Twitter will be more great instead of using a tweet button. Its made possible to count the number of tweets using PHP only, however if you want to sizzle it up, then its your way. We have two ways of displaying number of Tweets for particular posts. Using Tweetmeme API KeyTweetmeme provides you an API key using which you can do more with it. Jean Paul of CatsWhoCode made his way of displaying the number of Retweets. What you have to do is place the code below in your theme functions.php file. function tweetCount($url) { $content = file_get_contents("http://api.tweetmeme.com/url_info?url=".$url); $element = new SimpleXmlElement($content); $retweets = $element->story->url_count; if($retweets){ return $retweets; } else { return 0; } } After placing the code, save the file and place the below echo to display it anywhere on your site. echo tweetCount('http://www.smashingeeks.com'); Using Your Backtype API KeyBacktype is a nice source from where you can fetch the number of tweets of a post as it collects all the data of it. <?php $link = get_permalink($post->ID); $key = 'YOURKEY'; $url = "http://api.backtype.com/tweetcount.xml?q=$link&amp;key=$key"; $request = new WP_Http; $result = $request->request( $url ); echo "<span class=\"result\">".$result['body']."</span> tweets"; ?> If you want to link it with twitter, then you can use the following. $link = get_permalink($post->ID); $key = 'YOURKEY'; $url = "http://api.backtype.com/tweetcount.xml?q=$link&amp;key=$key"; $request = new WP_Http; $result = $request->request( $url ); $json = $result['body']; $burl = getBitlyUrl(get_permalink($post->ID)); $posttitle = get_the_title(); echo "<span class=\"result\"><a href=\"http://twitter.com/home?status=RT @smashingeeks $posttitle: $burl \">" .$result['body']. "</span></a> tweets"; ?> Do not forget to change the YOURKEY with your API key of Backtype. Place the code anywhere you want to display the whole. If there are more ways of doing it, you can share with us by comments. |
You are subscribed to email updates from SmashinGeeks To stop receiving these emails, you may unsubscribe now. | Email delivery powered by Google |
Google Inc., 20 West Kinzie, Chicago IL USA 60610 |
0 komentar: