BlogHarbor Home Page
FAQFAQ  SearchSearch  MemberlistMemberlist  UsergroupsUsergroups  UsergroupsRSS   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
Only Anonymous comments on my weblog
Goto page 1, 2  Next 
Post new topic   Reply to topic    BlogHarbor Community Forum Index -> Beginner's Lounge
View previous topic :: View next topic  
Author Message
Guest






PostPosted: Thu Jan 27, 2005 12:43 pm    Post subject: Only Anonymous comments on my weblog Reply with quote

All comments on my weblog are always anonymous. That led me to investigate the matter and to my utter surprise I found that I don't leave the comment posters with much choice. Either they need to create an account [not practical] or they need to post as anonymous.

How about having a feature where if I allow anonymous comments then I also give the anonymous guy an opportunity to put their name,email and weblog url. If they choose not to put that's fine but atleast I should allow the comment posters to have these basic things.

How could I achieve that?

Thanks.
- Roger
Back to top
john
Site Admin


Joined: 16 Mar 2004
Posts: 3434

PostPosted: Fri Jan 28, 2005 12:34 am    Post subject: Re: Only Anonymous comments on my weblog Reply with quote

Roger -- We advise against allowing anonymous comments for the reason that doing so increases the risk of comment spam, where spammers use an automated system to post numerous comments to your site.

By requiring your readers to create an account, you greatly reduce the potential damages to your blog from automated comment spam.

If you still wish to have anonymous comments, and want your users to be able to leave their name and email address, please read this thread very carefully for some background, some discussion of the pros and cons, and finally for a workaround to our system which would allow you to do what you describe:

http://forums.blogharbor.com/viewtopic.php?t=567

I am going to repost this technique below, with corrections for spelling errors, some changes due to our recent interface update, etc.


Last edited by john on Fri Jan 28, 2005 1:27 am; edited 1 time in total
Back to top
View user's profile Send private message Send e-mail Visit poster's website
john
Site Admin


Joined: 16 Mar 2004
Posts: 3434

PostPosted: Fri Jan 28, 2005 12:37 am    Post subject: Re: Only Anonymous comments on my weblog Reply with quote

We're going to make changes to the article template and the comments template in order to allow anonymous users who have not logged in with a Reader Account to sign their name to their comments. BlogHarbor advises against allowing Anonymous Comments due to the increased the risk of comment spam. Use this technique at your own risk!

This is a slightly more advanced topic, but most of our users should be able to follow along with this. First read this article on modifying your CSS template for a little background on the process of modifying your templates, and if you understand that article you should be able to follow these steps.

What we are going to do is change the comment forms to add 2 additional fields, Name and Email Address. Using Javascript, we are going to automatically include the content of those fields into the comment body when the user submits their comment. This makes it easy for users who have not logged in with a Reader Account to sign their name to their comments. Then we are going to modify the comment output so that the Username or Nickname from the Reader Account only appears for comments that are not made anonymously.

Here we go:

  1. Login to your Blog Admin Control Panel through the Login page.

  2. Go to the Settings & Security tab and click on the link to Advanced. From the Advanced Settings page, scroll down until you see the row labeled Anonymous Comments and make sure the "Allow anonymous Reader comments" checkbox on the right is checked. If not, check it and click on Save Settings at the bottom of the page.

  3. Click on the Look and Feel tab, then the Templates subtab.

  4. Now you see a list of the Templates you can customize. We are going to customize the article template, which controls the look of an article when it appears by itself (on its permanent link) and not on a category page, so click Edit in the row that begins with the word article.

  5. Now you'll be on a page listing the current article templates (there will probably be only one). Go all the way to the bottom of the page and click the Customize button.

  6. Almost there: Click the Go button to Copy the Standard template to the staging area. You'll come to the page where you can customize the article template. Sorry it took so long to get here, we will work on making it easier to get to.

Now let's make some changes to the Staging Template Content. Take a look at the very bottom of the textarea, you will see this:

Code:
{{if allow_comments}}
<a name="post_comment"></a>
<div style="margin:25px 0;">
{{include name="post_comment_inline.html"}}
</div>
{{/if}}

</div> <!-- articleAll -->


We're going to modify everything in between the if macros. Delete the lines above and replace them with the following:

Code:
{{if allow_comments}}
<!-- begin modifications to commenting here -->
   {{if allow_html}}   
