- Setup Error Documents in MT, aliased across all domains
- Setup .htaccess files in MT for all domains, subdomains
- Setup robots.txt files in MT for all domains
August 2009 Archives

The thing that people will notice most of all is the new Tag button which will analyze the current text and suggest tags for the article. This is great for people who don't know what they should use as tags. It does a really good job, and works on the text in the Body and Extended field without having to save the document first.
Download Script
Like any change I make, there is a good reason for these blogs not living on the bgviewsnetwork.com domain, and that is for SEO and more specifically, statistics. The BG News Staff Blogs should be tracked as part of the BG News site, because they are.
As for the Index template in Movable Type, it is simply using the MultiBlog tag, which is a cornerstone of making everything in the BG Views Network fit together.
I am going to start by doing that with Twitter. Thanks to a post on the MT.org forums, posts now have a quicker way to add links to Twitter. It uses the bit.ly API. You just need to signup for an account to get an API key. Hit the jump to see my modified code.
Another option is to use TweetMeme but their badge is pretty big, and I wanted something less obtrusive.
http://bgviewsnetwork.com/profile/meancode
That is done by doing this:
RewriteEngine on
RewriteRule ^profile/(.*)$ /mt/mt-cp.cgi?__mode=view&blog_id=49&username=$1 [P,L]
Add a new RewriteRule for each domain you have. Just change the BlogID. Note I am not making a /profile/ RewriteRule for each blog, just one per domain. This also makes the profile_view_url template variable of no use anymore. Now, to modify the Entry Metadata template module, use this for your link:
<a href="/profile/<mt:EntryAuthorUsername>"><$mt:EntryAuthorDisplayName$></a>
Next on the list of pretty looking URLs are tags. I have both of these changes live on the Sports Blog. It will be live on every blog once I get the RewriteRules done, of which there are a lot - one for each blog in the system, no matter the domain. So now we have URLs such as this:
http://bgnewssports.com/tag/curtmiller
That is done by doing this:
RewriteEngine on
RewriteRule ^dev/tag/(.*)$ /mt/mt-search.fcgi?blog_id=41&tag=$1 [P,L]
RewriteRule ^tag/(.*)$ /mt/mt-search.fcgi?blog_id=49&tag=$1 [P,L]
Add a new RewriteRule for each blog you have. Just change the BlogID and path. Now, to modify the Tag Cloud widget, use this for your link:
<a href="<$mt:BlogURL$>tag/<$mt:TagName normalize="1"$>" rel="tag"><$mt:TagName$></a>
It is worth noting that even tags that have spaces, such as "movable type" or "curt miller" work with the normalize attribute (which takes out spaces). Pretty slick.
In this instance, the CSS and templates for the new entry screen will stay as the "mobile" version if they are accessed on an iPhone, even when viewing it on a desktop browser. So no more iMT for BG Views Network. Oh well.
- Testing the Wibiya Toolbar
- Movable Type Facebook Connect and Internet Explorer 7
- Mobile Template for Events
- Building BG Views Network - Part 1
- Movable Type 5 Impressions
- IE 7 Facebook Login Works, Logging Out Wonky
- Lightbox Test with Better File Uploader
- The Changing Face of Comment Spam
- Wibiya Toolbar starts open beta, rocks
- Using the ShareThis API with Movable Type
- Setting Up RewriteRules for Profile and Tags 6 Comments
- Final 'Tweet This' Bit.ly Script 2 Comments

