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

CSBlogs : Fixing that pesky comment URL bug

I've lived with this bug for far too long (or maybe it wasn't a bug and was something I mucked up modding CS), but I was tired of typing my blog URL when I entered a comment on my blog.  I appreciate every comment I receive and try to answer each of them, so that's a lot of typing.

If this wasn't something I mucked up and if you, too, are tired of typing in your URL on comment replies in CS, you might want to invest the 10 minutes to apply the fix in Blogs\Controls\CommentForm.cs.  Replace "daveburke" with your username.

private void CheckCookie()
{
    if(!Page.IsPostBack)
    {
 HttpCookie user = Context.Request.Cookies["CommentUser"];
 if(user != null)
 {
     tbName.Text = user.Values["Name"];
     tbUrl.Text = user.Values["Url"];
 }
   if (CSContext.Current.User.Username.ToString() == "daveburke")
    tbUrl.Text = Globals.HostPath(Context.Request.Url) + BlogUrls.Instance().Home;
    }
}

 

Technorati Tags:

Comments (4) | Post RSS RSS comment feed

Posted on 12/8/2005 9:36:00 PM by Dave Burke
Categories: Community Server
Tags:

Related posts

Comments (4) -

12/9/2005 5:29:19 AM Permalink

It wasn't you mucking it up.   Its a standard CS 1.x thing.   I never went looking for the fix.  I wonder if its in 2.0.  

Dave Kekish |

12/9/2005 5:34:40 AM Permalink

Dave, Thanks for confirming that it was out-of-the-box.  Yes, the whole Post Comment area in CS seems to be an area that never got as much Telligent attention as perhaps it should have.  I wouldn't be surprised if it slips through in 2.0 as well, too.  We'll see.  At least its an easy fix.

daveburke |

12/9/2005 1:47:36 PM Permalink

Hey DaveBu,

Nice hack.  What bugs me even more is that the comment feed has the author as Änonymous" even when they leave a name.  I mentioned this to Scott, and apparently he's fixed it in the next release.  Hopefully they've fixed a few more of the awkward bits too.

Tim Haines |

12/9/2005 5:17:45 PM Permalink

Hey, Timster!  I always thought the comment feed links were a bonus, so I never had a problem with "Anonymous."

Yeah, these darn web apps, you have to wait for the next release and do a full install, not like those sweet ClickOnce Smart Client apps.  

daveburke |


Powered by BlogEngine.NET 2.0.0.36
Theme by Dave Burke