<script language="JavaScript"><!--
function buildComment() {
   var result = false;
   var theStr = new String(document.comment.commenters_email.value);
   var index = theStr.indexOf("@");

   if (document.comment.commenters_name.value == '')
      document.comment.commenters_name.value = 'Anonymous';

   if (index > 0)
      {
         var pindex = theStr.indexOf(".",index);
         if ((pindex > index+1) && (theStr.length > pindex+1))
         document.comment.body.value =  '<em><a href="mailto:' + document.comment.commenters_email.value + '">' +  document.comment.commenters_name.value + '<\/a> writes:<\/em> <div style="padding: 2px 2px 2px 12px;">' + document.comment.body.value + '<\/div>';
   }
   else {
      document.comment.body.value =  '<em>' + document.comment.commenters_name.value + ' writes:<\/em> <div style="padding: 2px 2px 2px 12px;">' + document.comment.body.value + '<\/div>';
   }

}
//--></script>
{{else}}
<script language="JavaScript"><!--
function buildComment() {

   if (document.comment.commenters_name.value == '')
      document.comment.commenters_name.value = 'Anonymous';


   document.comment.body.value =  document.comment.commenters_name.value + ' writes: ' + document.comment.body.value;
}
//--></script>
{{/if}}

   
   <a name="post_comment"></a>
   <div style="margin:25px 0;">
   
   <div class="commentFormInline">
   
   <form name="comment" method=post action="/blog" onSubmit="buildComment()">
   <input type=hidden name=cmd value="do_post_comment">
   <input type=hidden name=article_id value="{{article_id}}">
   <input type=hidden name=post_anon value="true"> <!-- In this model, everyone is anon -->
   <input type=hidden name=parent_id value="">
   
     <!-- show_comment_login -->
   
   <div style="font-weight:bold;margin-bottom:10px;">Post comment:</div>
   
   <table border="0" cellpadding="2" cellspacing="0">
   
   {{if allow_html}}   
      <!-- if allow html -->
      <tr>
      <td nowrap>Format Type:&nbsp;</td>
      
      <td nowrap>
      <select name=format_type>
      <option selected value="html" onClick="this.form.convert_newlines.disabled=false;"> HTML </option>
      <option  value="text" onClick="this.form.convert_newlines.disabled=true;"> Text </option>
      </select>
      </td>
      </tr><tr>
      <td>&nbsp;</td>
      <td nowrap><input type="checkbox" class="checkbox" name="convert_newlines" value="true" checked > Convert newlines </td></tr>
      <!-- if allow html -->
   {{/if}}
   
   <tr>
   <td align="right" width="5%" nowrap>Subject:&nbsp;</td>
   
   <td nowrap><input type=text name="title" value="Re: {{title}}" size=30 maxlength=255> <span class="error"></span></td>
   </tr>
   
   
   <tr>
   <td align="right" width="5%" nowrap>Name:&nbsp;</td>
   
   <td nowrap><input type=text name="commenters_name" value="" size=30 maxlength=255> <span class="error"></span></td>
   </tr>
   
   <tr>
   <td align="right" width="5%" nowrap>Email Address:&nbsp;</td>
   
   <td nowrap><input type=text name="commenters_email" value="" size=30 maxlength=255> <span class="error"></span></td>
   </tr>
   

   {{if allow_html}}   
   <!-- edit buttons -->
      <tr>
      <td>&nbsp;</td>
      <td align="left" valign="bottom">&nbsp;
      <div id="_buttons" style="display:inline;">
      
      <div class="editButtons">
      <img onclick="wrapSelection(document.comment.body,'<strong>','</strong>');" src="/_images/edit_bold.gif" width="23" height="22" alt="insert bold tags" title="insert bold tags" onmouseover="this.className='editButtonOn';" onmouseout="this.className='editButtonOff';" onmousedown="this.className='editButtonDown';" onmouseup="this.className='editButtonOff';" class="editButtonOff">
      
      <img onclick="wrapSelection(document.comment.body,'<em>','</em>');" src="/_images/edit_italic.gif" width="23" height="22" alt="insert italic tags" title="insert italic tags"  onmouseover="this.className='editButtonOn';" onmouseout="this.className='editButtonOff';" onmousedown="this.className='editButtonDown';" onmouseup="this.className='editButtonOff';" class="editButtonOff">
      
      <img onclick="wrapSelection(document.comment.body,'<u>','</u>');" src="/_images/edit_underline.gif" width="23" height="21" alt="insert italic tags" title="insert italic tags"  onmouseover="this.className='editButtonOn';" onmouseout="this.className='editButtonOff';" onmousedown="this.className='editButtonDown';" onmouseup="this.className='editButtonOff';" class="editButtonOff">
      
      <img onclick="wrapSelection(document.comment.body,'<strike>','</strike>');" src="/_images/edit_strike.gif" width="20" height="20" alt="insert strikethough tags" title="insert strikethough tags"  onmouseover="this.className='editButtonOn';" onmouseout="this.className='editButtonOff';" onmousedown="this.className='editButtonDown';" onmouseup="this.className='editButtonOff';" class="editButtonOff">
      
      <img onclick="wrapSelectionWithLink(document.comment.body);" src="/_images/edit_link.gif" width="20" height="20" alt="insert link" title="insert link"  onmouseover="this.className='editButtonOn';" onmouseout="this.className='editButtonOff';" onmousedown="this.className='editButtonDown';" onmouseup="this.className='editButtonOff';" class="editButtonOff">
      
      <img onclick="wrapSelection(document.comment.body,'<blockquote>','</blockquote>');" src="/_images/edit_indent.gif" width="20" height="20" alt="insert blockquote tags" title="insert blockquote tags"  onmouseover="this.className='editButtonOn';" onmouseout="this.className='editButtonOff';" onmousedown="this.className='editButtonDown';" onmouseup="this.className='editButtonOff';" class="editButtonOff">
      </div>  <!-- editButtons -->
      
      </div> <!-- _buttons -->
      
      <script language="javascript" type="text/javascript">
      var ua = navigator.userAgent.toLowerCase();
      if (ua.indexOf('safari') != -1) {
         document.getElementById('_buttons').style.display = 'none';
      }
      </script>
      </td>
      </tr>
   <!-- end buttons -->
   {{/if}}
   
   
   <tr>
      <td align="right" width="5%" valign="top" nowrap>Comment:&nbsp;</td>
      <td valign="top"><textarea name="body" style="width:100%;height:100px;max-width:400px;" wrap=soft></textarea><br>
      <span class="error"></span></td>
   </tr>
   
   <tr>
      <td>&nbsp;</td>
      <td nowrap>
