Index syndication
comment syndication

Archive for webdev

Twitter WordPress plugin – Autolink to Username

Twitter Logo

Seeing as it is International WordPress Day, I’ve written a new WordPress plugin that auto links a twitter at username (like @lantrix) in a post automatically.

Developed initally on WordPress 2.3, it has successfully been tested on WordPress 2.7.1.

Most of the other plugins out there either did this only in their “badge” or “widget” or where too full featured. This is a simple and quick plugin to get links in place to twitter people for the lazy blogger.

Visit my plugin page, give it a try and let me know what you think.

Coral Content Distributed network

Have you ever had your website hit on a topic that people find conflicting? When the site gets viewed by the masses, you need to be prepared. If you have access to modify your web server .htaccess file then go and have a read of the Coral CDN Overview
For those interested in the techie bits, here is my .htaccess for news site flood protection, and to allow CDN to serve up all my site images – thus offloading from my puny connection the bandwidth burden for images.


<ifmodule mod_rewrite.c>
RewriteEngine On
#prevent slashdot effect
RewriteCond %{HTTP_USER_AGENT} !^CoralWebPrx
RewriteCond %{HTTP_REFERER} blogspot\.com [NC,OR]
RewriteCond %{HTTP_REFERER} reddit\.com [NC,OR]
RewriteCond %{HTTP_REFERER} digg\.com [NC,OR]
RewriteCond %{HTTP_REFERER} news\.slashdot\.org [NC,OR]
RewriteCond %{HTTP_REFERER} slashdot\.org
RewriteRule ^(.*)$ https://techdebug.com.nyud.net/$1 [R,L]
#Rewrite images to allow CDN to serve them
RewriteCond %{HTTP_USER_AGENT} !^CoralWebPrx
RewriteRule ^(.*)/(.*\.(gif|png|jpe?g))$ https://techdebug.com.nyud.net/$1/$2 [R,L]
#Wordpress rewites
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</ifmodule>

mod_rewrite is your friend.

Joomla migration of Google Maps API

It looks like I may have successfully written an alpha “migrator plug-in” that may work for migrating your com_google_maps component from Joomla 1.0.x to 1.5.

Once I have tested this on the internal testbed migration sites for one of my customers, I will write it up here.
This will be useful since the developer of the Google Maps API for joomla has no current migration plugins.

Stay tuned….

OpenBSD – Akismet key could not be verified

If you are using OpenBSD to host your wordpress installation, and using the Akismet plug-in to block spam, you may come across set-up problems with Akismet.

The errors that can occur could be either or both of these:

  • There was a problem connecting to the Akismet server
  • The key you entered could not be verified because a connection to akismet.com could not be established

There may be a couple of issues here.
Read the rest of this entry »

« Previous entries · Next entries »