Feeds:
Posts
Comments

01. Create TinyURLs On The Fly

The problem. Because Twitter has become a social media revolution, many bloggers and Twitter users enjoy sharing blog posts they have found and liked on Twitter. However, manually creating a TinyURL before tweeting can get a little tedious. As you probably know, Twitter can bring a lot of traffic to your blog, so it is in your interest to consistently provide short URLs to your readers.

The solution. To use this recipe, follow the simple steps below:

  1. Open your functions.php file.
  2. Paste the following code in the file:
    function getTinyUrl($url) {
        $tinyurl = file_get_contents("http://tinyurl.com/api-create.php?url=".$url);
        return $tinyurl;
    }
    
  3. Open your single.php file and paste the following in the loop:
    ID));
    echo 'Tiny Url for this post: <a href="'.$turl.'">'.$turl.'</a>'
    ?&gt;
    
  4. That’s all you need. Each of your posts now has its own TinyURL, ready for tweeting!

Code explanation. The popular URL shortening service TinyURL provides a quick API that creates TinyURLs on the fly. When you pass a URL to

http://tinyurl.com/api-create.php

the API immediately prints the related TinyURL on the screen.

Using the PHP function file_get_contents(), we can get it and assign it to the $tinyurl variable. The last part of the code retrieves the post’s permalink and passes it as a parameter to the getTinyUrl() function previously created.

Source:

02. List Upcoming Posts

The problem. If you often schedule posts to be published, how about displaying them in a list? This will make your readers look forward to what you’re going to publish in a few days and can help you reach new RSS subscribers. Implementing this functionality on your WordPress blog isn’t hard at all.

The solution. Nothing hard here. Just copy this code and paste it anywhere in your theme files.

<div id="zukunft">
<div id="zukunft_header">
Future events
</div>

	
<div>

<b></b>
			<span class="datetime"></span>
</div>

No future events scheduled.
</div>

Once you’ve saved the file, your upcoming posts will be displayed on your blog.

Code explanation. This code use the super-powerful query_posts() WordPress function, which allows you to take control of the WordPress loop.

The parameter used is post_status, which allows you to get posts according to their status (published, draft, pending or future). The showposts parameter is also used to define how many items you’d like to get. You can change the value of this parameter on line 4 to retrieve more or less than ten posts.

Source:

03. Create A “Send To Facebook” Button

The problem. In the first hack, we noted that Twitter can bring a lot traffic to your blog. Another website that can boost your traffic stats easily is Facebook. In this hack, let’s see how we can create a “Send to Facebook” button for your WordPress blog.

The solution.

  1. Open the single.php file in your theme.
  2. Paste the following code in the loop:
    &lt;a href=&quot;http://www.facebook.com/sharer.php?u=&amp;t=" target="blank"&gt;Share on Facebook
    
  3. Alternatively, you could use the getTinyUrl() function to send a short URL to Facebook:
    ID)); ?&gt;
    &lt;a href=&quot;http://www.facebook.com/sharer.php?u=&amp;t=" target="blank"&gt;Share on Facebook
    
  4. That’s all. Your readers will now be able to share your blog post on Facebook with their friends!

Code explanation. This useful hack is very easy to understand: the only thing we do here is retrieve the post’s permalink and title and send them as parameters to

http://www.facebook.com/sharer.php

In the alternative method, we used the getTinyUrl() function (created in the previous hack) to send a short URL instead of the post’s permalink.

Source:

Continue Reading »

Hyphenation in Web
This project collects working solutions for automatic hyphenation in (X)HTML pages. For different human and script languages, server- and client-side. A JavaScript-solution, called Hyphenator.js is available as well. Hyphenator.js brings client-side hyphenation of HTML-Documents on to every browser by inserting soft hyphens using hyphenation patterns and Franklin M. Liangs hyphenation algorithm commonly known from LaTeX and Openoffice.

021

syntaxhighlighter
SyntaxHighlighter is here to help a developer/coder to post code snippets online with ease and have it look pretty. It’s 100% Java Script based and it doesn’t care what you have on your server.

0211

Facelift Image Replacement
Facelift Image Replacement (or FLIR, pronounced fleer) is an image replacement script that dynamically generates image representations of text on your web page in fonts that otherwise might not be visible to your visitors. The generated image will be automatically inserted into your web page via Javascript and visible to all modern browsers. Any element with text can be replaced: from headers (h1, h2, etc.) to span-elements and everything in between!

039

CSS Sprites2
Cross-browser functionality is a bit of a freebie; jQuery works across most modern browsers, so everything you see here works in IE6+, Firefox, Safari, Opera, etc. We’ve also accounted for multiple graceful degradation scenarios.

040

Continue Reading »

Those who are excited like me about the news of jQuery integration into Visual Studio, started adopting jQuery replacing ASP.NET AJAX Client side API. Microsoft also declared there will be a patch for Visual Studio which will support jQuery as well as intellisene for that. For the enthusiasts who just can’t for it, here is the way how we can start developing using jQuery with full intellisense support inside Visual Studio 2008:

1. Download jquery-1.2.6-vsdoc.js

2. Inside your JavaScript files, add a reference to it by placing the following line at the top of the JavaScript file:


This is an auto answering machine for instant messaging. Answer.IM allow you to stay online even when your PC off. They support icq, msn, aim, yahoo, google talk, myspace and others.

Instant messaging answering service even when you turn your PC off!

quick start step1 Login using your instant messaging account credentials. quick start step2 Setup your online status, automatic answer text and notifications. quick start step3 Exit! Your account will stay online and automatically answer with your text.

DocJax is a search engine for documents, which allow you to search documents and e-book from everywhere, preview them and even download them for free.

Document search engine

DocJax - Doc right every where

While I’m moving my blog from blogger to my own custom domain, I wanted to run my blog with wordpress as a CMS , frankly I don’t know much about wordpress but through web i found out that wordpress is one of the best CMS for blogging with lots of plug-ins available

lots of Articles helped me to learn how to use wordpress for blogging from scratch and how to use wordpress effectively with plugins, so i thought of sharing it with every one

Install wordpress

Worthy Plug-ins

Plug-ins For Seo

  • Head META Description – Insert HTML META description tag: excerpt/content brief for post/Page
  • Google XML Sitemaps – This plugin will generate a sitemaps.org compatible sitemap of your WordPress blog
  • SEO Title Tag – Makes it dead-easy to optimize the title tags across your WordPress-powered blog
  • All in One SEO Pack – Optimizes your WordPress blog for (Search Engine Optimization).
  • Clean Archives – designed to display your archive listings in a clean and uniform fashion

Tips

SEO

Themes

WordPress Themes Related

More

notify.me delivers notifications that interest you in near real time. It eliminates the need for you to constantly check on classified listings, blogs or social networking sites. Notifications are pushed to your destinations of choice such as instant messenger, mobile phone, email, desktop or web application.

notify me

You can

  • track items on craigslist, job postings, breaking news stories and much more.
  • choose to have notifications delivered to Instant Messenger, SMS, Email, or Desktop Application.
  • easily and quickly manage your notifications through the web interface.
Follow

Get every new post delivered to your Inbox.