<!--    <input type=submit class="button" name="preview_comment" value="Preview">&nbsp; -->
      <input type=submit class="button" value="Post Comment">
      </td>
   </tr>
   
   </table>
   </form>
   </div> <!-- commentForm -->
   
   
   </div>
   
   <!-- end modifications to commenting here -->
{{/if}}

</div> <!-- articleAll -->


Click on the Save and Activate button. OK, now we're done. Your blog has a new trick, allowing readers who have not logged in (who we usually would refer to as Anonymous had they posted a comment) the option to sign their name and leave their email address.

We just need to modify the comments template now to make sure that the Username or Nickname from the Reader Account only appears for comments that are not made anonymously. Follow the steps above but this time we're going to modify the comments template instead of the article template.

Let's replace the entire contents of the comments template with the following:

Code:
<div class="comments">

{{if comments}}
{{loop comments}}
<a name="{{marker}}"></a>
<div class="comment">
<div class="commentIndent{{depth}}">
<div class="commentTitle">{{title}}</div>
<div class="commentAuthor">
{{if author}}
    by <a href="javascript:openWindow('{{view_user_url}}', 'info', 450, 600);">{{var name=author escape=html}}</a> at
{{/if}}
{{publish_time.hour}}:{{publish_time.min}}{{publish_time.ampm}} ({{publish_time.zone}}) on {{publish_time.month_name_short}} {{publish_time.day}}, {{publish_time.year}} &nbsp;|&nbsp; <a href="#{{marker}}">Permanent Link</a></div>
<div class="commentBody">{{body}}</div>
{{if allow_comments}}
<div class="commentReply"><a href="{{post_reply_url}}">Reply</a></div>
{{/if}}
</div> <!-- commentIndent -->
</div> <!-- comment -->
{{/loop}}

{{else}}
{{if allow_comments}}
No comments found.
{{/if}} <!-- allow_comments -->
{{/if}} <!-- comments -->

</div> <!-- comments -->


Click on the Save and Activate button.

That should do it... This should provide the basic functionality for your users to sign their names to their comments without logging in. You'll have to enable anonymous commenting to use this technique, but that was the trade off.

You may wish to modify the style of the comments, or make changes to the Javascript we created to add additional information.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Guest






PostPosted: Fri Jan 28, 2005 11:45 am    Post subject: Reply with quote

John,

Thanks for the fast turn around and for such detailed explanation. I'll give it a shot. I understand why users are advised against allowing anonymous comment. I have been using your tool for 3 months and I was spammed only once. I don't have a data but I believe only the strong followers of my blog will create an account. So until spamming becomes really an issue for me I'll let people post anonymous comments and hence the request.

