May 2007 Entries

InfoBar - Fake Internet Explorer Info Bar easily

You can surprising your visitors CSS<style type="text/css">body {margin: 0 !important;padding: 0 !important;} #infobar {font: message-box;}#infobar a, #infobar a:link, #infobar a:visited, #infobar a:active {display: block;color: #000;width:100%;background: #FFFFE1 url(./images/warning.gif) no-repeat fixed .3em .3em;border-bottom: .16em outset;text-decoration: none;cursor: default;}#infobar a:hover {color: #FFF;background: #3169B6 url(./images/warning2.gif) no-repeat fixed .3em .3em;}#infobar p{margin:0px; padding: .45em 0em .45em 22px; font-size:11px;}</style> HTML<body><div id="infobar"><a href="http://blogs.hzsolutions.com/register.aspx"><p>It appears you have not yet registered with our community. To register please click here...</p></a></div>...other HTML element goes here

Tweak - Multiple blogs on SubText - Without Default.aspx will cause 404 error

When SubText is configured to host multiple Blogs, you'll see http://blogs.hzsolutions.com/vnd/Default.aspx is fine, but http://blogs.hzsolutions.com/vnd/ will return 404 - Not found error code. The simplest solution here is create a real directory and put inside it an empty Default.aspx page, for example i have to create a folder named vnd in order make http://blogs.hzsolutions.com/vnd/ work ! For more detail, take a look at  Shiva Manjunath blog at  http://theshiva.us/technicalblog/archive/2006/12/14/subtext-error-solution-fix-404-page-not-found-errors-multiple-blogs.aspx

Tweak - Multiple blogs on SubText

I have installed Subtext for my blogging purposes but having the multiple blogs working is a bit tricky. I have to comment out the following handler line on the root web.config <!--<HttpHandler pattern="(?:((\/\/default\.aspx)?|(\/\/?))?)$" controls="homepage.ascx"/>--> And set up the aggregation section like: <!-- Aggregate Blog Stuff --> <add key="AggregateEnabled" value="true" /> <add key="AggregateTitle" value="HZSolutions Blogs" /> <add key="AggregateUrl" value="http://blogs.hzsolutions.com/" /> <add key="AggregateDescription" value="HZSolutions Blogs" /> <add key="AggregateHost" value="blogs.hzsolutions.com" /> Note the value of hzsolutions. Although the subtext is installed under http://blogs.hzsolutions.com/, this should be the root host. I have 2 directories for each of my blogs under http://blogs.hzsolutions.com/these are http://blogs.hzsolutions.com/hung and http://blogs.hzsolutions.com/vnd Each...