Sharp as a Marble
HomeAboutContactSyndicationLogin
 

I've rewritten some basic code to close out comments after 30 days. As much as I love to hear from people, things that are over a month old tend to be stale topics, and I do like to try to respond to things as I can. I have a hard enough time remembering what I ate for lunch much less topics I covered so far back.

For those of you coming here for the code, you can find the zip file here. To add expiration to your comments, extract SaaM.dll and place it into the bin directory of your .Text application. Then open up PostComment.ascx in the skin directory that you are using (or all of them if you're like that). Change the first line to the following

<%@ Control Language="c#" AutoEventWireup="false" Inherits="SaaM.Web.UI.Controls.PostComment" %>

Then, in the <appSettings> section of web.config in the root .Text directory, add the following lines

<!
-- Comment Expiration -->
<add key="ExpirationLimit" value="30" />

You can change this to any number of days you wish to close comments after.

The code for PostComment.cs is also included in case you wish to dingle with it yourself. These instructions are included in the zip file. Enjoy!

 

rolled out on Sunday, August 01, 2004 9:20 PM
Comments
# Closed Comments - ScottWater

Rolled Out On: 8/7/2004 10:59 PM

Robb Allen made a nice addition/tweak to Community Server :: Blogs

# [MOD] Comments Closed After 30 Days - DaBlog of Ma' Mind

Rolled Out On: 10/4/2004 12:38 PM

# :: krshh :: Earth to Blog Readers :: krshh :: - who IS jake?

Rolled Out On: 1/19/2005 4:19 PM

# Reducing comment spam in .text - verns blog

Rolled Out On: 2/21/2005 3:44 PM

# Reducing comment spam in .text - verns blog

Rolled Out On: 2/21/2005 3:54 PM

# Reducing comment spam in .text - verns test blog

Rolled Out On: 4/3/2005 4:32 AM

# re: Subtext Roadmap - you've been HAACKED

Rolled Out On: 5/6/2005 12:07 PM

# RE: Comments Closed After 30 Days - Ry Jones

Rolled Out On: 8/2/2004 5:01 AM

thank you very much. I rolled this out on blog.ryjones.org and it works a-ok.

# RE: Comments Closed After 30 Days - MJ

Rolled Out On: 8/2/2004 5:01 AM

Wow! It's really great of you to show this. I can use all the help that I can get. I don't know if I'll be able to use it because I have one of those 'baby' pages where everything is done for me because I don't know Jack, but I can sure give it a shot. Thanks!

# RE: Comments Closed After 30 Days - Robb Allen

Rolled Out On: 8/2/2004 7:24 AM

MJ, you use Blogspot which doesn't run .Text as the blogging software, so this fix won't work. I'm not familiar with the inner workings of Blogspot's system so I don't know if they've got something similar that you can set in your preferences.

# .Text Closed Comments - Midco System

Rolled Out On: 11/15/2004 9:30 AM

# More changes to my dotText build... - Chris Wallace

Rolled Out On: 2/1/2005 7:11 PM

Comments have been closed on this topic.
 
TipJar
2A Blogger Bash
Other bloggers with guns.

Article Categories


General

Archives


November, 2008 (61)
October, 2008 (107)
September, 2008 (114)
August, 2008 (93)
July, 2008 (93)
June, 2008 (77)
May, 2008 (79)
April, 2008 (53)
March, 2008 (46)
February, 2008 (46)
January, 2008 (63)
December, 2007 (69)
November, 2007 (63)
October, 2007 (83)
September, 2007 (73)
August, 2007 (84)
July, 2007 (59)
June, 2007 (63)
May, 2007 (35)
April, 2007 (30)
March, 2007 (37)
February, 2007 (32)
January, 2007 (38)
December, 2006 (14)
November, 2006 (28)
October, 2006 (25)
September, 2006 (24)
August, 2006 (28)
July, 2006 (27)
June, 2006 (28)
May, 2006 (14)
April, 2006 (17)
March, 2006 (35)
February, 2006 (33)
January, 2006 (26)
December, 2005 (15)
November, 2005 (22)
October, 2005 (35)
September, 2005 (37)
August, 2005 (50)
July, 2005 (34)
June, 2005 (55)
May, 2005 (53)
April, 2005 (56)
March, 2005 (57)
February, 2005 (77)
January, 2005 (72)
December, 2004 (79)
November, 2004 (76)
October, 2004 (59)
September, 2004 (74)
August, 2004 (69)
July, 2004 (75)
June, 2004 (56)
May, 2004 (28)

Post Categories


Humor (rss)
Views (rss)
Catblogging (rss)
News (rss)
Politics (rss)
Geekdom (rss)
Recipes (rss)
Blogging (rss)
Wingnuts and Moonbats (rss)
War on Terror (rss)
Photography (rss)
Brewsky (rss)
Guns. Lots of Guns. (rss)
Daughter Blogging (rss)
TMI (rss)
Anxiety & Panic Attacks (rss)
Gun Myths (rss)
Reloading (rss)
Range Time (rss)
Anti-Rights Idiocy (rss)
Firearm Safety (rss)
A Cancer Story (rss)
Second Amendment Blog Bash (rss)
Gun Rights (rss)
Gun-Free Zones (rss)
Self Defense (rss)
The Line Is Here (rss)
Getting old sucks (rss)
NRA (rss)
2A Blog Bash (rss)
Out of sight, out of mind (rss)
Video Podcasts (rss)
Para Blackwater Training (rss)
GTI (rss)
You need this (rss)
Competitive shooting (rss)
PSH (rss)
Gun banners (rss)
For Sale (rss)

Image Galleries


Beyond the Pale brewing session

::Other Digs


The Line Is Here

::Sharpest Marbles


Eject! Eject! Eject!
Instapundit
Iraq the Model
Protein Wisdom
QandO
Sharp as a Marble
Vodka Pundit
WILLisms
Witting Shire
Wizbang

:Second Amendment


A Keyboard and a .45
Alphecca
Another gun blog
Anthroblogogy
Armed and Safe
Call Me Ahab
Carnaby Fudge
Days of our Trailers
Double Tapper
Dustin's Gun Blog
Fighting for Liberty
Great Blue Whale
Gun Owners Against Violence
Gun Pundit
Guntards
Justin Buist
Live from the (upper) Texas Gulf Coast
MArooned
Mausers and Muffins
Mike-istan
Musings of the Geek with a 45
Notes from the American Outback
Oleg Volk
Papa Delta Bravo
Pro-Gun Progressive
Random Nuclear Strikes
Ride Fast and Shoot Straight
Roberta X
Say Uncle
Sear and Hammer
Snowflakes in Hell
The Anarchangel
The Armed Schoolteacher
The Bitch Girls
The Breda Fallacy
The Countertop Chronicles
The Law Dog Files
The Liberty Sphere
The Mad Rocket Scientist
The Madman Raves
The Other Side of Kim
The Real Gun Guys
The Sentinel
The Smallest Minority
The View From North Central Idaho
The War on Guns
View from the porch
Walls of the City
West, By God
Xavier thoughts

Blogroll


Guide to Midwestern Culture
Basil's Blog
Captain's Quarters
Coalition of the Swilling
Cold Fury
Cranky Neocon
Daily Pundit
dorkafork
File It Under
Florida Cracker
Garfield Ridge
INDC Journal
Is Full Of Crap
Medium at Large
Notes from the trenches
One Ping Only
Sean Gleeson
Sekimori
Sissy Willis
Six Meat Buffet
Speed of thought
Squeaky Wheel Seeks Grease
The Belmont Club
The Munchkin Wrangler
The Spoons Experience
The Unforgiving Minute
Tim Worstall
UNSpace
Vern's Blog

Extended Blogroll


21st Century Paladin
Bill Peschel
Cowboy Blob
Craziness
Flight Pundit
Hubs and Spokes
In the Right
Pajamaverse
PEER Review
TechnoChitlins
The Tygrrrr Express

Funny, as in Ha-ha


Ace of Spades HQ
Cox & Forkum
IMAO
ScrappleFace
The Superficial
Topic Drift
Wuzzadem

Good Reads


Drink This
Evil White Guy
Leaning to the Right
Ramble Strip
Save the Soldiers
SondraK
The Resplendent Mango
Triticale
You Big Mouth You

Tampa Area Blogs


Tampa Film Fan

My Technorati Conversations

Hang in there Mom

Cool Post-it Note Icon