Once again thanks a lot. Support provided by your team is one of the best I've seen.

.Roger
Back to top
roger_rustin



Joined: 14 Dec 2004
Posts: 10

PostPosted: Sun Feb 20, 2005 10:25 pm    Post subject: Will the email be encoded and CAPTCHA issue Reply with quote

I inted to implement this feature in my blog. I have two questions.

1) Will the email address be encoded in ASCII so that to the bots the real email address is not revealed .

2) I don't inted to use right away but if the spam becomes an issue will it be possible to install CAPTCHA or something similar for validation.

I understand all the merits of not having anonymouns comments but at the same time I also belive that asking all your reads to have an account is not a practical solution to the problem.

Thanks.
- Roger
Back to top
View user's profile Send private message
john
Site Admin


Joined: 16 Mar 2004
Posts: 3434

PostPosted: Sun Feb 20, 2005 11:49 pm    Post subject: Re: Will the email be encoded and CAPTCHA issue Reply with quote

Roger, let me reiterate that the technique explained above is not supported by us. I did show how a user who prefers another method of commenting one method that might be accomplished, but as noted earlier:

BlogHarbor advises against allowing Anonymous Comments due to the increased the risk of comment spam. Use this technique at your own risk!

So in general, I'm saying that we threw this technique out there for folks who like to take a risk, but can't guarantee that it will work, that it's a smart thing to do, nor can we really answer any support questions about it.

That being said...

1) Will the email address be encoded in ASCII so that to the bots the real email address is not revealed.

Good question, but the answer is no this technique was not created to do that. If I can figure out how that would be done, I will show you or give you some pointers.

2) I don't inted to use right away but if the spam becomes an issue will it be possible to install CAPTCHA or something similar for validation.

I can't see any way to install a CAPTCHA on your blog, but that's pretty much the reason for requiring authentication and reader accounts for commenting. If you require authentication for reader comments you decrease the likelihood for automated attacks against your comments.

Further, using authentication for commenting enables us to assist you in deleting any abusive comments from automated systems and prevent them from happening again. It is much more problematic for us prevent comments from anonymouse or more properly unauthenticated users.

I understand all the merits of not having anonymouns comments but at the same time I also belive that asking all your reads to have an account is not a practical solution to the problem.

To be precise, we do in fact have anonymous comments. We simply do not provide for comment attribution without authentication. In the Revolution the cry was No Taxation without Representation, our rally cry is No Attribution without Authentication! Wink
Back to top
View user's profile Send private message Send e-mail Visit poster's website
john
Site Admin


Joined: 16 Mar 2004
Posts: 3434

PostPosted: Mon Feb 21, 2005 1:08 am    Post subject: Re: Will the email be encoded and CAPTCHA issue Reply with quote

I found this page:

http://www.wbwip.com/wbw/emailencoder.html

which contained some Javascript which performs what is called entity conversion, which is converting an ASCII character such as the letter j into a special HTML code called a character entity which looks like this: j . Some people feel that it is safer to place your email address on a web page using this character conversion, for the reason that it will be more protected against spammers who are attempting to harvest email addresses from web pages.

With that in mind, here is a modified form of the code noted above for insertion into your article template which will perform the entity conversions on the commenter's email address. Remember that in order for the email address to be displayed at all, you must set your blog to Allow HTML in comments from the Settings & Security >Publishing > Advanced section of your control panel.

Code:
{{if allow_comments}}
<!-- begin modifications to commenting here -->

