Ajax Next / Previous Picture (jQuery / PHP)

If you are looking for a simple script to navigate next / previous image without refreshing page, this example will do exactly that using jQuery Ajax and PHP.

Display Twitter View Summary Link

You might have noticed some tweets have view summary link in Twitter.com, and probably you are curious to implement the same for your website contents. Well the trick is very simple, all you need to do is add few lines of HTML code to your webpages, and users who tweet your content will have a “view summary” (a.k.a Twitter Card) link added on the tweets.

Image Upload and Re-size PHP

Sometimes you need to upload and resize image files using PHP, and here you will find the simplest PHP snippet that takes care of your uploaded image files. This snippet should work as it is, but there are several other methods you can combine with it to create a proper functional image uploader, for example you can take a look at Ajax and PHP based image uploader here.

Bold first paragraph of WordPress content

For this WordPress blog, I was looking for a quick PHP snippet on the web to make first paragraph bold, or increase its font size in post contents, like they have in Smashing Magazine website.  I found few examples but not everything is clear. I didn’t want to use CSS :first-child Selector, because it won’t work with older browsers.