April 10, 2008
2:16 am | Last updated: April 10, 2008 at: 2:28 am

So you’ve installed WordPress 2.5, now you want to show Technorati links on the dashboard. Here’s the code, that you can add in your functions.php or create a php file call it directly. The code will simply add the Technorati links in your exisiting dasboard layout. You can adjust CSS or make a widget out of it.

You may also like to read, “how to remove widgets from the dashboard?

[php]$defaultdata = array( ’til_links’ => “10″, );
add_action(’activity_box_end’, ’til’);
function til() {
global $defaultdata, $til_settings;
if (!function_exists(’MagpieRSS’)) { // Check if another plugin is using RSS, may not work
include_once (ABSPATH . WPINC . ‘/rss.php’);
error_reporting(E_ERROR); }
$home = get_option(”home”);
$rss = @fetch_rss(’http://feeds.technorati.com/cosmos/rss/?url=’.$home.’/');
if ( isset($rss->items) && 1 < count($rss->items) ) { // Technorati returns a 1-item feed when it has no results
print ‘

Technorati Links More »

    ‘;
    $til_links = 10;
    $rss->items = array_slice($rss->items, 0, $til_links);
    foreach ($rss->items as $item ) {
    $itemL = wp_filter_kses($item["link"]);
    $itemT = wptexturize(wp_specialchars($item["title"]));
    print ‘
  • ‘.$itemT.’
  • ‘;
    } print ‘

‘; } }
//add_action(’admin_footer’, ‘noff_warning’);

function cd_remove() { remove_action( ‘admin_head’, ‘index_js’ ); }
add_action( ‘admin_print_scripts’, ‘cd_remove’ );
function cd_incoming_links() {?>

function cd_css() { ?>

[/php]

Note: I think, I got this code from some plugin. Thanks to the coder.

WordPress, WordPress 2.5, Brecker, Technorati, Links, How To, Tips, Tips and Tricks, Tricks, PHP

Related Posts:

5 Responses | RSS comments on this post | Leave a comment»

  1. 1
    kapanpun says#5 | August 23rd, 2008 at 3:48 am

    technorati is my fav web site, thanks for share about it

  2. 2
    Techstuff says#4 | April 24th, 2008 at 11:01 am

    Cool. I’m using wordpress and this is cool!

  3. 3
    DG says#3 | April 11th, 2008 at 4:54 am

    This has nothing to do with WordPress upgradtion. All you’ve to do is as writen above:

    that you can add in your functions.php or create a php file call it directly.

  4. 4
    Binny V A says#2 | April 10th, 2008 at 12:44 pm

    A better way of doing this is to create a plugin with that code(or use the plugin from where you got the code). Or you will have to add this every time you update wordpress.

1  Trackbacks & Pingbacks: | TrackBack URI

  1. Pingback from
    1
    Actualización a Wordpress 2.5 says:April 15th, 2008 at 3:52 pm

    [...] Mostrar enlaces de Technorati en el Dashboard: http://www.ditii.com/2008/04/1.....dashboard/ [...]

Leave a Response

Comment Preview

« Google Earth to track Refugees WorldwideWordPress Release Archive »

Feed Icon