<script language="JavaScript"><!--   
function encodeEmail() {
   var regEmail = document.comment.commenters_email.value.toLowerCase()
   var codeEmail = ""
   var regLength = regEmail.length
   
   for (i = 0; i < regLength; i++) {
      var charNum = "000"
      var curChar = regEmail.charAt(i)
      if (curChar == "A") {
            charNum = "065"
      }
      if (curChar == "a") {
            charNum = "097"
      }
      if (curChar == "B") {
            charNum = "066"
      }
      if (curChar == "b") {
            charNum = "098"
      }
      if (curChar == "C") {
            charNum = "067"
      }
      if (curChar == "c") {
            charNum = "099"
      }
      if (curChar == "D") {
            charNum = "068"
      }
      if (curChar == "d") {
            charNum = "100"
      }
      if (curChar == "E") {
            charNum = "069"
      }
      if (curChar == "e") {
            charNum = "101"
      }
      if (curChar == "F") {
            charNum = "070"
      }
      if (curChar == "f") {
            charNum = "102"
      }
      if (curChar == "G") {
            charNum = "071"
      }
      if (curChar == "g") {
            charNum = "103"
      }
      if (curChar == "H") {
            charNum = "072"
      }
      if (curChar == "h") {
            charNum = "104"
      }
      if (curChar == "I") {
            charNum = "073"
      }
      if (curChar == "i") {
            charNum = "105"
      }
      if (curChar == "J") {
            charNum = "074"
      }
      if (curChar == "j") {
            charNum = "106"
      }
      if (curChar == "K") {
            charNum = "075"
      }
      if (curChar == "k") {
            charNum = "107"
      }
      if (curChar == "L") {
            charNum = "076"
      }
      if (curChar == "l") {
            charNum = "108"
      }
      if (curChar == "M") {
            charNum = "077"
      }
      if (curChar == "m") {
            charNum = "109"
      }
      if (curChar == "N") {
            charNum = "078"
      }
      if (curChar == "n") {
            charNum = "110"
      }
      if (curChar == "O") {
            charNum = "079"
      }
      if (curChar == "o") {
            charNum = "111"
      }
      if (curChar == "P") {
            charNum = "080"
      }
      if (curChar == "p") {
            charNum = "112"
      }
      if (curChar == "Q") {
            charNum = "081"
      }
      if (curChar == "q") {
            charNum = "113"
      }
      if (curChar == "R") {
            charNum = "082"
      }
      if (curChar == "r") {
            charNum = "114"
      }
      if (curChar == "S") {
            charNum = "083"
      }
      if (curChar == "s") {
            charNum = "115"
      }
      if (curChar == "T") {
            charNum = "084"
      }
      if (curChar == "t") {
            charNum = "116"
      }
      if (curChar == "U") {
            charNum = "085"
      }
      if (curChar == "u") {
            charNum = "117"
      }
      if (curChar == "V") {
            charNum = "086"
      }
      if (curChar == "v") {
            charNum = "118"
      }
      if (curChar == "W") {
            charNum = "087"
      }
      if (curChar == "w") {
            charNum = "119"
      }
      if (curChar == "X") {
            charNum = "088"
      }
      if (curChar == "x") {
            charNum = "120"
      }
      if (curChar == "Y") {
            charNum = "089"
      }
      if (curChar == "y") {
            charNum = "121"
      }
      if (curChar == "Z") {
            charNum = "090"
      }
      if (curChar == "z") {
            charNum = "122"
      }
      if (curChar == "0") {
            charNum = "048"
      }
      if (curChar == "1") {
            charNum = "049"
      }
      if (curChar == "2") {
            charNum = "050"
      }
      if (curChar == "3") {
            charNum = "051"
      }
      if (curChar == "4") {
            charNum = "052"
      }
      if (curChar == "5") {
            charNum = "053"
      }
      if (curChar == "6") {
            charNum = "054"
      }
      if (curChar == "7") {
            charNum = "055"
      }
      if (curChar == "8") {
            charNum = "056"
      }
      if (curChar == "9") {
            charNum = "057"
      }
      if (curChar == "&") {
            charNum = "038"
      }
      if (curChar == " ") {
            charNum = "032"
      }
      if (curChar == "_") {
            charNum = "095"
      }
      if (curChar == "-") {
            charNum = "045"
      }
      if (curChar == "@") {
            charNum = "064"
      }
      if (curChar == ".") {
            charNum = "046"
      }
      if (charNum == "000") {
            codeEmail += curChar
      }
      else {
            codeEmail += "&#" + charNum + ";"               
      }
   }
   document.comment.commenters_email.value = codeEmail
}
// End hiding-->
</script>

