Archive for the ‘ web 2.0 ’ Category

WordPress Search Tips and Security Flaws

WordPress Search Tips

Tags: search, security, WordPress

If you want to customize WordPress’s search functionality you’ll have to scour the internet for bits of WordPress code in a post apocalyptic wasteland of seemingly irrelevant information. Not anymore! I’ve put these chunks of code and tips below to help you customize your users’ search experience without banging your head against the wall to get things working. In some situations you may have strangle your WordPress search for security/survival reasons, but don’t worry, we’ll cover that too.

Custom search functions

I create complex WordPress builds for small and large companies. While many web designers and developers tell you to ditch WordPress’s search capabilities for an off site engine like Google’s. Others suggest using bloated plugins that play with your WordPress code. I personally suggest using WordPress’s search with some simple tips. Here I’ll show you how to alter your WordPress theme to make it much more powerful.

Exclude custom post types

With the introduction of custom post types to WordPress 3.0 you might need to exclude your new items from the built in search engine. There are some extremely complicated methods we could use to do this, but the simplest method is to use the exclude_from_search property when you create the custom post type. For more information check out the WordPress codex on creating custom post types.

This is a quick, simple, and problem free WordPress tip that will make your life much easier. Although this is the simplest way to exclude custom post types, I’ve listed an alternative method below.

// Here we create our custom post type for a feeds add_action('init', 'my_custom_init'); // This is where we set our variables function my_custom_init() { $labels = array( 'name' => _x('Feeds', 'post type general name'), 'singular_name' => _x('Feed', 'post type singular name'), 'add_new' => _x('Add Feed', 'Feed Item'), 'add_new_item' => __('Add New Feed'), 'edit_item' => __('Edit Feed'), 'edit' => _x('Edit', 'feed'), 'new_item' => __('New Feed'), 'view_item' => __('View Feed Information'), 'search_items' => __('Search Feeds'), 'not_found' => __('No feeds were found with that criteria'), 'not_found_in_trash' => __('No feed found in Trash'), 'view' => __('View Feed') ); // Additional arguments (where we place our search exclusion) $args = array( 'labels' => $labels, // This is where we set whether the new post type gets included in a search or not // Defaults to false, but you'll want to set it to true to exclude the item 'exclude_from_search' => true, 'public' => true, 'publicly_queryable' => true, 'show_ui' => true, 'query_var' => true, 'rewrite' => true, 'capability_type' => 'post', 'hierarchical' => true, 'menu_position' => null, 'supports' => array('title', 'editor', 'author', 'custom-fields', 'revisions', 'page-attributes') ); register_post_type('feeds',$args); } 

Search a specific post type

WordPress gives you the ability to target specific post types. Place this at the bottom of your functions.php file and you’re good to go! This is a slightly modified version of the ingenious category search exclude script that has been floating around web design blogs for a while. I’d love to give credit for this, but so many designers are claiming it that I don’t know who the original author is.

