How to fix wordpress 2.6 dashboard to have incoming Technorati Links
From WordPress 2.3 onwards the administration dashboard displays Google blog search incoming links. Which is not always to the point and also not updated frequently. Lot of us suffers possibly because we are so used to look for incoming links to our blog from Technorati, which is more accurate, updated and to the point. I was looking for a possible solution in Google, found a few, namely from Soft Tech Reviews. Soft Tech Reviews described the situation related to wordpress 2.3.xx. I was studying it and I found out the structure for fetching the blog incoming links has been changed dramatically in WordPress 2.6, now it’s more object oriented code and the fetch RSS codes doesn’t stay in /wp-admin/index-extra.php , it actually uses index-extra.php to call the object from /wp-admin/includes/dashboard.php.
So I had a quick look. Its been defined from line 38 of dashboard.php as you can see below (this file is dashboard.php in wordpress 2.6)
1: // Incoming Links Widget
2: if ( !isset( $widget_options['dashboard_incoming_links'] ) || !isset( $widget_options['dashboard_incoming_links']['home'] ) || $widget_options['dashboard_incoming_links']['home'] != get_option('home') ) {
3: $update = true;
4: $widget_options['dashboard_incoming_links'] = array(
5: 'home' => get_option('home'),
6: 'link' => apply_filters( 'dashboard_incoming_links_link', 'http://blogsearch.google.com/blogsearch?hl=en&scoring=d&partner=wordpress&q=link:' . trailingslashit( get_option('home') ) ),
7: 'url' => apply_filters( 'dashboard_incoming_links_feed', 'http://blogsearch.google.com/blogsearch_feeds?hl=en&scoring=d&ie=utf-8&num=10&output=rss&partner=wordpress&q=link:' . trailingslashit( get_option('home') ) ),
8: 'items' => 5,
9: 'show_date' => 0
10: );
11: }
So I’ve tried to change the urls as usual then I found out Technorati himself fetching the RSS in a different manner. Rather than using the “?partner=wordpress” is now “&partner=wordpress”. Anyway I tried a few combinations of urls such as
“http://www.technorati.com/search/http://ruhanirabin.com
&partner=wordpress”
and also I’ve tried to put in
“http://feeds.technorati.com/cosmos/rss/?url=https://www.ruhanirabin.com&partner=wordpress”
Now confusing part is the second one able to bring up incoming links but unable to recognize the Blog title of the incoming url. (See below for an Idea). It displays the “Somebody” because it can’t identify the resource.
I’ve modified the code (dashboard.php in WordPress 2.6) as you can see below (Note I’ve changed the item display default to 10 ).
1: // Incoming Links Widget
2: if ( !isset( $widget_options['dashboard_incoming_links'] ) || !isset( $widget_options['dashboard_incoming_links']['home'] ) || $widget_options['dashboard_incoming_links']['home'] != get_option('home') ) {
3: $update = true;
4: $widget_options['dashboard_incoming_links'] = array(
5: 'home' => get_option('home'),
6: 'link' => apply_filters( 'dashboard_incoming_links_link', 'http://www.technorati.com/search/' . trailingslashit( get_option('home') ) .'&partner=wordpress'),
7: 'url' => apply_filters( 'dashboard_incoming_links_feed', 'http://feeds.technorati.com/cosmos/rss/?url='.trailingslashit(get_option('home')).'&partner=wordpress'),
8: 'items' => 10,
9: 'show_date' => 0
10: );
11: }
Please feel free to leave your comment on this or maybe you can study the ending part of the dashboard.php which actually disassembles the RSS format and format it. That part of the code begins at Line 314 [ $sidebar_args are handled by wp_dashboard_empty() ]. If you can modify it to fit just drop a line to me. Hope this will help those who really seeks the option to get back the good ol’ Technorati incoming links on their dashboard.
Some of the link on this post may have affiliate links attached. Read the FTC Disclaimer.
You’ve made it this far! Please stay connected by receiving updates via email.