{{if allow_html}}
<script language="JavaScript"><!--
function buildComment() {
   var result = false;
   var theStr = new String(document.comment.commenters_email.value);
   var index = theStr.indexOf("@");

   if (document.comment.commenters_name.value == '') {
      document.comment.commenters_name.value = 'Anonymous';
   }
   
   if (index > 0)
      {
      var pindex = theStr.indexOf(".",index);
      if ((pindex > index+1) && (theStr.length > pindex+1)) {
         encodeEmail();
         document.comment.body.value =  '<em><a href="mailto:' + document.comment.commenters_email.value + '">' +  document.comment.commenters_name.value + '<\/a> writes:<\/em> <div style="padding: 2px 2px 2px 12px;">' + document.comment.body.value + '<\/div>';
      }
   }
   else {
      document.comment.body.value =  '<em>' + document.comment.commenters_name.value + ' writes:<\/em> <div style="padding: 2px 2px 2px 12px;">' + document.comment.body.value + '<\/div>';
   }
}
//--></script>
{{else}}
<script language="JavaScript"><!--
function buildComment() {

   if (document.comment.commenters_name.value == '')
      document.comment.commenters_name.value = 'Anonymous';

   document.comment.body.value =  document.comment.commenters_name.value + ' writes: ' + document.comment.body.value;
}
//--></script>
{{/if}}



   
   <a name="post_comment"></a>
   <div style="margin:25px 0;">
   
   <div class="commentFormInline">
   
   <form name="comment" method=post action="/blog" onSubmit="buildComment()">
   <input type=hidden name=cmd value="do_post_comment">
   <input type=hidden name=article_id value="{{article_id}}">
   <input type=hidden name=post_anon value="true"> <!-- In this model, everyone is anon -->
   <input type=hidden name=parent_id value="">
   
      <!-- show_comment_login -->
   
   <div style="font-weight:bold;margin-bottom:10px;">Post comment:</div>
   
   <table border="0" cellpadding="2" cellspacing="0">
   
   {{if allow_html}}   
      <!-- if allow html -->
      <tr>
      <td nowrap>Format Type:&nbsp;</td>
      
      <td nowrap>
      <select name=format_type>
      <option selected value="html" onClick="this.form.convert_newlines.disabled=false;"> HTML </option>
      <option  value="text" onClick="this.form.convert_newlines.disabled=true;"> Text </option>
      </select>
      </td>
      </tr><tr>
      <td>&nbsp;</td>
      <td nowrap><input type="checkbox" class="checkbox" name="convert_newlines" value="true" checked > Convert newlines </td></tr>
      <!-- if allow html -->
   {{/if}}
   
   <tr>
   <td align="right" width="5%" nowrap>Subject:&nbsp;</td>
   
   <td nowrap><input type=text name="title" value="Re: {{title}}" size=30 maxlength=255> <span class="error"></span></td>
   </tr>
   
   
   <tr>
   <td align="right" width="5%" nowrap>Name:&nbsp;</td>
   
   <td nowrap><input type=text name="commenters_name" value="" size=30 maxlength=255> <span class="error"></span></td>
   </tr>
   
   <tr>
   <td align="right" width="5%" nowrap>Email Address:&nbsp;</td>
   
   <td nowrap><input type=text name="commenters_email" value="" size=30 maxlength=255> <span class="error"></span></td>
   </tr>
   

   {{if allow_html}}   
   <!-- edit buttons -->
      <tr>
      <td>&nbsp;</td>
      <td align="left" valign="bottom">&nbsp;
      <div id="_buttons" style="display:inline;">
      
      <div class="editButtons">
      <img onclick="wrapSelection(document.comment.body,'<strong>','</strong>');" src="/_images/edit_bold.gif" width="23" height="22" alt="insert bold tags" title="insert bold tags" onmouseover="this.className='editButtonOn';" onmouseout="this.className='editButtonOff';" onmousedown="this.className='editButtonDown';" onmouseup="this.className='editButtonOff';" class="editButtonOff">
      
      <img onclick="wrapSelection(document.comment.body,'<em>','</em>');" src="/_images/edit_italic.gif" width="23" height="22" alt="insert italic tags" title="insert italic tags"  onmouseover="this.className='editButtonOn';" onmouseout="this.className='editButtonOff';" onmousedown="this.className='editButtonDown';" onmouseup="this.className='editButtonOff';" class="editButtonOff">
      
      <img onclick="wrapSelection(document.comment.body,'<u>','</u>');" src="/_images/edit_underline.gif" width="23" height="21" alt="insert italic tags" title="insert italic tags"  onmouseover="this.className='editButtonOn';" onmouseout="this.className='editButtonOff';" onmousedown="this.className='editButtonDown';" onmouseup="this.className='editButtonOff';" class="editButtonOff">
      
      <img onclick="wrapSelection(document.comment.body,'<strike>','</strike>');" src="/_images/edit_strike.gif" width="20" height="20" alt="insert strikethough tags" title="insert strikethough tags"  onmouseover="this.className='editButtonOn';" onmouseout="this.className='editButtonOff';" onmousedown="this.className='editButtonDown';" onmouseup="this.className='editButtonOff';" class="editButtonOff">
      
      <img onclick="wrapSelectionWithLink(document.comment.body);" src="/_images/edit_link.gif" width="20" height="20" alt="insert link" title="insert link"  onmouseover="this.className='editButtonOn';" onmouseout="this.className='editButtonOff';" onmousedown="this.className='editButtonDown';" onmouseup="this.className='editButtonOff';" class="editButtonOff">
      
      <img onclick="wrapSelection(document.comment.body,'<blockquote>','</blockquote>');" src="/_images/edit_indent.gif" width="20" height="20" alt="insert blockquote tags" title="insert blockquote tags"  onmouseover="this.className='editButtonOn';" onmouseout="this.className='editButtonOff';" onmousedown="this.className='editButtonDown';" onmouseup="this.className='editButtonOff';" class="editButtonOff">
      </div>  <!-- editButtons -->
      
      </div> <!-- _buttons -->
      
      <script language="javascript" type="text/javascript">
      var ua = navigator.userAgent.toLowerCase();
      if (ua.indexOf('safari') != -1) {
      document.getElementById('_buttons').style.display = 'none';
      }
      </script>
      </td>
      </tr>
   <!-- end buttons -->
   {{/if}}
   
   
   <tr>
      <td align="right" width="5%" valign="top" nowrap>Comment:&nbsp;</td>
      <td valign="top"><textarea name="body" style="width:100%;height:100px;max-width:400px;" wrap=soft></textarea><br>
      <span class="error"></span></td>
   </tr>
   
   <tr>
      <td>&nbsp;</td>
      <td nowrap>
