by Chris
Thursday, February 04 2010
It's been quite a while since we last posted a new blog entry, but I assure you, we are not going away. We've had a lot of big things going on within AB Web Design, and we will address them soon.
Another thing you may (or may not) have noticed, is that we recently upgraded out blogengine.net version to 1.6.0.0. This is the latest stable version, and you can get it for yourself at dotnetblogengine.net. It's a great blog platform.
We've also added the "AddThis" button to the bottom left of every post -- for all of your social media and bookmark sharing needs! :P
Look for more action on here soon!
Cheers!
Chris
by Chris
Friday, July 31 2009
Comment spam is a major annoyance for many blog sites, especially blogs that are "dofollow."
Recently, we have been getting lots of attempted spam comments from places in India and Vietnam. I dug a little deeper, and it appears that these comments all originated from the same two IP addresses.
And us much as I hate to do this, in the interest of reducing comment moderation time, we are now taking up the practice of IP blacklisting.
If this is something you are interested in exploring as an option for your ASP.net blog, I suggest starting with a great article by Mads Kristensen, entitled "Block IP addresses from your website".
by Chris
Sunday, July 26 2009
If you are using the ReTweet on your BlogEngine.net site, then you may be interested in this.
I recently made another post on our blog regarding an update to the code that allows the use of special characters in the title through URL encoding. You can see that original post here.
This is a second code update that allows one to track the short URL via Google Analytics.
Assuming that you have already installed the Google Analytics tracking code on your site, you can track short URLs by updating the following code of the retweet.cs file.
Line 93: string address = "http://api.bit.ly/shorten?version=2.0.1&longUrl=" + url + System.Web.HttpUtility.UrlEncode("?utm_source=twitter&utm_medium=social-media&utm_term=&utm_content=from-twitter-account&utm_campaign=test-campaign") + "&login=" + bitlyUserName + "&apiKey=" + bitlyApiKey + "&history=" + activateHistory;
The emboldened part of the code above is the trick. It URL encodes the necessary tracking parameters in order to prevent from interfering with the bit.ly API. Of course you can change the underlined variables to reflect whatever you want to show up in Google Analytics.
This is super useful for tracking activity through Twitter.
For more information on building tracking URLs for use with Google Analytics, check out their URL Builder.