26 agosto 2009

9 WordPress Hacks to Encourage User Interactivity
Use o tradutor nesta página para melhorar seu entendimento!
All bloggers would like to get more interaction and participation from their readers and visitors. In this post we’ll look at nine different things you can do to your WordPress theme to add the possibility of some type of interaction. Some involves comments, social media, and other ways of getting readers involved.

1. Show Most Recent Comments

One of the most important ways that blogs can encourage readers to get involved is through the comments. There are a number of different strategies for increasing comments and participationfrom readers, and many of them involve placing extra emphasis on the comments. By displaying the most recent comments (in the sidebar for example) you may be able to encourage more comments because visitors will see that you value their participation.
To display a list of the most recent comments, use the following code in your theme:
?Download download.txt
1
2
3
4
5
6

7
8
9
10
11 12 13
14
15
16
17
18
19
20
21
22
23
24
comments
LEFT OUTER JOIN $wpdb->posts ON ($wpdb->comments.comment_post_ID =
$wpdb->posts.ID)
WHERE comment_approved = '1' AND comment_type = '' AND
post_password = ''
ORDER BY comment_date_gmt DESC
LIMIT 10";
$comments = $wpdb->get_results($sql);
$output = $pre_HTML;
$output .= "
\n
<ul>";
foreach ($comments as $comment) {
$output .= "
\n
<li>".strip_tags($comment->comment_author)
."
:" . "<a href="\">ID) .
"
#comment-" . $comment->comment_ID . "\" title=\"on " .
$comment-&gt;post_title . "\">" . strip_tags($comment-&gt;com_excerpt)
."
"
;
}
$output .= "\n
"
;
$output .= $post_HTML;
echo $output;?&gt;
Source: WP Hacks

2. Allow Visitors to Email Posts to Their Friends

If your readers enjoy and appreciate the posts on your blog they may be interested in emailing them to their friends. On most news websites you’ll see a link that says “email to a friend,” but it’s not as common on blogs. Adding this functionality into your theme is not as difficult as you might think.
To add an “email this” link, use the following code in your single.php file:
?Download download.txt
1
2
3
<a href="mailto:?subject=?>&body=" title="Send this
article to a friend!"
>Email thisa>
Source: WP Recipes

3. Add a “Share on Facebook” Link

While social media and social networking are commonly integrated with blogging, it’s more common to see a Digg or Tweetmeme button than one that will allow readers to share the link via Facebook. Since Facebook is such an incredibly popular site, it may provide additional exposure foryour blog and provide more opportunities for your readers to interact with your content.
To add a “share on Facebook” link, use the following code:
?Download download.txt
1
<a href="http://www.facebook.com/sharer.php?u=<?php the_permalink();?>&t=<?php the_title(); ?>" target="blank">Share on Facebooka>
Source: WP Recipes

4. Add Custom Bookmark Links

Many blogs receive tremendous exposure from social media sites, and encouraging your readers to interact by voting or bookmarking can make a big difference in terms of traffic levels. There are plugins and widgets available for this purpose, as well as buttons and badges from the social mediasites, but if you’d like more control over the look or if you would just like to do it yourself it is possible.
Bookmark with Delicious:
?Download download.txt
1
<a title="Bookmark this post at Delicious" rel="nofollow" href="http://delicious.com/post?url=<?php the_permalink(); ?>&title=<?php echo urlencode(get_the_title($id)); ?>">Bookmark at Deliciousa>
Digg:
?Download download.txt
1
<a title="Submit this post to Digg" rel="nofollow" href="http://digg.com/submit?phase=2&url=<?php the_permalink(); ?>">Digg this!a>
Twitter:
?Download download.txt
1
<a rel="nofollow" href="http://twitter.com/home?status=Currently reading: "); ?>" title="Share this article with your Twitter followers">Tweet this!a>
StumbleUpon:
?Download download.txt
1
<a title="Share this post at StumbleUpon" rel="nofollow" href="http://www.stumbleupon.com/submit?url=<?php the_permalink(); ?>&title=<?php echo urlencode(get_the_title($id)); ?>">Stumble this!a>