<!--    <input type=submit class="button" name="preview_comment" value="Preview">&nbsp; -->
      <input type=submit class="button" value="Post Comment">
      </td>
   </tr>
   
   </table>
   </form>
   </div> <!-- commentForm -->
   
   
   </div>
   
   <!-- end modifications to commenting here -->
{{/if}}

</div> <!-- articleAll -->
Back to top
View user's profile Send private message Send e-mail Visit poster's website
roger_rustin



Joined: 14 Dec 2004
Posts: 10

PostPosted: Mon Feb 21, 2005 10:34 am    Post subject: Reply with quote

John thanks for all your support.

My diappoinntment on three fronts:

1)
Quote:

Roger, let me reiterate that the technique explained above is not supported by us.


Crying or Very sad

2) Email encoding is not supported from the grass root. If a user signs up for posting the comments and then posts comments the url points to the user info. If you go the userinfo page the email address is not encoded. It means even if someone does sign up for the comments that person is opening himself/herself to the spam. This encoded email address features is already builid into 'roller' weblog tool. That forces me to ask if there is a plan to support encoding email address from grassroot?

3)
Quote:

CAPTCHA is not supported.


This is supported in roller and other tools too. Is there a plan to support this in future?

thanks.
- Roger
Back to top
View user's profile Send private message
john
Site Admin


Joined: 16 Mar 2004
Posts: 3434

PostPosted: Mon Feb 21, 2005 11:20 am    Post subject: Reply with quote

My diappoinntment on three fronts:

There are many ways to handle commenting and protection against abuse. Our system leans toward the authentication of identity side. Other systems out there might take a different approach.

We realize that some folks might prefer one way and others might prefer another way. That's why we offer a free trial, so you can check out our service for yourself and see if you like it. There will be pluses and minuses to every system. If you don't think our minuses are outweighed by our pluses and BlogHarbor is a service worth paying for, then it was a free trial and you haven't spent a penny, hopefully you learned something and you can go out there and find another service that suits you better.

Roger, let me reiterate that the technique explained above is not supported by us. Crying or Very sad

Again, to be clear, I am speaking of the 'attribution by anonymous commenter' workaround explained above. You are free to use this method of course, but is only presented to you here as an exercise in what's possible when customizing our templates and not as a "feature" of our system.

Email encoding is not supported from the grass root.

I am not sure what you mean by "from the grass root."

It means even if someone does sign up for the comments that person is opening himself/herself to the spam.

That is not exactly correct. Your user profile is protected from spams by, of course, authentication. You configure elements of your user profile such as your email address to be visible to the Public, Friends only or Private. The information in your user profile will be displayed to other users depending on who they are and what you have decided they should be able to see.

The default setting is that your email address is shown to Friends only. It will not be visible to automated robots. The default is that your email address would only be shown to usernames you explicitly put on your Friends list and would only be shown to those users when they have authenticated their identity by logging in.

[CAPTCHA] is supported in roller and other tools too. Is there a plan to support this in future?

For those who do not know, CAPTCHA, which stands for "Completely Automated Public Turing test to tell Computers and Humans Apart", is a means to protect a web form from abuse by automated systems. By displaying an image containing letters, numbers, and or words which the user is required to enter into the field on the form, the site can be sure that the form was filled in by a human and not a computer performing an automated task such as comment spam.