function SearchFilter($query) { if ($query->is_search) { // Insert the specific post type you want to search $query->set('post_type', 'feeds'); } return $query; } // This filter will jump into the loop and arrange our results before they're returned add_filter('pre_get_posts','SearchFilter'); 

We can modify this a bit to search two custom post types or more such as podcasts along with our feeds category. This is done by inserting our items into an array so WordPress can swallow the data without choking on our awesome request.

function SearchFilter($query) { if ($query->is_search) { // Insert the specific post types you want to search $query->set('post_type', array('feeds', 'podcasts')); } return $query; } add_filter('pre_get_posts','SearchFilter'); 

Search posts only

On the occasion I need to shut off all of my pages search posts only. Since WordPress can take any post_type query information we throw at it, why not just tell it to search posts only?

function SearchFilter($query) { if ($query->is_search) { $query->set('post_type', 'post'); } return $query; } add_filter('pre_get_posts','SearchFilter'); 

Search specific categories only

You can search specific categories using the same logic for the custom post type search used above. Just plug in your categories and WordPress will take care of everything you need. To get your category IDs, you’ll need to go to “Your Post’s Name” -> Categories (or chosen taxonomy name) and look for the id in the link such as http://www.ashbluewebdesign.com/wp-admin/categories.php?action=edit&cat_ID=125. If you need a more detailed explanation check out this simple post on WordPress IDs. Once again just shove this into the bottom of your functions.php file.

function SearchFilter($query) { if ($query->is_search) { // Insert the specific categories you want to search $query->set('cat', '8,9,12'); } return $query; } add_filter('pre_get_posts','SearchFilter'); 

Search pages only

Sometimes what you really need is to serach pages only. This can be easily done by setting your post type to page.

function SearchFilter($query) { if ($query->is_search) { $query->set('post_type','page'); } return $query; } add_filter('pre_get_posts','SearchFilter'); 

Putting it all together

Taking what we’ve done with these functions, you can shove them into an array and force out some really unique search results. For instance, why not search only pages and feeds, while excluding posts?

function SearchFilter($query) { if ($query->is_search) { $query->set('post_type', array('page', 'feeds')); } return $query; } add_filter('pre_get_posts','SearchFilter'); 

Shutting off WordPress’s search

A really good tip I can give you is to completely shut off the search when you don’t need it. I’ve personally used the search on websites against their will by simply plugging in http://www.yoursite.com/?s=yoursearchtermshere. Feed the user a 404 error page with no results. Do so by telling your functions.php file to direct all searches to it. This code originally comes from WPEngineer. Check out the article for a more thorough explanation.

function fb_filter_query( $query, $error = true ) { if ( is_search() ) { $query->is_search = false; $query->query_vars[s] = false; $query->query[s] = false; // to error if ( $error == true ) $query->is_404 = true; } } add_action( 'parse_query', 'fb_filter_query' ); add_filter( 'get_search_form', create_function( '$a', "return null;" ) ); 

Security Flaw – Private Page Excerpt Tip

If you set a page in WordPress to password protected you’ll notice that it won’t display an excerpt for people searching. Problem is that private pages still display an excerpt, leaving sensitive data open to potential hackers. The best thing you can do here is set the pages to password protected if the information is extremely important. The alternative would be to delete the excerpt in your WordPress search loop. Making it so no excerpt whatsoever appears when somebody searches. Either method is not necessarily ideal. Currently I’m searching for a method to strip private pages from the search, but I’m having trouble finding out how to do so. Please let me know if you have any leads that don’t involve a plugin.

YouTube Video WordPress plugin and Tools Collection

Integrate YouTube In Your Site or WordPress

  • YouTube badge maker – will show your viewers images of your 6 most recently uploaded videos.
  • YouTube WordPress Plugin – Display YouTube videos on your WordPress blog according to Tags.
  • YouTube Video Gallery WordPress Plugin – displays a gallery of videos from youtube.com.
  • WordPress Related Videos Plugin – Uses tags to look for related videos on YouTube, displays the three most recent related videos on your WordPress blog post and updates videos automatically.
  • WordPress Favourite YouTube Videos – WordPress plugin / widget to display, in a very configurable manner, your latest favorite videos from Youtube.
  • Viper�s Video Quicktags – WP plugin that easily generates codes for copy / pasting to embed videos from sites like YouTube and Google Video or for self-hosted videos into your posts.
  • WP-FLV – WordPress plugin simplfies the process of inserting flash video files (FLV) inside a WordPress post or page.
  • TubePress – a highly configurable WordPress plugin that displays YouTube videos in an embedded gallery in posts and/or pages.

Save and Download YouTube Videos

  • Delutube – Lets you view deleted Youtube videos.
  • Video Downloader – a firefox extension that allows you to download youtube videos to your computer from YouTube and most video sites.
  • YouTubeX – allows you to save and download YouTube videos easily using only your IE or firefox browser.
  • TubeSock – grabs YouTube videos from the web and copies them to your video iPod, Mac, or PlayStation Portable.
  • VideoDL – is a quick AJAX application that allows you to download online video into your computer. It supports top 3 video sites – YouTube, Google Video, and Break.com.
  • Download YouTube via bookmarklets – A collection of Greasemonkey scripts and bookmarklets to do the job.
  • Youtube-dl – is a small command-line program to download videos from YouTube.com. It requires the Python interpreter, version 2.4 or later.
  • KeepVid – Download videos direct from most video sites like YouTube.
  • YouTube Downloader – enter url and download YouTube videos.
  • Youtube Grabber – is a free tool that downloads FLV files from youtube.
  • GooTube FLV Retriever – enter the video page URL, download the youtube video.
  • Capture Youtube and Google videos – save them as AVI files encoded in the MPEG4 format, using only one command.
  • YouRipper – a freeware software which enables you to download videos from the YouTube and Google Video
  • Save YouTube Videos – paste the youtube video url and download the video.

Top Youtube Third party tools

  • Splicd – lets you isolate an interesting clip from a YouTube video and provides you with a link to share it with your family, friends, and colleagues.
  • YouTube Userscripts – a collection of scripts to perform several tasks with YouTube.
  • Youtube Video Slideshow – insert a username or a video tag below and it starts a slideshow.
  • fTube – a YouTube player that downloads the list of 25 most recent videos featured on the YouTube front page. The user can select a video from the list and hit the play button to play it in-Flash.
  • TubeCH – YouTube flash player.
  • iTube – grab Youtube videos, then convert and import them into iTunes. Requires .Net framework and works exclusively on Windows.
  • TvTube – For Mac users. Allows you to browse YouTube, Google Video and Yahoo Videos, for movie clips that people upload, choose your favorite clips and add them to your shared library.
  • YouTube API Extraction Tool – PHP script that taps into the YouTube API to deliver videos by tag, by username or what’s a current favorite.
  • YouTube Widget – brings all of YouTubes videos to your Mac Dashboard.
  • Search The Tube – A quick way to find videos for your website, blog or profile.
  • YoutubeCrazyVideos – A Youtube videos desktop player. Freeware.
  • IndexTube – categorized and browsable index of the publicly available Youtube videos.
  • YouTube Podcaster – makes Podcast feed from your submitted keyword or url. The feed is made up from embedded youtube video IDs and all videos are converted to the MP4 file format.
  • MemoriesOnWeb – freeware photo slideshow software for YouTube.
  • Overstream – lets you add subtitles to online videos.

Top / Best YouTube Videos Services

  • PureVideo – collects top 10 videos from around the web
  • The World Internet TV charts – tracks the most popular video clips from four leading Internet TV sites.
  • Top YouTube Videos – a daily updated selection of the most popular videos from YouTube.
  • Vidspedia – is a collection of the best Google and YouTube videos, submitted and rated by users.
  • Youtube top-rated – a coverpop with the 1,001 top rated videos from YouTube updated every week.
  • Best of YouTube – a blog selecting the best Youtube videos.
  • Viral Video Chart – tracks the world’s most blogged about videos including GooTube and MySpace.

Ebook Search Engines

Are you looking for the best places online where to find free ebooks? Take a look at the following resources that allow you to quickly find everything you need.

Mega PDF is an ebook search engine with more than 370 millions of free downloadable ebooks. You can find all kind of books such as manuals, novels and so on. You absolutely must try.

PDFgeni allows you to find free PDF ebooks, novels and manuals for business, education, finance and programming.

Search PDF eBooks is a free PDF search engine to search millions of PDF ebooks.

PDFQueen is another interesting PDF search engine for ebooks.

Free eBooks is an online source for free ebook downloads, ebook resources and ebook authors.

Real-Time Transport Protocol (RTP)

Real – Time Transport Protocol

Chipkidz – Sprint(day 1)

WordPress and Twitter API, Plugin

Introduction:

You can connect to WordPress.com to follow your favorite blogs and receive notifications when new posts are published. You can even publish status updates to the WordPress.com blog of your choice. You’ll see the author’s gravatar in your timeline with excerpts and links to full posts. This way you can be notified of each new post within minutes. In some ways our service is different from Twitter. A Twitter user has a timeline of status updates which is like a blog. On WordPress.com one user can write for many blogs and one blog can have many authors. And then there are comments which can be left by anonymous users.

Twitter is an online social networking and micro-blogging tool which basically allows users to post their facebook-like “status” on their twitter page using various devices such as your cell phone, pda, or computer. Their idea revolves around the “what are you doing” concept; letting people know what you’re up to.

Since Twitter’s launch and exponential growth of other social media networks and blogging tools such as Digg, Facebook, WordPress and Blogger, there have been further Twitter developments in the form of plugins and widgets based on the Twitter API to further the cause.

The Twitter API basically allows developers to play around with Twitter’s functions and use twitter’s xml based data on custom applications.

Using the Twitter API, web developers can integrate their latest twitter into Flash, PHP, JAVA, PERL, Python, .NET, Ruby (and more ).

WordPress enables posting and reading via Twitter API

Megablogging, meet microblogging. WordPress now supports posting to and reading your WordPress blogs through any Twitter client that allows custom APIs. Following a WordPress blog on Twitter means you get snippets and links to new posts, just like you’d get any other tweet. Connecting your own WordPress blog to Twitter means you can tweet and blog simultaneously.

WordPress’ Matt Mullenweg wrote a blog post explaining how to connect Twitter and WordPress using Tweetie 2 on the iPhone. Basically, you just need to find your Twitter client’s Custom API settings (for Tweetie 2, they’re behind the little gear icon on the Add Account screen) and enter https://twitter-api.wordpress.com/ as the API root.

WordPress can also attach geotagging information from Twitter to your posts, if your client supports it. If you’ve got multiple blogs, you can go to the profile settings in your WordPress dashboard and choose which one to associate with each of your Twitter accounts. We’re used to thinking of tweeting and blogging as two separate things, but the WordPress team sees them as closely related, and API support is a pretty cool extension of that philosophy.

Using WordPress.com through the Twitter API

If you’re a software developer interested in talking to WordPress.com using the Twitter protocol–you’ve found the right page. If you’re a user, visit our Twitter API page to learn how to get real-time access to your blog subscriptions using a Twitter client that supports WordPress.com.

Twitter is a communication protocol where one can send a message without specifying a recipient. There are a lot of possibilities for Twitter as a protocol and we’re exploring this at WordPress.com.

Through the Twitter API, WordPress.com users can:

  • Read and receive new post notifications from blogs they’re subscribed to using the Blog Surfer feature
  • Post a “status update” to one of their WordPress.com blogs

On this page you’ll learn which Twitter APIs WordPress.com supports, the WordPress.com Twitter API conventions, and other resources to look at.

API Basics

The WordPress.com Twitter API supports Basic AUTH. OAuth is not supported at this time. Users should use their WordPress.com username and password.

Our end-point for the Twitter API is http://twitter-api.wordpress.com. We also support secure connections at https://twitter-api.wordpress.com

The Twitter API is a RESTful API. Requests are made over HTTP and the response is returned using the format you specify. The general format of a Twitter API request is:

http://twitter-api.wordpress.com/category/method_call.format

The available categories and methods are shown in the next section. The formats available are RSS, XML, and JSON. The WordPress.com Twitter API supports each of these.

API Methods

This list of API methods is organized similar to Twitter’s API Documentation. Missing categories are not implemented on WordPress.com.

Timeline Methods

statuses/friends_timeline

Individual blog posts on WordPress.com are status updates. With this call you will receive recent posts from the blogs the user is subscribed to.

statuses/home_timeline

Same as statuses/friends_timeline

statuses/user_timeline

Users can request their most recently blog posts using this call.

↑ Table of Contents ↑

Status Methods

statuses/update

This method is similar to its Twitter counterpart. It lets you make a blog post. You may specify a post with a title using “post title::post body”. If you specify an identifier for a blog, the post will go there. Otherwise the post goes to the default blog of the authenticated user.

↑ Table of Contents ↑

User Methods

users/show

Shows profile information about the specified blog and returns its latest post.

statuses/friends

Shows which blogs the authenticated user is subscribed to.

↑ Table of Contents ↑

Friendship Methods

friendships/create

Subscribe to a blog

friendships/destroy

Unsubscribe from a blog

friendships/exists

Check whether the current user is following the specified blog or not

friendships/show

Shows the relationship between two users

↑ Table of Contents ↑

Social Graph Methods

friends/ids

Returns the blogs the current user is subscribed to as a list of ids

↑ Table of Contents ↑

Account Methods

account/verify_credentials

Use this method to authenticate a user and test if their credentials are valid (uses BASIC AUTH)

API Fields

Each of the API methods returns different fields. Here are how these fields map onto WordPress.com.

description is the tag line description of the blog.

id is a number that identifies a blog.

name is the WordPress.com username of the author of the post.

profile_image_url is a link to the Gravatar of the post author. If no Gravatar is available the Blavatar for the blog is used instead.

screen_name is the address of the blog without the http://.

text is an excerpt or shortened snippet (up to 140 characters) of the post.

url is the URL of the blog.

Recommended Reading

Here’s a list of Twitter Plugins and links:

WordPress Twitter Plugins, Tools, Widgets

  • Wickett Twitter Widget – Display tweets from a Twitter account in the sidebar of your blog. As seen on WordPress.com. The easiest and best way to add Tweets to WordPress.
  • TweetSuite -� a Twitter-WordPress integration plugin that includes server-side TweetBacks, ReTweet-This buttons, digg-like Tweet-This Button, automatic tweeting of new posts and some widgets.
  • Tweet This – A plugin that adds a Twitter icon to every post and page, so your readers can share your blog entries on their Twitter accounts with ease.
  • TweetMeme button – easily allows your blog posts to be retweeted.
  • Simple Twitter Link – simply returns a URL, which is a link to Twitter with your post/page URL within it.
  • WP Twitip ID – Plugin adds an extra field to the comment form for user to enter their twitter username
  • Twitter Badge – Official javascript codes that display badges showing what you are posting on Twitter.
  • The Twitter Updater – a wordpress plugin that automatically sends a Twitter status update to your Twitter account when you create, publish, or edit your WordPress post. You can specify the text for the updates, and also have the option to turn the auto update on/off for the different post actions in the admin panel.
  • TwitThis is an easy way for people to send Twitter messages about your blog post or website. When visitors to your website click on the TwitThis button or link, it takes the URL of the webpage and creates a shorter URL using TinyURL. Then visitors can send this shortened URL and a description of the web page to all of their friends on Twitter.
  • Twitter Tools – This wordpress plugin creates an integration between your WordPress blog and your Twitter account. Pull your tweets into your blog and create new tweets on blog posts and from within WordPress.
  • Twitter WordPress Sidebar Widget – Customise the number of updates shown in your sidebar, individual links to each status update on Twitter, style your Twitterings using CSS, choose whether to display your Twitter name before each post and customise text between the post text and the relative time.
  • Twitter Feed – Posts your blog updates to your twitter account. Login to twitterfeed using your OpenID, provide the URL for your blog RSS feed, and how often to post to Twitter.
  • Twitt-Twoo – is a simple little plugin that will allow you to update your Twitter status right from your blog�s sidebar. It is AJAX powered and allows for quick and easy status updates.
  • Twitter Sharts – ‘Shart’ your twitter status anywhere within your wordpress blog posts or pages.

title-twitterSince Twitter launch in Year 2006, it has grown to create network what most people would call a social media revolution and it became one of the most popular social media networks, which if you’re serious about blogging, you can’t ignore.

Twitter has their own tools for displaying Twitter status on website, but they are pretty slow and not too varied or maybe you just need don’t know about such plugins, that’s why I chose to take research and create comprehensive list with Twitter related WordPress plugins and tools that will help you unite Twitter with your blog.

Twitter Tools

Twitter Tools is a plugin that creates a complete integration between your WordPress blog and your Twitter account.

Twitter Tools integrates with Twitter by giving you the following functionality:

  • Archive your Twitter tweets (downloaded every 10 minutes)
  • Create a blog post from each of your tweets
  • Create a daily or weekly digest post of your tweets
  • Create a tweet on Twitter whenever you post in your blog, with a link to the blog post
  • Post a tweet from your sidebar
  • Post a tweet from the WP Admin screens
  • Pass your tweets along to another service (via API hook).

TwitterDash

TwitterDash is a WordPress plugin that adds your friends timeline from twitter into your dashboard.

twitter-dash-wordpress-plugin

Thread Twitter

Thread Twitter fetch your tweets and display them in thread style.

Elegant Twitter Widget

A WordPress widget that displays twitter updates in yummy valid semantic XHTML code. The code is heavily commented and the output is in template functions so everything is fully customizable.

Twitt-Twoo

twitttwoo-released

Twitt-Twoo is a simple little plugin that will allow you to update your Twitter status right from your blog’s sidebar. AJAX takes cares of the hard work, and means that your page doens’t even have to reload, allowing for quick and easy status updates.

twitt-twoo-wordpress-plugin

Twitter Retweet

Twitter ReTweet provides a function that displays a ReTweet link which gives visitors the ability to ReTweet the current post; supports custom URLs (perfect for Google Analytics Campaign Tracking

Tweet Tweet

Tweet Tweet is a plugin for WordPress that polls Twitter and archives your tweets and the tweets of those you follow so those insightful conversations you have at 1am are never lost.

Twitter Widget

Adds a sidebar widget to display Twitter updates (uses the Javascript Twitter ‘badge’)

twitter-widget-wordpress-plugin

Twitter Widget Pro

A widget that properly handles twitter feeds, including @username, #hashtag, and link parsing. It supports displaying profiles images, and even lets you control whether to display the time and date of a tweet or how log ago it happened (about 5 hours ago, etc). Requires PHP5.

twitter-widget-pro-plugin

Tweet Rooster

Add the code from this website and you can enable users to tweet directly from your website or blog.

WP-Twitip-ID Plugin

Add a twitter field to your comment form (easily).

wp-twitip-id-plugin

Top Twitter Links by Twitturls

Widget that displays currently popular links that have been tweeted.

TwitterFountain

Have you ever wanted to see what was happening at that one event you could not go to? Did the plain text-backchannels somehow left you feeling disappointed?

Twitterfountain comes to your aid mashing up tweets and Flickr-images that share the same tags into a spectacular visual. Below is a sample, that you can copy and embed in your own site.

twitter-fountain-wordpress-plugin

TweetSuite

The first version of TweetSuite, a Twitter-WordPress integration plugin that includes the following features:

  • Server-side (no-JS or remote calls) TweetBacks
  • ReTweet-This buttons for each TweetBack
  • A digg-like Tweet-This Button
  • Automatic Tweeting of new posts
  • A Most-Tweeted Widget
  • A Recently-Tweeted Widget
  • My-Last-Tweets Widget
  • A My-Favorited-Tweets Widget

TweetBacks

People are talking about your posts, and not only in the comments to your post. A lot of that conversation is happening on Twitter, and now, you can take that conversation right back to your blog! This plugin imports those tweets about your posts as comments. You can display them in between the other comments on your blog, or display them separately.

Tweet Stats

This plugin adds two widgets to your site: “Most Tweeted Posts” and “Recently Tweeted Posts”. It depends on the Tweetbacks plugin by Yoast, so make sure you have that plugin installed.

tweet-stats-wordpress-plugin

Twitter Remote (beta)

This widget shows which twitter users recently visited your blog or website.

twitter-remote-wordpress-plugin

Tweet This

Adds a “Tweet This Post” link to every post and page. Shortens URLs in advance through Th8.us, eating up only 19 of 140 characters. Also included: Plurk, Yahoo Buzz, Delicious, Digg, Ping.fm, Reddit, and StumbleUpon. Includes the post’s title after the link (can be customized). If your titles are really long, they get cut off at 136 characters with “…”. Customize under Settings > Tweet This. Includes your choice of six buttons.

tweet-this-wordpress-plugin

ComenTwitter

Ultimately plugin’s goal is to give the commenter the option of sending their comment to twitter and allowing people to follow that blogs comments both in the blog and in twitter. The main reason for this is to generate a buzz and encourage commenting on peoples blogs. It will also improve the quality and value of people’s tweets revolving around blog posts.

commentwitter

TweetRoll

This widget shows your friends avatars on your blog/website and encourages more people to follow you. Colour customization and localization options available.

tweet-roll-wordpress-plugin

Twitme

This plugin allows you to automatically post your new posts on the twitter website. This is good because for example the iPod and iPhone for example have a large amount of twitter clients to pick from. Your blog posts will arrive to people while they are walking the streets.

Twitter Poster

The Twitter Poster is a plugin which allows wordpress publishers to automatically post their new posts to their Twitter account. The Twitter Poster will take the title of a new post and will subit it to the Twitter account specified in the options. It will also add the link back to the post, allowing your twitter followers to access the post details

Twitter Friends Widget

Twitter Friends is a WordPress plugin that displays your Twitter friends/ followers in your sidebar in the same way that they appear on your Twitter homepage.

twitter-friends-widget

Tweetable Twitter Plugin

Tweetable is a WordPress Plugin intended to help integrate Twitter into your blog. It can tweet your blog posts as they are published, shortening the URLs with either Tr.im or Is.gd and optionally including Google Analytics campaign tags. You can display your latest tweet(s) in your blog sidebar with a customizable widget, which can even display your follower count.

tweetable-twitter-plugin-wordpress

Twitter Feed

The application will display the latest tweet from all of the active accounts and then displays those latest tweets in date order. So the newest tweet across all of the accounts will always be shown first. It is also possible to switch between allowing/disallowing PM (Private Message) tweets to be included in the display.

twitter-feed-wordpres-plugin

Add Twitter RSS

Add Twitter RSS is a simple plugin that adds your Twitter RSS link to the header of your blog. It allows your readers to easily find your Twitter feed.

add-twitter-rss-wordpress-plugin

TwitterCounter

Allows you to integrate TwitterCounter.com badges on your blog. Additionally, you can add the Twitter Remote to your blog, which shows which twitter users recently visited your blog or website. Manually add where you would like to display the badge / remote or use the WordPress sidebar widgets instead.

@ Reply

This plugin allows you to add Twitter-like @reply links to comments. When clicked, those links insert the author name and a link to the comment you are replying to in the textarea.

reply-wordpress-plugin

Bird Feeder

Bird Feeder is a WordPress plug-in that simply tweets when you publish a post. It doesn’t do anything else, nor will it ever.

Twitter Updater

This plugin will let you automatically update your Twitter.com status with your most recent blog post. There are a few options to how the display will look when it updates.

TweetMeMe

At last I found this beautiful website which tracks the hottest links on Twitter, interesting analysis.

tweetmeme-twitter-links

Example:1 AJAX Twitter plugin for WordPress

image I have been working on a plugin which I had early posted on my personal blog. I have finished the Twitter plugin for WordPress now and ready to release for public download.

This plugin is using the Twitter API to get and post the updates. You need to have a twitter account to post updates. I am sure now almost all the bloggers use twitter.

Features

  1. You can update your twitter status from your blog
  2. You can view and display public updates on your blog
  3. You can view and display your followers updates on your blog
  4. You can view and display your followers on your blog and increase your followers
  5. Simple installation
  6. Widget Ready, just need to enable to use
  7. Can you displayed anywhere on your blog, by just adding a simple code if you do not want to display using the widget
  8. Widget fully customisable, size, font, font size, colour, number of updates, number of followers, etc
  9. Enable and disable different features
  10. Regular Updates

Installation

Installation is very simple, just upload the unzipped files to the plugins directory and activate the plugin. If you wish to display on the sidebar, just go to the widgets option as shown below

image

Settings

After activating the plugin, just go to the setting link , you will find the Kish Twitter settings link

image

Once you go to the settings, you will find all the options to customize the view of the “Kish Twitter” Widget

image

Options Explained

  • Twitter Enabled – If you want this plugin to work, you need to check this option or nothing will be shown even if the plugin is activated
  • Enable Public Updates – You can enable or disable public updates on your widget
  • Enable Followers Say – By enabling this, you can display the messages from your followers on your widget
  • Enable Rel = nofollow – You can add rel tag by enabling this
  • Enable Follow Me- You can enable this to get your followers details
  • Twitter User Name – You need to enter your username and password for this plugin to work
  • Maximum Info Lines – The maximum number of updates that you want to show on your widget. You will need to set this according to the size of the widget.
  • Maximum Users- You need to set this to display the number of followers and the number of twitters you follow
  • Font- Family – Name of the font that you want to use for this widget, example a series of fonts or font name
  • Font Size – Font size of the widget
  • Message – You can display a message on the footer of the widget
  • After you make the changes, just save the options

You can display the widget anywhere on your blog by just adding the following to your blog template

<? if (function_exists('printKishTwitter')) printKishTwitter(); ?>

If you have a questions please post it here.

UPDATE – Please check the latest version of Twitter WordPress Plugin – Kish Twitter

Download Now

Example:2

WordPress Twitter Plugin is a cool plugin that will add a beautiful Tweets widget to your wordpress blog.

You can choose to display your Twitter timeline or your friends’ timeline in the widget. You can even choose to display tweets on a keyword, depending upon your blog’s niche. For eg., if your blog is about wordpress, its themes and plugins, you can choose to display tweets on the keyword “wordpress”.

If you have a blog on iphones then you may add a WordPress Twitter widget that displays all tweets on the keyword “Iphone”!!! This makes your blog more useful to your readers, as they will be able to discover some cool tweets (links) related to your niche.

The widget is available in three different themes – blue, green and red. You can preview the widget live here on Bestindianbloggers

How to install WordPress Twitter Plugin?

  • 1. Download the plguin zip file and upload it via “Plugins” –> “Add New” –> “Upload” in wordpress. Alternatively, you can choose to search for the term “Wordpress Twitter” and install it directly from wordpress.
  • 2. Activate the plugin through the ‘Plugins’ menu in WordPress
  • 3. Go to “Settings” –> “Wordpress Twitter” and specify the Twitter user name, password, Widget’s width, height, theme (style), number of tweets to display etc. If you want to display tweets on a keyword, choose “Search” against “Timeline” and specify the keyword
  • 4. Go to Widgets and add the “Wordpress Twitter” widget to your sidebar.
  • 5. Alternatively, you can also directly add the following code to wherever you want to display the widget.
<?php $bibtweets=new bibtweets(); $bibtweets->printBox(); ?>

That’s all folks!!! Install WP Tweets and enjoy the widget.

WordPress Twitter Plugin Options:

The following image shows the various configurable options in wordpress twitter plugin.

WordPress Twitter Widget:

The following image is a red themed widget as seen on a wordpress blog. It is showing Bestindianblogs Friends Timeline.

Wordpress Twitter

WordPress Twitter Keyword Widget:

The following image is a blue themed widget as seen on a wordpress blog. It is showing tweets for the keyword “Wordpress”.

Wordpress Twitter Keyword, WordPress Tweets

WordPress Twitter Keyword Widget:

The following image is a green themed widget as seen on a wordpress blog.

Twitter for WordPress

Download WordPress Twitter Plugin from wordpress repository @ http://wordpress.org/extend/plugins/wordpress-twitter/!!!

Thanks to Ptwix for being the inspiration behind this plugin. Ptwix can be used on any PHP based site, but lacked the automation of a wordpress plugin. WordPress Twitter Plugin is easily configurable and can be used on wordpress blog.Besides, it can automatically detect the presence of Curl and use it for retrieving Tweets.If Curl is not enabled on your wordpress server, the plugin uses file_get to retrieve the tweets. We have plans to extend the capabilities of this plugin beyond what is there currently.Until then, enjoy showing beautiful WordPress Tweet widgets on your wordpress blog.

FAQs:

Can I adjust the width and height of the widget?

Yes for sure.You can easily configure the width and height via the plugin settings (Settings — >Wordpress Twitter)

Can I determine the number of tweets to show in the widget?

Yes.You can configure the number of tweets to show in the widget via the plugin settings (Settings –> WordPress Twitter).

Can I hide my “Follow me on twitter” link in the widget?

Yes. It is turned off by default.You can turn it on to let your blog readers follow you on twitter.

Can I display the widget at any place other than the sidebar?

Yes. You can do so by placing the php code (refer above) in the appropriate theme file.

What version of PHP does this plugin require?

The plugin needs PHP 5.0 and above.Most good webhosts would have already migrated to the latest version of PHP. If you don’t have PHP 5.0 or above, ask your webhost to upgrade PHP.
Version 1.4 of the plugin can work even on earlier versions of PHP.

Bookmark and Share

WordPress and Facebook Plugin

WP-FBConnect

From Facebook Developer Wiki

WP-FacebookConnect adds Facebook functionality to WordPress using the Facebook Connect APIs. It provides single sign-on, avatars, and News Feed publication of comments.

You can download the plugin from http://wordpress.org/extend/plugins/wp-facebookconnect/.

Please contact ahupp at facebook.com with any questions or problems.

Contents

[hide]

//

How Does it Work?

The first time a user clicks the Connect button, the plugin creates a new WordPress user named ‘fbN’, where N is that user’s Facebook user ID. The Facebook user ID is also stored in the wp_usermeta table under the key fbuid. The plugin can securely identify the Facebook user because it received signed session cookies along with the request.

Once the WordPress and Facebook accounts are linked and the Facebook user ID is verified, the plugin sets a WordPress login cookie. The page reloads and the user will be logged into the blog.

Most login state handling occurs in fbc_init_auth.

Installing the Plugin

  1. Copy the plugin to wp-content/plugins/wp-fbconnect under your WordPress installation.
  2. In the WordPress Admin panel, visit the plugins page and Activate the plugin.
  3. Visit the settings page and select “Facebook Connect”. Follow the given instructions to configure the plugin and obtain a Facebook API key.

A minimal amount of theme integration is necessary. Open the ‘comments.php’ file in the theme and add the following line where the Connect login button should be inserted:

<?php do_action(‘fbc_display_login_button’) ?>

The reason for calling fbc_display_login_button via do_action instead of directly is to avoid spewing errors if the plugin is disabled. It would be equally correct to directly call fbc_display_login_button() here.

As a simple example, the comments.php file on my blog looks like:

<?php if ( $user_ID ) : ?>

<?php else : ?>

….

<?php endif; ?>

<?php do_action(‘fbc_display_login_button’)  ?>

Note: The fbc_display_login_button function should be called regardless of whether the user is currently logged into WordPress or not. However, the login button does not appear in the user is logged into WordPress.

You should also make sure the following required hooks appear somewhere in your template. These appear in the default template but may not appear in a modified template.

  • language_attributes() should be called within the declaration of the HTML tag in header.php.
  • wp_head() and {{c|wp_footer() should be called in header.php and footer.php, respectively.
  • comment_form() sets up the Feed form.

There are also some optional but useful hooks that should appear:

  • get_avatar in a comment will display the commentor’s Facebook profile pic.

See config.php and the Settings page for more configuration and customization options.

If you don’t want the user login state box to display in the upper right corner of the screen, simply add a call to

fbc_display_login_state();

in the template where you would like it to appear.

External Documentation

Adam Breckler wrote up an installation tutorial: http://www.adambreckler.com/setting-up-facebook-connect-for-wordpress

Other Plugins to consider

Integrate Facebook Share on your WordPress with analytics: http://wordpress.org/extend/plugins/facebook-share-new/

About the nofollow Attribute

When a Facebook Connect user posts a comment, the Author field for the comment links back to that user’s public profile page at Facebook. For instance, my comments link back to http://www.facebook.com/people/Adam-Hupp/806285106.

To reduce spamming, WordPress automatically adds the nofollow attribute to all comment links. However, this is undesirable when the links are generated by a trusted source (for example, the plugin). For this reason the plugin will remove the nofollow attribute from all Facebook user comments. You can configure this on the Settings page.

AJAX Login

TODO: Example will be implemented in a later release.

Known Problems

  1. The login status box (“Welcome, yourname”) has a fixed size instead of expanding to fit the name.

Future Work

  1. Support avatars and News Feed for blog posters.
  2. Notification when a friend comments on the same article you have.
  3. Widget to display your friends that have visited the blog.
  4. Widget to invite friends to read the article.
  5. Support for BuddyPress

Troubleshooting / FAQ

The best tool for troubleshooting is to load a post with the string “?fbc_verbose_debug” at the end of the URL. This will try to identify the most common misconfigurations. Note that this only works in Firefox at the moment.

Q. I don’t see the Connect button.

A1. Currently the Connect button will not display for users that are already logged into WordPress.

A2. Make sure there is a call to the wp_head hook in the header.php file of your theme, and that the wp_footer hook is also called somewhere.

A3. See the question entitled “It doesn’t work in IE”.

A4. Look at the generated page and find the URL to the fbconnect.js file. It should look something like ‘http://somesite.com/wordpress/wp-content/plugins/wp-fbconnect/fbconnect.js’. Load this page for your site and verify that something like JavaScript is returned. If you get a 404 error or some other page you’ll need to fix your access rules/installation/rewrite rules so that the file is accessible.

Q. Under what license is this plug-in released? Can we edit and release new versions based on it?

A. GPL Open Source.

Q. It takes too long for the user profiles, logged in user name, and login button to appear. How can I make it faster?

A. Loading of these page elements is triggered by the call to FBConnect.init(…) generated in fbc_footer. If there is large amount of JavaScript (e.g., ads or tracking) that appears before that call it will slowdown Facebook Connect loading. Make sure the FBConnect.init(…) call comes as close to the end of all XFBML content as possible.

Q. A user logged in to wp-fbconnect cannot post comments. The “submit” button does nothing.

A. The textarea containing the comment text may have had its id attribute renamed. Find the textarea with name=comment and ensure that its id attribute is also equal to ‘comment’

Q. It doesn’t work in IE.

A. You’re missing a call to language_attributes() in the html tag of your theme. Edit header.php and make sure the html tag looks like this: http://trac.wordpress.org/browser/trunk/wp-content/themes/default/header.php

Q. How do I get this to work with wp-super-cache?

A. See http://www.allfacebook.com/2008/12/how-to-make-facebook-connect-work-with-wp-super-cache/

Q. I get a error that says “parse error, unexpected T_OBJECT_OPERATOR”, or some other parse error.

A. The plugin only supports PHP5 and you are using PHP4. Please upgrade. If you are a user of 1and1 hosting, follow these instructions: http://www.thecodecave.com/article206. The .htaccess file it describes must be placed in the root directory of your WordPress installation.

Q. How do I change the text “Connect with your Facebook Account” that appears above the connect button?

A. Go to yourblog.url/wp-admin/plugin-editor.php?file=wp-fbconnect/fbconnect.php. Search for “Connect with” and replace that line with any text you like or remove it.

Q. I setup the plugin and then moved it to a new site. Now I receive and error about an invalid Connect URL. How do I fix this?

A. The Connect URL is configured automatically each time you press “Submit” on the settings page. Try going to the settings page and pressing Submit again.

Q. How do I change my story template?

A. Update the template in config.php. Then, go to the settings page and check the box that says “Force Reload of Template Bundle from config.php (resets ID): ” and click “Update Options”.

Q. The white background on the login button looks bad because I have a dark background on my blog. How do I make it look better?

A. On line 99 of common.php change the background=”white” attribute to light or dark, as needed.

Q. How can i use my own CSS style?

A. On line 358 of fbconnect.php delete the CSS stylesheet declaration line then use you own CSS file or write styles in default style.css file of current active theme.

Q. How can i show/use it whatever i want in my template?

A. Here is an example of using it with sidebar.php

<?php if ( is_user_logged_in() ) { fbc_display_login_state(); } else { fbc_display_login_button(); } ?>
Please note the plugin should activated before using such code and FBC_USER_PROFILE_WINDOW should set to false to stop rendering the loggedin user info in absolute position.

Q. How can i change the facebook login button?

A. Update the code at line 99 of common.php according to the attributes described here.

Q. I have a Facebook Fan box on my WordPress blog and am also using this plugin but the plugin is saying it’s under development and might be using the wrong app ID. What’s going on?

A. Out of the box, you can only have one connection to Facebook in each window. Since the fb:fan tag (which the fan box uses) essentially creates a placeholder app and references that, it may hijack any other attempts to connect to Facebook. To get around this, use an iframe that references a file like this as the src:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2008/fbml">
<head>
<title>Fan widget</title>
</head>
<body>
<base target="_parent" />
<script src="http://static.ak.connect.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php" type="text/javascript"></script>
<fb:fan profile_id="YOUR_PAGE_ID" stream="1" connections=""></fb:fan>
<script type="text/javascript">
FB_RequireFeatures(["XFBML"], function()
{
FB.init("YOUR_FAKE_API_KEY", "YOUR_WP_URL");
});
</script>
</body>
</html>

The YOUR_FAKE_API_KEY can be found in the generated code that Facebook gives you when you create a Fan box: FB.init("YOUR_FAKE_API_KEY");

Facebook WordPress Plugins

1. Add to Facebook

Once you install this plugin on your WordPress blog, you can see a footer link at the bottom of each blog post. By clicking on this link, user can add the current post to their Facebook mini-Feed. You can choose either a text link “Share on Facebook” or a Facebook button or both can be displayed at the bottom of the post. By clicking on the link, the user can sign in to the Facebook account it he is not already logged in and the post will be automatically added to his Mini-Feed.

2. Facebook Comments

This plug-in will import all the comments that are written on Facebook to your blog to the exact post such that you can see all the comments that are been made for a particular post directly in your WordPress blog. By this way you will not miss a single comment made on your post and it automatically updates the comments. (Edit: Plugin is not working for some people and pending update by author)

3. Facebook Dashboard Widget

This WordPress plug-in for Facebook allows you to see all the updates from your friends and allows you to know what your friends are doing. This is a  dashboard widget that allows you to go side by side with your friends on Facebook and your WordPress blog. Using this widget you can know the updates from your Facebook friends even if the Facebook site is blocked.

4. WP-FBConnect

This plug-in will add Facebook functionality to your WordPress blog using the Facebook Connect APIs. You have to link WordPress and your Facebook account, and once they are linked you need not have to sign in again. You can publish the comments on your blog through the newsfeed and Facebook avatars will be displayed in the comments field.

5. Gigya

All the features in this plugins are fully configurable by the WordPress administration panel. By installing this plug-in to your WordPress blog, you can have a secure signup and login for users in your site. You can update your states on various social networking sites at once and also invite all your friends on various networks to visit and join in your blog site.

6. Facebook Photos plug-in

This plug-in allows you to add photos to the posts directly from the Facebook. All that you have to do is install and activate the plug-in and link your Facebook account with the WordPress blog. After that when you edit a new post in WordPress, a new Facebook icon in the add media section will be present – by clicking on the icon you can see the photos that you have uploaded to your Facebook account. You can then insert the photos to the post as small, medium and large size and can also align the image position.

Bookmark and Share