Užitečné pluginy, návody a šablony pro WordPress CMS

Publikování příspěvků z Twitteru

Twitter Feed for WordPress
http://wordpress.org/…witter-feed/

The WordPress Twitter Feed Plugin lets you simply output any user's tweets into your WordPress page, template or sidebar! You can customise the username, number of tweets, and style of ouput.

Alternativy

Twitter Widget Pro
http://wordpress.org/…-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).

Tweet Blender
http://wordpress.org/…eet-blender/

Tweet Blender is tag-aware and has support for multiple authors, lists, hashtags, and keywords all blended together. The plugin can show tweets from just one user or a list of users (as all other Twitter plugins do); however, it can also show tweets for a topic which you can define via Twitter hashtag or keyword. But there is more! It can also show tweets for multiple authors AND multiple lists AND multiple keywords AND multiple hashtags all blended together into a single stream.
Version 3 added a new widget that automatically shows tweets relevant to your blog post by taking post's tags and using them as keywords for Twitter search.

Latest tweets
http://wordpress.org/…test-tweets/

This widget displays a defined number of your latest tweets in your blog.

Vložení vlastního kódu do šablony

<?php
    // Your twitter username.
    $username = "MarekP";
    $tweetpoc = 10;
    $feed = "http://search.twitter.com/search.atom?q=from:" . $username . "&rpp=" . $tweetpoc;
    $dopole = explode("<content type=\"html\">", file_get_contents($feed));

                $i = 0;
    foreach ($dopole as $obsah) {
        $vyhod = stristr($obsah, "</content>");
        $obsah = str_replace($vyhod, "", $obsah);
        $obsah = str_replace("&lt;", "<", $obsah);
        $obsah = str_replace("&gt;", ">", $obsah);
        $obsah = str_replace(" class=\" \"", "", $obsah);
        if ($i > 0)     echo $obsah."<br>\n";
        $i++;
                }
?>
OVX.cz 2003 | Přihlásit se
Bez cookies už dnes těžko provozovat plnohodnotný web. Setrváním zde tudíž vyjadřujete souhlas s jejich používáním. Více informací. | Zavřít.