A CAPTCHA is necessary for weblogging systems which do not provide authentication mechanisms, protecting your blog against abuse by detecting automated systems. We do not provide CAPTCHA at this time, but as I am sure you knew I was going to say, we suggest you protect your blog from abuse by automated systems by requiring your readers to sign in before they comment.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
roger_rustin



Joined: 14 Dec 2004
Posts: 10

PostPosted: Mon Feb 21, 2005 11:29 pm    Post subject: Reply with quote

thanks for the detailed explanation. Really appreciate it.

- Roger
Back to top
View user's profile Send private message
ojhowden64



Joined: 05 Jul 2005
Posts: 2
Location: Australia

PostPosted: Wed Jul 06, 2005 6:13 pm    Post subject: More Traffic Reply with quote

Thanks for the prompt reply on the how to get more traffic bit, has been helpful.

When I first made the adjustments suggested I got a syntax error on line 147, did some playing around to figure what I had missed or added incorrectly and now seems to be working.

Will also take on board the comments on, nicer less commercial info to be on the blog and see what comes from that.

Will make a point of also including in any emails I sedn to people including my blog address as another way of going about it.

Once again thanks for the help and keep on bloggin.
_________________
Thanks

Owen Howden
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger
zoli



Joined: 27 Jun 2005
Posts: 108

PostPosted: Tue Jul 12, 2005 6:55 pm    Post subject: Reply with quote

John, I believe we have a catch 22 situation as far as leaving comments:
- the mod you listed above allows for anonymous comments, while capturing (optional) email info.. so far so good, but is not the recommended method, however:

- if i disallow anonymous commenting, the reader is promted to enter his/her registration info, but if he is unregistered, there is no link to take him/her to registering.

IMHO, unless a link is provided right there to acount creation, this method is a dead end. I thought I would simply resolve it by entering the http://login.blogharbor.com/users/index.cgi/cmd=signup to whatever template drives the comment section, but I did not find it .... would appreciate your help.

Thanks a lot,
Zoli
[url][/url]
Back to top
View user's profile Send private message Visit poster's website
john
Site Admin


Joined: 16 Mar 2004
Posts: 3434

PostPosted: Sun Jul 17, 2005 12:47 am    Post subject: Reply with quote

if i disallow anonymous commenting, the reader is promted to enter his/her registration info, but if he is unregistered, there is no link to take him/her to registering.

I would say that this thread was more intended to show what it possible with regards to customization of your weblog rather than to define a fixed or all-encompassing solution.

With that in mind, there are many options with respect to the approach outlined above. One of which, as you point out, is providing a link to sign up for a Reader Account for an unauthenticated user.

You should be able to use this as a starting point for where you want to go:

Code:
{{if authenticated}}
I am authenticated
{{else}}
I am not authenticated
{{/if}}


and code appropriately...
Back to top
View user's profile Send private message Send e-mail Visit poster's website
tigersi



Joined: 20 Apr 2005
Posts: 174

PostPosted: Sun Jul 17, 2005 8:19 pm    Post subject: not working for me Reply with quote

Hi John,

I just tried to modify my blog with the code you provided above. When I did a test on on an article (shown at the URL below), it still shows as "Anonymous." I signed in as roaringtiger though. The content is "test" and "test2" in two separtate comments.

http://bigcatchronicles.blogharbor.com/blog/_archives/2005/7/17/1040668.html#comments

Also, can you suggest a modification that would allow a reader to insert their own blog's URL. I think that might be more beneficial than email.

Also, a way to show that none of the fields is required.
_________________
Thanks!
Kathy (aka, Roaring Tiger)
http://bigcatchronicles.blogharbor.com
Back to top
View user's profile Send private message Visit poster's website
tigersi



Joined: 20 Apr 2005
Posts: 174

PostPosted: Sun Jul 17, 2005 8:28 pm    Post subject: Eeek! Never mind! Reply with quote

Hi John,

Forget my request. I just had 5 poker comment spammers so I'm already turning off anonymous comments.
_________________
Thanks!
Kathy (aka, Roaring Tiger)
http://bigcatchronicles.blogharbor.com
Back to top
View user's profile Send private message Visit poster's website
Search all BlogHarbor support resources.
View previous topic :: View next topic  
Display posts from previous:   
Post new topic   Reply to topic    BlogHarbor Community Forum Index -> Beginner's Lounge All times are GMT - 5 Hours
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum