Blogging Archives

When wordpress went from version 2.2 to 2.3, one of the changes I noticed was the incoming links are no longer shown from Technorati.  Instead you see the incoming links from a google blogsearch.  I started out doing this because I wasn't all that thrilled about the change and wanted to change back.  Along the way it occurred to me that having both sets of incoming links could make for some useful comparisons.

After grepping around to find where the code is that shows the google links I found it in the wp-admin directory in the file “index-extra.php”.  To make the change I did, first make a copy of that file to something like index-extra-old.php so that you can put the original back just in case it gets messed up.

Next, download and open index-extra.php and locate the code shown here in orange. It will be near the top of the file.:

case 'incominglinks' :

 
$rss_feed = 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') ) );
$more_link = apply_filters( 'dashboard_incoming_links_link', 'http://blogsearch.google.com/blogsearch?hl=en&scoring=d&partner=wordpress&q=link:' . trailingslashit( get_option('home') ) );

 
$rss = @fetch_rss( $rss_feed );
if ( isset($rss->items) && 1 < count($rss->items) ) { // Technorati returns a 1-item feed when it has no results
?>
<h3><?php _e('Incoming Links'); ?> <cite><a href="<?php echo htmlspecialchars( $more_link ); ?>"><?php _e('More »'); ?></a></cite></h3>
<ul>
<?php
$rss->items = array_slice($rss->items, 0, 10);
foreach ($rss->items as $item ) {
?>
        <li><a href="<?php echo wp_filter_kses($item['link']); ?>"><?php echo wptexturize(wp_specialchars($item['title'])); ?></a></li>
<?php } ?>
</ul>
<?php
}
break;

Replace that code with the code shown below in green, save the file and upload it back to the server.  (Be sure to upload the edited file to the wp-admin directory and overwrite the old one or it wont work.)


case 'incominglinks' :

$rss = @fetch_rss('http://feeds.technorati.com/cosmos/rss/?url='. trailingslashit(get_option('home')) .'&partner=wordpress');
if ( isset($rss->items) && 1 < count($rss->items) ) { // Technorati returns a 1-item feed when it has no results
?>
<h3><?php _e('Incoming Technorati Links'); ?> <cite><a href="http://www.technorati.com/search/<?php echo trailingslashit(get_option('home')); ?>?partner=wordpress"><?php _e('More »'); ?></a></cite></h3>
<ul>
<?php
$rss->items = array_slice($rss->items, 0, 10);
foreach ($rss->items as $item ) {
?>
        <li><a href="<?php echo wp_filter_kses($item['link']); ?>"><?php echo wptexturize(wp_specialchars($item['title'])); ?></a></li>
<?php } ?>
<?php
}

$rss_feed = 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') ) );
$more_link = apply_filters( 'dashboard_incoming_links_link', 'http://blogsearch.google.com/blogsearch?hl=en&scoring=d&partner=wordpress&q=link:' . trailingslashit( get_option('home') ) );

$rss = @fetch_rss( $rss_feed );
if ( isset($rss->items) && 1 < count($rss->items) ) { // Technorati returns a 1-item feed when it has no results
?>
</ul><h3><?php _e('Incoming Google Links'); ?> <cite><a href="<?php echo htmlspecialchars( $more_link ); ?>"><?php _e('More »'); ?></a></cite></h3>
<ul>
<?php
$rss->items = array_slice($rss->items, 0, 10);
foreach ($rss->items as $item ) {
?>
        <li><a href="<?php echo wp_filter_kses($item['link']); ?>"><?php echo wptexturize(wp_specialchars($item['title'])); ?></a></li>

<?php } ?>
</ul><br>
<?php
}
break;

Once this code is in place log in to your WordPress dashboard.  The “Latest Activity” section will show “Incoming Technorati Links More »” and a list of links, followed by “Incoming Google Links More »” and another list of links.

Note: any time you upgrade wordpress the index-extra.php file will be overwritten by the new version and you'll have to re-apply this mod.  (unless of course the folks at wordpress.org can be convinced to adopt this mod.)

Technorati Tags: backlinks, google, google+backlinks, google+links, incoming+links, index-extra, latest+activity, technorati,, technorati+backlinks, technorati+links, wordpress, wordpress+mod