5. Rearrange the Comments to Show Most Recent Comments First

Having a blog that receives a lot of comments from readers can in some ways discourage others from participating. Some readers will not take the time to leave a comment if they feel like theirs will be buried below 100 other comments. One trick to reward those who are going to take the time to comment is to list the comments with the most recent on top, rather than the oldest one being on top.
Find the following code in your comments.php file (please note that not all themes use the same coding for the comments.php file):
?Download download.txt
1
foreach ($comments as $comment)
and before it add:
?Download download.txt
1
$comments = array_reverse($comments);

6. Add a User-Submitted News Section

User-submitted news or community news sections can be a great way for visitors to get involved at your site. With a news section you will be able to display links to relevant posts at other blogs, and your readers will be able to submit posts that they have found to be helpful, or get some extra promotion by submitting links to their own posts.
I included a news section when I launched DesignM.ag last year and since day one it has drawn significant interest from readers.
The process of adding a news section is more involved than just copying and pasting some code, so I will not be providing code for this one, but Tripwire Magazine published a post a few months ago that will lead you through the process. See How to: WordPress 2.7+ User Link Feed Submit Form and Widget.

7. Add Translation Links

As a blogger, you may be surprised to see how many of your visitors and subscribers come from various countries. While these people may be able to read and understand your posts, there may be some times when they have difficulty or where they would like to share the post with someone who may not be able to read it. In these case, translation can come in handy.
Inserting the code shown below will allow your visitors to easily use Google’s translation services:
?Download download.txt
1 2 3 4 5 6
7
8
9
10
<ul id="translations">
<li><a rel="nofollow" href="http://translate.google.com/translate?u=<?php echo urlencode('http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']); ?>&langpair=en%7Cde">Translate this page to Deutscha>li>
<li><a rel="nofollow" href="http://translate.google.com/translate?u=<?php echo urlencode('http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']); ?>&langpair=en%7Ces">Translate this page to Espanola>li>
<li><a rel="nofollow" href="http://translate.google.com/translate?u=<?php echo urlencode('http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']); ?>&langpair=en%7Cfr">Translate this page to Francaisa>li>
<li><a rel="nofollow" href="http://translate.google.com/translate?u=<?php echo urlencode('http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']); ?>&langpair=en%7Cit">Translate this page to Italianoa>li>
<li><a rel="nofollow" href="http://translate.google.com/translate?u=<?php echo urlencode('http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']); ?>&langpair=en%7Cpt">Translate this page to Portuguesa>li>
<li><a rel="nofollow" href="http://translate.google.com/translate?u=<?php echo urlencode('http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']); ?>&langpair=en%7Car">Translate this page to Arabica>li>
<li><a rel="nofollow" href="http://translate.google.com/translate?u=<?php echo urlencode('http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']); ?>&langpair=en%7Cja">Translate this page to Japanesea>li>
<li><a rel="nofollow" href="http://translate.google.com/translate?u=<?php echo urlencode('http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']); ?>&langpair=en%7Cko">Translate this page to Koreana>li>
ul>

8. Google Custom Search

One of the best ways for visitors to find what they are looking for is to use a site-wide search. Unfortunately, the default WordPress search isn’t much help in most cases. However, you can easily add custom search powered by Google to your blog (plus you can monetize the search through AdSense).
In order to get your own custom search from Google, you will need to sign up with them and they will provide the code. Pro Blog Design has a tutorial that takes you through all of the steps that are involved. See Make a Google Custom Search for Your Blog, and Make Money.

9. Display Facebook Status on Your Blog

Many blogs display most recent tweets, but it’s also possible to share your Facebook status on your blog. There are a few steps involved in doing this with WordPress, and Hongkiat has a tutorial that will lead you through the process. See How to Display Facebook Statuses on WordPress Blog.


download.png (400×150)

Download:





Ta cansado de baixar templates???
Aproveite a promoção e compre coletânea Template Monster com 8 DVD´s + Coletânea Joomla + Template Box Por apenas R$129,90









0 comentários:

Postar um comentário

www.alexa.com