Hi all,
I’m currently having problem with {if allow_comments}. No matter what the commenting status on an entry, whether it’s allowed or not. The form just refused to do display.
FYI: I’ve looked everywhere on the EE forum for users who might have the same problem as me. But, none avail.
The EE form tag is not enclosed within a weblog:entries. And I have double checked again and again. Spent a good 4-5hrs last night trying to get this thing to work but none avail.
{if allow_comments}
{exp:comment:form weblog="notes"}
<div id="addComment">
<!--- comment total= <?php echo "$comm_total" ?> -->
<h5><a href="#"><span><strong>+</strong></span> Add Your Comment</a></h5>
<p> </div><!-- end addComment--> </p>
<p> <div id="addCommentForm"><br />
<fieldset><br />
<ul><br />
<li><br />
<label class="name">Name</label><br />
<input name="name" type="text" class="txt" value="{name}" maxlength="255"/><br />
</li><br />
<li><br />
<label class="name">Email</label><br />
<input name="email" type="text" class="txt" value="{email}" maxlength="255"/><br />
</li><br />
<li> <br />
<label class="name">Website</label><br />
<input name="url" type="text" class="txt" value="{url}" maxlength="255"/> <br />
</li><br />
<li> <br />
<label class="name">Comment</label><br />
<textarea name="comment" cols="25" rows="8" wrap="virtual">{comment}</textarea><br />
</p>
<p> <input name="notify_me" id="notifyMe" type="checkbox" value="" class="checkbox" {notify_me} /> <label for="notifyMe" class="checkLabel">Notify me of follow-up comments ?</label><br />
</li> <br />
{if captcha}<br />
<li> <br />
<label class="name">No Spam</label><br />
{captcha}<input type="text" name="captcha" value="" maxlength="255" class="captcha"/><br />
<span>Please type the letters and numbers you see into the box provided</span> <br />
</li><br />
{/if} <br />
<li><input class="submit" type="submit" name="submit" value="Submit »" /></li><br />
</ul><br />
</fieldset><br />
</div><br />
<br />
{/exp:comment:form}<br />
{if:else}<br />
<div id="commentClosed"><br />
</p><h5><span><strong>X</strong></span> Comment is closed</a></h5>
<p> </div><!-- end commentClosed--> <br />
{/if}Please kindly advice what to do.
The EE version I’m using is EE Full (personal) v.1.6.7 Build: 20090211
Thanks
-sw