Dave Burke : Freelance .NET Web Developer specializing in Online Communities

CSBlogs : BlogStats control

I added Dan Bartels' BlogStats control to CSBlogs today.  You'll find it at the bottom of my left-hand sidebar.  I didn't employ it with Dan's "encapsulated" controls approach, but I did use his source for the ASCX and .CS file.  Thanks, Dan!  Those, with the tag to be added to your parent usercontrol is located here.  Its a more simple approach than Dan's, but you need to read Dan's article to decide for yourself what's best for you. 

I've followed Dan's lead in dotText and CS for a while now and do need to think about future CS releases, as he discussed in his control encapsulation article.  Bottom line, you can segregate your mod classes and controls (which I do) but there's just no way to make the changes you need to make without mucking up the base package.  You can encapsulate and inherit from base classes, but base classes can change on future releases as well.  

More thought and more discussion coming on Approaching CS Mods, to be sure.  In the meantime I'll keep separating mods and commenting embedded source changes with my signature "// DBVT somethin somethin" and see what happens when 1.1 is released.   Then again, my new BlogStats control tells me I've entered 662 posts, which I've confirmed to be accurate.  That's a lot.  Maybe I'll quit at 700 so I don't have to worry about it.

Comments (6) | Post RSS RSS comment feed

Posted on 4/9/2005 9:01:00 AM by Dave Burke
Categories: Community Server
Tags: no tags for this post

Related posts

Comments (6) -

4/9/2005 11:58:30 AM Permalink

Glad to see you found the souce...  I am starting a sourceforge project for my control collection (and hopefully some other peoples widgets too)...  I respectfully disagree with your assertion that you "just no way to make the changes you need to make without mucking up the base package"...  In fact... I have been enjoying encapsulating all of your righteous CS mods into my control collection and putting them on my site...  Things like fixing the remember me, I just made my own CommentForm.cs, inherited the base, and overloaded the method with the change...  Not that I expect it to work with the next release (actually I hope it is just plain fixed) but now my code is all in one project...  

I will give you that it is sometime a bit more work to get at what you need, but the CSContext it fairly robust, so you can always go get the stuff you need, sometimes, you need to get a lot for a simple fix, but it can be done..

-Dan

Dan Bartels |

4/9/2005 12:00:45 PM Permalink

FYI...  your footer is "riding high" on your page, it does not recognize the full height of your float left area..  you need to wrap both in a div, with the footer below, and possibly do a clear : both; on the footer div =)

Dan

Dan Bartels |

4/9/2005 12:03:12 PM Permalink

Dan, no need for the "respectfully" in disagreeing with the potential of complete separation of the mods with the base package.  I could be just plain WRONG and you could be 100% right on.  You hit my main point of the base classes changing.  

I will certainly give more thought to inheritance and encapsulation in the future and look forward to your continued lead on this issue.

daveburke |

4/9/2005 12:06:21 PM Permalink

Dan,  this is "by design." Smile  I'd rather have the footer centered and appearing under the main content text area than have a blank space for shorter content blocks, the completion of the sidebar links, and THEN a footer.  Thanks for your observation though!

daveburke |

4/9/2005 11:23:53 PM Permalink

Nice mod.  Everything is working after doing this, but for some reason the control isn't getting skinned via my current skin's CSS settings...any thoughts?

Thanks.

jayson knight |

4/10/2005 4:59:33 AM Permalink

Jason, Nothing different about this control than other simple controls like the WeblogQuickLinks control, for instance.  Probably something weird.  Check the HTML source.  I had spacing issues with mine on production and it turned out the usercontrol above it was not current.

daveburke |


Powered by BlogEngine.NET 2.0.0.36
Theme by Dave Burke