commentform
The commentform element of a Vine Type template file describes the XHTML needed to render a comment or comment form.
comment forms, typically found on blog websites, are an optional Vine Type feature. The recommended means to disable the comment feature is to set the $commentfeature variable in the vinetype.config file to off.
Even if comment will not be used on your site, it is recommended that this element remain in your template file.
Example
<commentform>
<form id="frmcomment" action="default.aspx" method="post">
<p>$label_commentname <input name="commentname" size="35" value="" /></td>
<p>$label_commentemail <input name="commentemail" size="35" value="" /></td>
<p>$label_commentwebsite <input name="commentwebsite" size="35" value="" /></td>
<p>$_commentchallenge <input name="commentchallenge" size="35" value="" /></td>
<p>$label_commenttext <textarea name="commenttext" rows="25" cols="35" ></textarea></td>
<input type="submit" value="$label_commentsave" id="commentsave" name="commentsave" />
<input type="hidden" value="$_challengeid" id="challengeid" name="challengeid" />
<input type="hidden" value="$_refid" id="refid" name="refid" />
</form>
</commentform>
comment forms contain several pairs of text and text boxes
- Name
- Website
- Challenge
- Comment
When entering information on the website, Name, Email, Challenge and Comment are required. Website is optional. You may omit the Website textbox from your template, but the others are required.
The two hidden input elements (one will contain the article id that the comment is commenting on, the other will contain the value of the challenge question) are required.
comments are written to the wb.xml file in the db folder.
Although you may rearrange the order or locations of the commentform input elements, it is recommended that no changes be made to the input elements themselves.