Japan to Regulate Online Communications?

I just saw a slashdot item that makes me wonder about the Japanese government…  They’re apparently getting some laws passed that are laying the groundwork for what has the potential to become an Orwellian regulation of online communications.

Oh, it’s initial purpose is going to be to stop piracy and illegal downloads & such, but the problem is that things like this have a way of growing until they finally get so big and invasive that they could make Orwell’s 1984 look like a walk in the park.

Here’s hoping that tools like freenet and anonymous remailers continue to be developed and kept able to defeat such regulating.

Network Solutions Web Hosting

Since I am going to be talking about a web hosting service provider It occurred to me that it would be a decent idea to start by providing a definition.

Web Hosting is the disk space on a web server that holds all of the files needed (html, images, video, sounds, Etc) for a website or blog of any kind.  When a visitor types your domain name in their browser it contacts a Domain Name Server to translate the address you typed into the IP address of the server where the web site is hosted and then it contacts the server with a request for the page you asked for.  The files that make up that page are then transferred to your web browser which then reassembles them.

Ok, with a basic idea of what web hosting is, the next thing to consider is what web hosting provider to choose and which package is right for you?  Network Solutions is an example of a provider of Web Hosting Services.

For Web Hosting services they offer three basic plans.  On the standard plan you get seven gigabytes of disk space (easily enough for a large number of sites), monthly data transfer is 150 gigabytes (every time somebody loads your page the files that make it up are transferred to them)

For a basic personal site or blog, the standard plan is most likely the best one.  However if you’re running a larger blog or business then you’d be better off upgrading to advanced or pro web hosting packages, each of which has progressively more disk space, monthly data transfer, ftp accounts, email boxes and generally higher limits in most features.

Technorati Tags: web+hosting, network+solutions

Annoyed With Google?  Want To Show It?

 
By now you have seen this image in my sidebar with the universal negate on it.  My decision to place this image on my blog rises out of growing disapproval of “G” and the way they’ve decided to handle things concerning pagerank lately which is pretty much a form of censorship and blackmail (or at the very least, I see it as a strongarm tactic).  As a result I’ve removed my adsense code, I’ve removed my analytics code.  I’ve also changed the settings in Firefox so that Google is not the default search engine anymore.  Finally I’ve placed this image in my sidebar as a sort of statement of my overall opinion.  It’s occurred to me that others might want to use it as well.

I figure that something like this is a lot more likely to be used if all somebody has to do is copy and paste some code, so I decided to make it really easy to use this image.  I’ve provided code here that loads the image from my site.  Yes, I’m actually going to encourage “hotlinking” in this ONE case.  In exchange for me serving the image and providing the code, All I’m asking is a link back to my blog.  I have also included a link to “The (Other) End of the Internet” where the image was created.

To use it just copy the following code and paste it in your website or blog where you want it to appear and it will look the way you see it in this post because I used this same code myself.

<div><a href="http://blog.peculiarplace.com/2007/12/10/annoyed-with-google-want-to-show-it/"><img src="http://blog.peculiarplace.com/wp-content/uploads/2007/12/nogoogle.gif" width="100" alt="no google badge hosted by A Peculiar Blog"/><br><span style="font-size: 6pt;text-align: center;">Get this badge at A Peculiar Blog<span></a><br /><a href="http://otherendoftheinter.net"><span style="font-size: 6pt;text-align: center;">Badge Created by Thriell</span></a></div>

Technorati Tags: , , , , ,

Ad-Senseless

Well, I think I’ve just taken the last step in my latest re-design adjustments.  I’ve deactivated and removed the adsense plugin from WordPress and the last bit of ‘G’ specific code (analytics) is now gone.  I switched to using statcounter instead because frankly, it’s a lot more user friendly and easier to deal with.  The adsense thing was pulled because A), I only rarely used it and B), In the nearly two years or so that I’ve had an adsense account I haven’t earned enough from it to be worth bothering with.  I’m not going to specify how much it was but let’s just say that if I want to use it for a vacation in a Las Vegas hotel I’d need to save the adsense income for another five hundred years or so… by which time the prices will have gone up considerably.

 Page 9 of 13  « First  ... « 7  8  9  10  11 » ...  Last »