Remove the website input field from the "Add a comment" section of the blog

Oct 21, 2008 at 12:57 PM
I'm trying to figure out how to remove the website input field from the "Add a comment" section of the blog (related to any given post). Any chance anyone knows where/how that can be commented out or removed?

Dave
Oct 25, 2008 at 12:54 PM
Edited Oct 25, 2008 at 12:55 PM
Hi Dave

I'm not sure if this is correct:

If you opny need to remove it on your own copy of BE, go to /User controls/CommentView.ascx - change this:

<label for="<%=txtWebsite.ClientID %>"><%=Resources.labels.website %></label>

 

<asp:TextBox runat="Server" ID="txtWebsite" TabIndex="3" ValidationGroup="AddComment" />

 

<asp:RegularExpressionValidator runat="Server" ControlToValidate="txtWebsite" ValidationExpression="(http://|https://|)([\w-]+\.)+[\w-]+(/[\w- ./?%&=;~]*)?" ErrorMessage="<%$Resources:labels, enterValidUrl %>" Display="Dynamic" ValidationGroup="AddComment" /><br />

With this:

<label style="display:none;" for="<%=txtWebsite.ClientID %>"><%=Resources.labels.website %></label>

 

<asp:TextBox Visible="false" runat="Server" ID="txtWebsite" TabIndex="3" ValidationGroup="AddComment" />

 

<asp:RegularExpressionValidator Visible="false" runat="Server" ControlToValidate="txtWebsite" ValidationExpression="(http://|https://|)([\w-]+\.)+[\w-]+(/[\w- ./?%&=;~]*)?" ErrorMessage="<%$Resources:labels, enterValidUrl %>" Display="Dynamic" ValidationGroup="AddComment" /><br />

then change line 83 to
 
var
websiteBox = '';//$("<%=txtWebsite.ClientID %>");

 

 

 

 

 

 

 

Oct 27, 2008 at 12:51 PM
Stenbaek,

That did the trick!  Thank you for taking a second to help me - any chance you happen to know how to get rid of that strange "biuquote" reference?

Thanks again

Dave
Oct 27, 2008 at 6:17 PM
You do understand that buiquote is not a word, but actually controls for your users to Bold, Italicize, Underline and Quote in their comments? The reason it looks that way is because each theme styles it differently, or not at all as it seems in your case. I personally would not get rid of them and instead style them to look more like buttons. Should you actually want to remove it, Look in the User Controls folder in CommentView.ascx. Find the line containing "<%=BBCodes() %>" and delete it.
Oct 27, 2008 at 6:21 PM
Perfect, thanks!

Dave



SirDarquan wrote:
>
> From: SirDarquan
>
> You do understand that buiquote is not a word, but actually controls
> for your users to Bold, Italicize, Underline and Quote in their
> comments? The reason it looks that way is because each theme styles it
> differently, or not at all as it seems in your case. I personally
> would not get rid of them and instead style them to look more like
> buttons. Should you actually want to remove it, Look in the User
> Controls folder in CommentView.ascx. Find the line containing
> "<%=BBCodes() %>" and delete it.
>
> Read the full discussion online
> <http://www.codeplex.com/blogengine/Thread/View.aspx?ThreadId=38143&ANCHOR#Post128064>.
>
> To add a post to this discussion, reply to this email
> ([email removed]
> <mailto:[email removed]?subject=%5Bblogengine:38143%5D>)
>
> To start a new discussion for this project, email
> [email removed]
> <mailto:[email removed]>
>
> You are receiving this email because you subscribed to this discussion
> on CodePlex. You can unsubscribe
> <http://www.codeplex.com/site/discussions/thread/unsubscribe/38143> on
> codePlex.com.
>
> Please note: Images and attachments will be removed from emails. Any
> posts to this discussion will also be available online at codeplex.com
>
> ------------------------------------------------------------------------
>
>
> No virus found in this incoming message.
> Checked by AVG - http://www.avg.com
> Version: 8.0.175 / Virus Database: 270.8.4/1749 - Release Date: 10/27/2008 7:57 AM
>
>

--

David McKillen

Website: http://www.mckillen.net
Phone number: 804-386-6178
Fax number: 866-533-4072
Messenger ID (AOL, MSN, YAHOO, GMAIL): mckilldj

�Make hay while the sun shines� - In memory of Paul Gross who died March 2008, leaving a bigger imprint than most.