How To Hide Comment Box For Non-Logged Visitors wapka code

Hello friends, today i'll be showing a trick to hide comment box away from non logged visitors, this is cool as it will reduce spammers and scammers commenting on threads on your website. Let's go straight to the point.

This is very easy.

Step 1: In your top autocontent for forum add this.
<script language="javascript"><br />var u=":user-tname:";<br /></script>

Step 2: Wrap your "::REPLY_AREA::" in style of forum site with div id commentBox. ie
<div id="commentBox">::REPLY_AREA::</div>
 Step 3: Add this code snippet to your website's forum bottom autocontent.
<script language="javascript">if(!u){ var reWords='<center>Sorry, You need to <a href="registration_site.xhtml?do_id=0">Register</a> or <a href="login_site.xhtml?do_id=0">Login</a> to add a comment</center>'; document.getElementById("commentBox").innerHTML=reWords;} </script>